Step 7Software (AVR project)
The program is not very big it all fits easily within 2K!
The program is certainly not very big:
Device: attiny45
Program: 834 bytes (20.4% Full)
(.text + .data + .bootloader)
Data: 21 bytes (8.2% Full)
(.data + .bss + .noinit)
software you need:
http://www.contrechoc.com/blogProjects/butterfly.zip
download my code, hack it, modify it!
The code has several parts:
- initializing the analog ports for the LDR, for flapping at a flash or fast light change
- initializing timer 1 for the flapping, and not forgetting to flap once in a while
- initializing timer 0 for the PWM, servomotor
make it as much a living butterfly as possible!
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|














































