controlling a push button on a dvd player
Francisco
Posts: 26
Hello, I am trying to control the push buttons on a dvd player to remotely access its functions via the propeller.
I took the voltage reading on one side of a button that i want to control and it read 5v. When i pressed the button this connection would get grounded.
I connected the propellers' ground to the dvds' ground and I assinged a pin to the 5v side of the dvd button. I imagined that sending a low then high signal to the button would simulate the button getting pushed but this didn't work.
My questing is whether there is a way to interface the dvd players buttons with propeller without using extra circuitry, for example can i have the propellers pin be in a "floating/no connect" state to simulate the button being depressed without drawing current.
If that isn't possible, will i need to use a transistor to gate the button perhaps?
Thanks for any input you may have.
I took the voltage reading on one side of a button that i want to control and it read 5v. When i pressed the button this connection would get grounded.
I connected the propellers' ground to the dvds' ground and I assinged a pin to the 5v side of the dvd button. I imagined that sending a low then high signal to the button would simulate the button getting pushed but this didn't work.
My questing is whether there is a way to interface the dvd players buttons with propeller without using extra circuitry, for example can i have the propellers pin be in a "floating/no connect" state to simulate the button being depressed without drawing current.
If that isn't possible, will i need to use a transistor to gate the button perhaps?
Thanks for any input you may have.
Comments
My preference for this sort of thing is to use 3.3V coil SPST NO reed relays with a diode reverse connected across the coil. This has the advantage of being able to directly replace or parallel the pushbutton without needing a common ground between the two pieces of equipment and you don't need to know how the pushbutton is connected internally since there's no direct connection to the Propeller. DigiKey carries some nice reed relays that can be directly driven by a Propeller I/O pin.
If you get the RadioShack reed relay with the 5VDC coil, you'll be able to run the switching transistor off a 5V power source which you probably have.
www.radioshack.com/product/index.jsp?productId=2062478
To drive a reed relay directly from a Propeller I/O pin, it has to have a coil voltage around 3V with a coil current around 20mA (or less). You'd still need the diode, but you wouldn't need the switching transistor.
Post Edited (Mike Green) : 1/14/2010 4:40:34 AM GMT
http://www.radioshack.com/product/index.jsp?productId=2062576
here is a blurb from an application note for relays which helps to explain why those diodes are so important:
The Need for Transient Suppression>>>
When an electromechanical relay is de-energized rapidly by a mecanical
switch or semiconductor, the collapsing magnetic field produces a
substantial voltage transient in its effort to disperse the stored energy
and oppose the sudden change of current flow. A 12VDC relay, for example,
may generate a voltage of 1,000 to 1,500 volts during turn-off. With the
advent of modern electronic systems, this relatively large voltage transient
has created EMI, semiconductor breakdown, and switch wear problems
for the design engineer. It has thus become common practice to suppress
relay coils with other components which limit the peak voltage to a much
smaller level.
I had the same issue, and I promise this will work. Use a 5 volt RadioShack Reed Relay... it works fine at 3.3 volts. Connect both sides of the button to the long axis of the relay and when you want to push the button send the relay a signal straight out of your Prop to one end of the short axis pins on the relay and connect the other side of the short axis pins of the relay to Propeller ground... and hook your propeller ground to your DVD's ground. No diodes, No resistors, No harm. No foul. Works every time.
Rich
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
You record the codes of the buttons you want to be used by the propeller and replay that with a IR LED.
Thanks for your confirmation on this. I tried your suggestion, a radio shack reed relay and common ground worked like a charm! Thanks for everyones suggestions.