3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Wedding Butterfly

Step 7Software (AVR project)

software (AVR project)
For the software, you need to upload it using the programmer.
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
You can change the number of times if flaps, the speed, the degrees of flap....
make it as much a living butterfly as possible!






« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
14
Followers
17
Author:contrechoc
also doing some blogging here: http://myfablab.wordpress.com/