forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

External Pushbutton trick.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Mon Feb 11, 2008 7:21 pm    Post subject: External Pushbutton trick. Reply with quote

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
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Mon Feb 11, 2008 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Mon Feb 11, 2008 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Feb 12, 2008 8:36 am    Post subject: Reply with quote

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
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Wed Feb 13, 2008 4:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Feb 13, 2008 6:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group