Right now I'm planning out my turn signal controller for my motorcycle. Seems simple but I am at a loss for the best way to proceed. I will decide on the best chip after I figure out the best way to accomplish my goals.
Basically, I have 5 lamps, a turn signal lamp at each corner and a brake lamp. I want all lamps lit all the time (PWM) as running lights. The tail light should do this too so it it the same brightness as the other lamps. (Already built LED lamps with individual voltage regs that have on/off pins the PIC can control easily.)
Turn signals should function as ON/Off, not on, dim. The rear TS lamps should be brakes also but if the TS is on it should override the brake signal. Main brake lamp will use the MC feed to ensure it goes bright quickly and independent of the PIC.
Do I run 3 software PWMs and change the duty cycle for TS indicators/brake?? 1 PWM and alter the individual output pins?? I do not understand building a state machine but have read some of it. Would that be best?? Can someone provide links to more info on them--I have googled but get mostly commercial sites or dead links.
As I said, I will decide on on a PIC once the flowchart is made, then I can play with coding--will probably ask for help there too.
Thank you for your ideas/input/help.
Basically, I have 5 lamps, a turn signal lamp at each corner and a brake lamp. I want all lamps lit all the time (PWM) as running lights. The tail light should do this too so it it the same brightness as the other lamps. (Already built LED lamps with individual voltage regs that have on/off pins the PIC can control easily.)
Turn signals should function as ON/Off, not on, dim. The rear TS lamps should be brakes also but if the TS is on it should override the brake signal. Main brake lamp will use the MC feed to ensure it goes bright quickly and independent of the PIC.
Do I run 3 software PWMs and change the duty cycle for TS indicators/brake?? 1 PWM and alter the individual output pins?? I do not understand building a state machine but have read some of it. Would that be best?? Can someone provide links to more info on them--I have googled but get mostly commercial sites or dead links.
As I said, I will decide on on a PIC once the flowchart is made, then I can play with coding--will probably ask for help there too.
Thank you for your ideas/input/help.