Author Topic: Basic logic based pressure trigger  (Read 1635 times)

0 Members and 1 Guest are viewing this topic.

Offline themacman33Topic starter

  • Contributor
  • Posts: 19
  • Country: us
Basic logic based pressure trigger
« on: March 03, 2014, 11:01:43 pm »
I have a fan by my bed hooked up to a remote control unit. The remote has an on and off button. I want to make some sort of circuit where if I press a button (lay down on my bed) it will trigger the on button of the remote, but just once for battery's sake, and then when I get up, it will trigger the off button on the remote, just once again.
I would like to use some sort of basic digital logic rather than an AVR. How feasible is this?

Thanks!
-Mac

P.S. I know that I could just use a button and do away with the RC unit, but that's not the spirit of the thing! I'd rather learn how such a digital logic circuit would work.
</Mac>
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10086
  • Country: nz
Re: Basic logic based pressure trigger
« Reply #1 on: March 03, 2014, 11:17:41 pm »
You could use two 555 timers in monostable mode, one with the switch input inverted.
Then you'd get two outputs, one would output a pulse when the switch changes to depressed, the other would pulse when it changes to released.

Could also do it with logic gates by delaying one of the inputs so you get a short pulse when there's a edge.
« Last Edit: March 03, 2014, 11:23:05 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf