Author Topic: Simulate button press with passive components?  (Read 5846 times)

0 Members and 1 Guest are viewing this topic.

Offline eevfan007Topic starter

  • Contributor
  • Posts: 14
Simulate button press with passive components?
« on: January 27, 2014, 09:23:08 am »
Hi!

In my work with hacking a treadmill, I have soldered leads onto the buttons on the treadmill. By shorting the leads, the button is pressed, obviously.
When I control this through an arduino I use a 5v relay. But the "clicking-sound" from the relay annoys me, and I was thinking that the same must be possible through the use of transistors. Are there any added risk of connecting the leads between the collector and emitter, and just sending a small amount of current into the base of the transistor to have it "open/push the button".

Or would an opto-isolator work just as well maybe ?

« Last Edit: January 27, 2014, 09:27:13 am by eevfan007 »
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Simulate button press with passive components?
« Reply #1 on: January 27, 2014, 09:38:58 am »
it depends on what its driving, an optocoupler would be better
« Last Edit: January 27, 2014, 09:40:49 am by Rerouter »
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: Simulate button press with passive components?
« Reply #2 on: January 27, 2014, 09:45:20 am »
A reed-relay could be a good drop-in replacement and would work exactly the same as the existing relay except the noise would be so small i doubt you'd hear it.

Reed relays can't handle much current but the treadmill buttons are likely low current inputs to the treadmill mcu.
(i'd check that though)
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16276
  • Country: za
Re: Simulate button press with passive components?
« Reply #3 on: January 27, 2014, 06:46:04 pm »
I had a lot of success using a CD4066 quad analogue switch. There is a video on the EEVBLOG channel about interfacing them as well.
 

Offline cwalex

  • Frequent Contributor
  • **
  • Posts: 299
  • Country: au
Re: Simulate button press with passive components?
« Reply #4 on: January 28, 2014, 01:29:24 am »
Hi!

In my work with hacking a treadmill, I have soldered leads onto the buttons on the treadmill. By shorting the leads, the button is pressed, obviously.
When I control this through an arduino I use a 5v relay. But the "clicking-sound" from the relay annoys me, and I was thinking that the same must be possible through the use of transistors. Are there any added risk of connecting the leads between the collector and emitter, and just sending a small amount of current into the base of the transistor to have it "open/push the button".

Or would an opto-isolator work just as well maybe ?

The most common button connection in electronics that I have come accross is a pullup resistor and the button pulls down to gnd. You could try just connecting one of the arduino digital pins to the treadmill where the button would connect and just set to low when you want to simulate button press.
 

Offline ivaylo

  • Frequent Contributor
  • **
  • Posts: 661
  • Country: us
Re: Simulate button press with passive components?
« Reply #5 on: January 28, 2014, 08:59:51 am »
Trying to make sense of the title here. Do you mean "passive" like a transistor, vs. "active" like a relay? Because none of the options you ask for involve passive elements, if you know what I mean...
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2045
  • Country: us
Re: Simulate button press with passive components?
« Reply #6 on: January 28, 2014, 03:47:28 pm »
I think he meant discrete components. I'd go for the optocouplers or the reed relays. Remember to connect the optocoupler's transistor the right way round, so the current enters the collector and exits the emitter.
 

Offline cwalex

  • Frequent Contributor
  • **
  • Posts: 299
  • Country: au
Re: Simulate button press with passive components?
« Reply #7 on: January 28, 2014, 11:10:27 pm »
if the arduino and the treadmill control board share a common ground then I don't know why you would need to add any extra components like relay or optocoupler to simulate button press unless you need some sort of isolation ??
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf