PIC is shorthand for ``Programmable Interface Controller'', a
microcontroller family from Microchip.
Here the PIC10F200 (datasheet) is in use, an awesome powerhouse with memory for 256 instructions (each 12 bit wide) and 16 byte of main memory (and featuring a hardware stack of depth two!). The street price of the IC is about one dollar or one euro or so. The pummer uses one I/O pin for LED output and one for solar cell light / dark detection. |
(click pic to enlarge) |
||||
(click pic to enlarge) |
The circuit simply needs a LED with some resistor to limit the current
(the PIC10F200 can drive 25 mA) and a diode to allow the solar cell to
charge the accus, but to get a low signal in case of missing sunlight.
As diode i used a BAV20, but i think any other will do. Using one with lower voltage drop (germanium diode) should give a better charge voltage. I did not try this way, instead i added another 0.5 volt solar element to the 4 volt one, suitable for three AAA accus ;-) |
||||
The program switches the LED for some time on, then drops the
brightness from 99 percent to 1 percent (with decreasing pulse widths)
and stays some time on 1 percent, followed by an LED off time.
The flash of a ``real'' pummer is more bright, than simply lighting the LED here for some time, but it is imho good enough ;-) The voltage of the solar cell is used as light detection sensor with high level indicating charging and no blinking and a low level indicates darkness, where we start blinking! On high level without blinking the PIC is put into sleep mode, drawing a very low input current (100 nA or so). To wakeup the PIC the ``wake-up on pin change'' feature is used: If the input level of the solar cell flips, the PIC wakes up and the value is checked.
|
(click pic to enlarge) |
||||
(click pic to enlarge) |
The MPLAB (to MPLAB
home at Mircolab) from Microchip is a nice tool to translate the
assembler source:
the source: pic-pummer.asm the hexfile: pic-pummer.hex |
||||
|
|
||||
And a PIC10F202 is pin compatible to the 200 and works fine too:
• many sources at Google images
And about the PIC microprocessor:
• to the wikipedia's pic page
|
(click pic to enlarge) |
||||
|
• back to bertnase.de