dears, I would like to have a simple circuit, powered with 2 AA batteries, which enables me to order a red led to be enlightened after some hours. And after
30 minutes to go "off". Unfortunately my knowledge in electronics is poor but I know that this is possible to do with a PIC.
Perhaps someone can let me know what kind of PIC to use and where to connect the led and the batteries. Thank you
How accurate does the timing have to be?
Is this a repetitive cycle?
What will start the timing?
Do the times have to be adjustable? If so, how will that be done?
dear alec_t, first of all, thank you for your answer. The timig should be as accurate as a normal clock is. The cycle ends after the led is shut "off".
The timing starts when the electrical power is applied, by hand or by means of an external timer. It is not necessary to adjust times, once set.
It would be of great value (for me) if it could be possible to add to the circuit two more leds to be shut "on" and "off" at different times.
This is all very basic and easy to do with a PIC, although if you're wanting similar accuracy to a clock you're going to need a crystal, either for the main processor clock, or (preferably) a 32KHz crystal running on an internal timer.
thank you Nigel. If the accuracy requires complicating the circuit, I can do without such an accuracy.
Could you please let me know which PIC should be used? This would be the first step, I hope.
thank you Nigel. If the accuracy requires complicating the circuit, I can do without such an accuracy.
Could you please let me know which PIC should be used? This would be the first step, I hope.
thank you Nigel. Perhaps I can use the PIC tutorial Main board for my purpose. But I did not find where I can buy it.
Is it possible to program the board from my PC (linux Ubuntu)?
Microchip's latest development/programming software, MPLAB X, is cross platform and can run under Windows, Linux or Mac. MPLAB X is free software available here -