Step 3Programming the BlinkM
This method makes it much easier to program the ATtiny85 microprocessor on the BlinkM than the regular AVR way; my code is included below.
* If you run into the error message “avrdude: stk500_getsync(): not in sync: resp=0×15 ″ when using ArduinoISP to program the BlinkM, it is easily fixable by putting a 100 ohm resistor between the reset pin and 5v of the Arduino after loading the ArduinoISP. It worked great on my Freeduino and Ardweeny.
In my code I have broken down the 'Fade' functions into a 'FadeUp' and a 'FadeDown' and added a 'Delay' variable in order to offer different effects.
Also note that the magnetic door switch I am using is normally open when the magnet is close to it and it closes the contacts when the magnet pulls away.
Here is a short video of how I programmed it:
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|












































