Low_Rider
New Member
To get into PIC programing I thought I'd build what I thought would be a simple circuit and modify it a bit. Basically it's a halogen light controller with a Pic 16F84a to control the PWM. It's based on Jim Robertsons design from lightbrain.8m.com and I've modified the program a bit, but I don't really know what I'm doing. :? I'd also like to add a three color LED to show me a few different states:
I know this is possible
Controller ON/OFF: Blue LED ON/OFF
But would it be possible for the PIC to tell if the light is connected (and turned on)or not?? so if the light bulb dies the LED would flash on and off
No Light: Blue LED flashing
And thirdly, can the PIC be used to read the battery voltage, and at a certain preset flash the red LED
Low Batt: RED LED flashing
Obvioulsy I can't have more then one color on at a time. How would I hook this up, and can someone help me with the code??? I've enclosed a rough schematic and the orriginal code (freeware) + my attempt of a variation. (freeware2)
Cheers,
Dave.
BTW, as time progresses and I start to learn a bit more I hope I can become a valuable member in the future!!!!!
I know this is possible
Controller ON/OFF: Blue LED ON/OFF
But would it be possible for the PIC to tell if the light is connected (and turned on)or not?? so if the light bulb dies the LED would flash on and off
No Light: Blue LED flashing
And thirdly, can the PIC be used to read the battery voltage, and at a certain preset flash the red LED
Low Batt: RED LED flashing
Obvioulsy I can't have more then one color on at a time. How would I hook this up, and can someone help me with the code??? I've enclosed a rough schematic and the orriginal code (freeware) + my attempt of a variation. (freeware2)
Cheers,
Dave.
BTW, as time progresses and I start to learn a bit more I hope I can become a valuable member in the future!!!!!