Step 10Sequencer (construction & programming)
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 Step | Download PDFView All Steps | Next Step » |
2
comments
|
Add Comment
|
![]() |
Add Comment
|
























































