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

Basic Stamp 2 Project 3 - Driving a Mechanical 5v SPDT Relay

Loading...

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

Uploaded by on Dec 14, 2010

This is my third project of basic stamp 2. I've been very happy with the basic stamp and i like to share these projects.

Notes:
1 - You NEED to use a driver circuit for mechanical relays. I've made the diagram:

http://img706.imageshack.us/img706/3484/relay.png

And a simpler one for beginners:

http://img651.imageshack.us/img651/4458/relay2.png

Also the pin orientation for the 2N2222A Transistor:

http://img171.imageshack.us/img171/1360/2n2222.png

2 - You may need to turn the volume up to hear it clicking. That's proof it's working.

Code (Maybe it's realy simple, and assuming you connected the
base to pin 1 through the 1k or 2.2k ohm resistor ) :

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

DO

HIGH 1
PAUSE 500
LOW 1
PAUSE 500

LOOP

Thanks for watching!!!!

- xXjose130Xx

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
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