Pages: [1]   Go Down
Author Topic: Virtual Latching Relay.  (Read 338 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino n00b here.  I am trying to write a sketch that will read an analog input and provide two outputs.  For example, When A4 goes high, D8 would go high and stay high even when A4 goes low.  When A4 goes high again D8 would go low and D9 would go high and stay high even when A4 goes low.  Repeat.  One output is always the inverse of the other.  It would be like a virtual latching relay.  I built a circuit using a 4027 but I would like to use the Arduino so I can better adjust the timing parameters.

Any help would be appreciated.
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 64
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A good start is to post the code you have now. State what works, and what doesn't.  In describing what doesnt it is useful to explain what happened versus what you expected.

That said, why are you using the analog inputs to read a high or low?  That sounds very digital.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Pages: [1]   Go Up
Jump to: