Step 3Adding the microcontroller
As indicated before, I used a ATTINY2313. This chip is cheap, and in my program it waits for commands which patterns to use on the RX PIN (using UART).
You have to make a PCB add a base for the chip and attached the groups of wires to the right PIN's. You can do it differently of course!
Basically I use
PB7 group 1
PB6 group 2
PB5 group 3
PB4 group 4
PB3 group 5
PB2 group ground 1
PB1 group ground 2
PB0 group ground 3
PD6 group ground 4
PD5 group ground 5, see the first picture.
I use the internal clock, so no extra oscillator is required (setting the fuses for this necessary!) The oscillator on the picture is not used and can be saved for other projects.
If you look at the ATTINY2313 pdf, you see there are PIN's left, this means you can make the array bigger!
And you have to add VCC and GND.
I also add six wires and a connector for my programmer. See the drawing on the wood of the connector. Most of the time I don't remove this programmer connection: I like changing the patterns and adding more "meaning" later on.
So here is the zip:
(the file names are still referring to the astronomer vest :-)
http://www.contrechoc.com/imthe1/LED_circle_AVR.zip
Please modify the script to your needs! (And have fun...)
In the end three rings will be used for the dress (5 of these are included in the astronomer vest). So there will be a central chip steering the patterns of the single ATTINY2313's. This central chip ATMEGA328P will be attached to sensors (for instance tilt or LDR) and depending on that ask for patterns in the LED rings.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|














































