External Pushbutton trick.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

External Pushbutton trick.

Post by Art »

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.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

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... :))))
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

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)
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

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$...
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...
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Post Reply