OI/SO: Singing solar lamp
The whole circuit is hidden inside a solar-powered garden lamp. There is enough space to install a microprocessor that is thus protected from the rain! We then just need to add a piezzo to emit the sounds.
We used an AtMega664 for its memory capacity (64k programmable flash memory) you can find this chip in both DIP and SMD format. The solar panel generates 3.8 volts in full sun: it's enough to power the IC and the piezo. That's all, only 3 components!
Thanks to high-speed PWM (faster than audible frequency) converter does not need filtering, so it is connected directly to the piezzo. Don't expect high quality sound however ...
Ingrédients
- 1 x Atmega664
- 1 x piezzo
- 1 x solar-powered garden lamp
Instructions
Programming the Atmega664:
- Copy the attached files oizo.c and soundsata.H in a directory
- Compile: gcc, winavr, AVRStudio
- Configure the Atmega664 fuses: remove the div8 fuse
- Upload the program on an ATmega664
Attached files
Schema and PCB, format Eagle (optional, not needed if you use a DIP chip)
AVR-C code and sound data (one bird)
| Attachment | Size |
|---|---|
| moduloixo_ver1_double_0.brd | 31.2 KB |
| moduloixo_ver1_double_0.sch | 227.48 KB |
| oizo.c | 1.35 KB |
| sounddata.h | 168.31 KB |



