
Originally Posted by
mpgmike
I'll start where Dave led us and raise a few more questions. I create controllers for other people. I ask lots of questions about what they are attempting to accomplish. What determines whether you want a light on or off? What determines whether you want a pump on or off? Is there a target for an analog (PWM) variable output? Many times, the whole process can be automated with absolutely no user input based solely on desired results. Knowing what determines whether a given output should be "1" or "0" (ON or OFF) inspires the addition of an input the PIC can use to make the decision automatically. If you are looking for random changes in outputs, switches and/or pots can generate simple inputs.
If you could show us an algorithm (flow chart) that describes the ideal scenario, a better solution may become blatantly obvious.
Bookmarks