Shop OBEX P1 Docs P2 Docs Learn Events
Bumpers to Basic Stamp II — Parallax Forums

Bumpers to Basic Stamp II

ltmhallltmhall Posts: 102
edited 2006-11-12 05:45 in BASIC Stamp
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

Comments

  • FranklinFranklin Posts: 4,747
    edited 2006-11-10 03:29
    www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf has stuff on controlling robots and sensors.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • ltmhallltmhall Posts: 102
    edited 2006-11-11 14:23
    This post dosen't show how to connect the pins of a microswitch
    to a microcontroller.
  • Mike GreenMike Green Posts: 23,101
    edited 2006-11-11 15:06
    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.
  • PARPAR Posts: 285
    edited 2006-11-12 05:45
    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·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
Sign In or Register to comment.