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.

EL wire eye candy

Step 10Sequencer (construction & programming)

Sequencer (construction & programming)
«
  • DSCN3341.JPG
  • seq_back.jpg
Here's the final sequencer board. To create the board, I used my homemade PCB technique, explained in detail in my instructable here.

The microcontroller is programmed via the Basic Stamp Editor using simple Basic language commands. Programming the stamp is done with a separate board with a serial port for connecting to my computer. Once the stamp is programmed, it can be removed from the programming board and inserted onto the sequencer board, ready to go.

I wrote two BS2 programs (so far) to run the sequencer. SEQ1 uses the random number generator to select from a fixed set of patterns for turning the output pins on and off. Each of the 20 patterns comprises a single byte. The leftmost six bits control six outputs (pins 2-7). The rightmost two bits define the duration of the pattern display: 00 = 5 seconds; 01 = 10 seconds; 10 = 20 seconds; 11 = 40 seconds. None of this is truly random, of course; there are only 20 patterns and they are predetermined.

SEQ2 is quite different. It first runs a series of "chase" patterns -- outputs 1-6 are turned on sequentially in one direction; then two adjacent outputs are turned on & chased, then three, etc. After all the wires are lit, the chases repeat, with descending numbers of lit wires, in the opposite direction from the ascending chases. Next, a series of steady illuminations of 1, 2, 3, 4, 5, & 6 adjacent strings, followed by the same in reverse order. Then the whole thing repeats in a big loop.

The two videos show the sequence running without the tube spinning.

The sequencer can of course be used for other projects besides this one.....
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Dec 5, 2006. 6:10 PMgabi68 says:
Can you tell me more about programing your microcontroller? What kind of board do you use for programing? THX

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!
6
Followers
4
Author:guerroloco