Hi all, new to the forum. Just ordered the Launchpad and hope to make a special application board. First of all I am much better at circuit soldering and debugging than I am at coding (very rusty, especially C++).. If I had some examples I could work with them and expand them I think. Its all the necessary setups and such that I need to get past.
What I want one of the 'included' msp430's to do is Read two switches, setup appropriate timers, set LED's and also drive a relay.
Switch one - 4 position, OFF, 10 Min, 30 Min, 60 Min, --- this will determine the "Frequency" of the second (duration) timer.
Switch two - toggle off or on, represents 5 Min, or 10 Min, --- this will determine the "Duration" timer
LED one - shows that the Frequency timer is active (sw one not off)
LED two - shows that the Duration timer is active (in the middle of a cycle)
When the Duration timer is running, it controls the amount of time that an external relay is set.
The primary Voltage supply is a 12 volt lead acid battery, so I know that some sort of regulator circuit or voltage divider circuit will need to be designed to get the msp430 levels down to 3 volts.
Also needed will be an external FET or power transister tied to one of the output pins as driven by the Duration timer. This relay will be switching the original 12 volt levels to drive a pump.
Some questions come to mind such as -- should the switch positions be polled or interrupt driven? Is the watchdog needed? I am not too concerned about operating the msp430 at the most low levels and conserving power since I really don't think it would be a serious enough draw from the main source it it were on all the time.
Any/all ideas, coding examples, and input voltage dividing examples would be very much appreciated. thanks