Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Lord of the Relays

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
19,584
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 22, 2009

Six-relay team performing for you "Lord of the Dance" style.

These are six large, loud 12V relays driven by ULN2003 darlingtons and programmed using a Basic Stamp 2. The relays are plugged into sockets screwed into wood planks. Under each relay is a 12V dashboard illumination bulb switched by the relay contacts.

The program is amazingly simple: Repeatedly count from 0 to 63, XOR a random number with most of the bits, and switch the relays using the 6 LSB bits. The timing between each beat is varied randomly to make it sound more human. (Full program at bottom.)

Other Tid-Bits:
- When everything's on, it draws 1.8A. Just the relays alone draw 600mA.
- Now and then one of the Darlington channels of the ULN 2003 burns out and has to be replaced.

Basic Stamp 2 Program ---------------------

' {$STAMP BS2}
' {$PBASIC 2.5}

DIRS = %1111111111111111
OUTS = %0000000000000000

speed VAR Byte
r VAR Word
i VAR Byte

speed = 119

main:

FOR i = 0 TO 63
RANDOM r
OUTL = i ^ (r.LOWBYTE & %11111101)
PAUSE speed + (r.HIGHBYTE & %00000110)
NEXT

GOTO main

  • likes, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (jhogsett)

  • I think I just connected a clip lead however I do own one :-)

Top Comments

  • heh, not bad :)

  • spoon man!

see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • Wow I was hoping for the intro of Van Halen "Hot for Teacher" to start. :)

  • Its cool... :)

  • Fantastic rhythm, sounds like tap dancing!

  • cool

  • sounds like tap dancing

  • @jhogsett Ah. Nice video by the way. Looks like a lot of hard work. Keep it up!

  • man thats very impresive...I biuld thise kind of devices myself.. and I've got to a point where i wanna make something big and need somebody smart to team up and do it together. please contact me if interested..

  • You have the circuits please?

  • haha pretty cool

  • @TroniPhile I think so

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more