| View previous topic :: View next topic |
| Author |
Message |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Mon Feb 11, 2008 7:21 pm Post subject: External Pushbutton trick. |
|
|
Hi Guys,
Run a length of two conductor cable from either a plug in the remote,
or directly from the audio input connection at the PSP connector,
connect the other end of the cable to a momentary switch via a resistor.
Now have your program look for peaks in the audio input waveform,
and you have yourself a very reliable external pushbutton switch.
Easy, but I'll bet noone else thought of it yet :D _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Mon Feb 11, 2008 9:54 pm Post subject: |
|
|
So, why not to hook the MS insertion intr and use MS as a "lateral left pushbutton".... :)
No, wait, i have one better: run your homebrew (checking battery temperature) holding the PSP straight on a candle: consider the button pressed when you move toward the candle and temperature grows... :)))) |
|
| Back to top |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Mon Feb 11, 2008 10:16 pm Post subject: |
|
|
| jean wrote: | So, why not to hook the MS insertion intr and use MS as a "lateral left pushbutton".... :)
| nah there is an easier way :D just check the normal button mask and you will get even if the ms inserted or not then just check it's status change XD (kernel mode required XD) |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Feb 12, 2008 8:36 am Post subject: |
|
|
| jean wrote: | So, why not to hook the MS insertion intr and use MS as a "lateral left pushbutton".... :)
No, wait, i have one better: run your homebrew (checking battery temperature) holding the PSP straight on a candle: consider the button pressed when you move toward the candle and temperature grows... :)))) |
Because you're probably going to be wanting both of those IO to be comitted to their intended purpose.
The memory stick will melt when the PSP catches fire in your pants.
It's useful for the mobile phone headsets that already have the
four conductor plug, and a pushbutton built into the cord.
Actually, I think with a few resistors and caps, and smarter software,
more buttons could be provided than the remote control.
Just not quite "QWERTY" quantity.
Pulling out the MS sounds like a good way to trigger a function that noone else knows about. _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Wed Feb 13, 2008 4:37 am Post subject: |
|
|
just kidding Art ;)
The nokia headsets are doing something like this since 10 years old i guess...but it's done in hardware, i.e. no signal processing taken. I think it's an heavy effort (at least a waste of CPU) to sample an analog signal only to have an additional pushbutton...Anyway there are TONS of non-conventional ways to use the ADC of PSP....i began writing a software to learn IR codes that way, but i never finished it....maybe one day...
PS: a friend of mine bought a PSP-remote from Hong Kong for 4$...
| Quote: | | Pulling out the MS sounds like a good way to trigger a function that noone else knows about. |
Yeah...and UMD should work as well... |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Feb 13, 2008 6:59 am Post subject: |
|
|
Dang, I was going to post the UMD one last night, but though it going too far ;)
The pushbutton I thought of while improving my heart rate monitor,
that is non-conventional use of the audio input.
The button I described, I'm using for stopwatch start/stop.
There is a small delay between pushing the button, and the program reaction,
but it doesn't matter because the delay occurs for both start and stop,
so the time between is still accurate :) _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
|