PDA

View Full Version : Bumpers to Basic Stamp II



ltmhall
11-10-2006, 11:06 AM
I'm building a mobile robot and need some help the collision
detection circuit. I just bought two bumper Omron SS5GL switches and need to know how to connect them to the Basic Stamp II. It has three pins NO, NC, and C.

Post Edited (ltmhall) : 11/11/2006 2:23:06 PM GMT

Franklin
11-10-2006, 11:29 AM
www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf (http://www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf) has stuff on controlling robots and sensors.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen

ltmhall
11-11-2006, 10:23 PM
This post dosen't show how to connect the pins of a microswitch
to a microcontroller.

Mike Green
11-11-2006, 11:06 PM
The robotics text will show you how to connect any switch to a microcontroller. You can also look for the "What's a Microcontroller?" in the same section of the website. The labels for the pins are: C - common, NO - normally open, and NC - normally closed. When the switch is pressed, there's a connection between C and NO. When the switch is not pressed, there's a connection between C and NC. The rest is in the text and depends on what you want to do.

PAR
11-12-2006, 01:45 PM
ltmhall said...
This post dosen't show how to connect the pins of a microswitch
to a microcontroller.
Look at Figure 5-7, page 168, of www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf (http://www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf)·and imagine that the "Right Whisker" and "Left Whisker" (shown in that figure in a Normally Open (NO) position)·are your "Omron SS5GL switches" with their "NC, NO, and C pins".

If you connect wires from the "C" (Common, ground)·pin of the microswitch to the "Vss" pin (of the BOE), and the "Normally Open" pin to the wires going to the 220-ohm and 10k-ohm resistors (on the BOE wiring board), you'll be connecting the pins of the microswitch to the microcontroller correctly. (See Figure 5-5 for wiring connection points; your microswitches take the place of the two wire whiskers and the two headers in that figure.)

You will leave the "NC" (Normally Closed) pins on your switches unconnected.

PAR

Post Edited (PAR) : 11/12/2006 5:52:32 AM GMT