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.

Making a flexible ring of LED's

Step 4Programming the LED's

Programming the LED\
Programming the LED's is done with the Interrupt of timer 1.
If you are not familiar with this technique, just use the script.
The principle is used for POV (Persistence of vision) and many other applications.

Funny is playing with the prescaler, making the LED's flicker a bit sometimes.

The script in the zip is prepared to receive a command over the RX pin of the ATTINY2313. This char received is used to give another pattern.
The script has several functions:
function main, setting the interrupt starting up fancy(), and waiting for a char
function choosing the PIN-numbers
function fancy (starting up, saying "hello world" with LED's

The patterns are made using a counter. Other patterns can be made easily. Like groups of LED's on or off, or two LED's running against each other.

Really, the LED patterns are another layer of design. Making the LED ring is technology, making meaningful expression of media is what I consider designing "primitive interfaces".



« 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/