Shop OBEX P1 Docs P2 Docs Learn Events
Adding potentiometer to design — Parallax Forums

Adding potentiometer to design

SpragmaticSpragmatic Posts: 59
edited 2010-03-15 03:07 in General Discussion
I did a simple code to control (4) relays with (2) L.E.D.'s in circuit to monitor my time frame(in seconds)·between activation of relays.· Please see code below.· I would like to add (2) pots in the design.

(1) to vary the time between relay1 and relay2 activation
(1) to vary the time between relay3 and relay4 activation

I'm not sure how to add the code for the pots?· I want to make this as simple as possible.· I've read RCTIME definition and still can't quite figure out where and how to add the code.· I'll be using 10k pots with 0.1 caps as in the RCTIME·example for hardware.· Thanks!!

·· Greg

Comments

  • SpragmaticSpragmatic Posts: 59
    edited 2010-03-14 18:42
    Not sure if what·I said above states what I exactly need.

    1- Need to vary the PAUSE between relay1 and relay2 activation between 0-3 seconds with (1)·pot

    2- Need to vary the PAUSE between relay3 and relay4 activation between 0-24 seconds with (1)·pot

    Thanks!!

    Greg

    Post Edited (Spragmatic) : 3/14/2010 7:11:36 PM GMT
  • SpragmaticSpragmatic Posts: 59
    edited 2010-03-15 03:07
    Got it figured out!
Sign In or Register to comment.