MicroController Pros Home Page My Account  Cart Contents  Checkout  

****Note: We no longer process and ship international orders. Only orders from USA and Canada are now accepted.****
You can place international orders for our products on E-Bay. Just copy the item's title description from our website and paste it into the search box on E-Bay and place your order there.

  Store » Robotics » SEN-11999 My Account  |  Cart Contents  |  Checkout   
Quick Find
 
Enter keywords to find the product you are looking for in the Quick Find field above

or use
Advanced Search
Categories
Accessory Boards->
8051->
ADI Blackfin
Arduino->
ARM->
Atmel AVR->
Cypress PSoC
Freescale->
FTDI->
Locktronics
Microchip PIC->
MIPS
Parallax->
Renesas
Silicon Labs
ST Microelectronics->
Texas Instruments->
Tibbo->
Books->
Displays->
E-Blocks->
EEPROM/EPROM/FLASH
Embedded Ethernet->
Embedded Software->
I/O Modules->
Parts & Components->
Pick & Place Tools
Programmable Logic (PLD)
Prototype PCBs->
Robotics
ROM/Flash Emulators
Test & Measurement->
Tutorial Software
Universal Programmers->
Wireless->
Information
Intro to Embedded Tools
Embedded News Digest
Useful Resources
Shipping & Returns
Warranty & Liability
Privacy Notice
Conditions of Use
Contact Us
RedBot Sensor - Mechanical Bumper: Whisker Wire, Screws US$2.95

SEN-11999
RedBot Sensor - Mechanical Bumper: Whisker Wire, Screws


The RedBot Mechanical Bumper is an add-on for the RedBot Mainboard or RedBot Kit that that gives your robot the ability to detect a collision before it really happens. This sensor works by acting as an SPST switch. When the "whisker" bumps into a foreign object, it will make contact with a nut next to it, closing the connection. Your robot's program would detect that connection and turn off the motor and/or perform some other action (e.g. play a sound, back up, etc.). By attaching these mechanical bumpers to your robot, the whisker will bump something before your robot crashes into it.

Only one bumper kit is included with your purchase, so make sure to buy as many as you need. It's recommended to have two at the front of your robot — one "whisker" per side.

The sensor board measures 1.03 × 0.69 inches (26.27 × 17.67 mm) and has a 3-pin header which connects directly to the RedBot Mainboard via female-to-female jumper wires (not included). Use the RedBot Arduino Library to make sure your robot never crashes into anything again. The library includes commented code examples for using the RedBotBumper class with this sensor. Two mounting holes lets you easily connect this sensor to your robot chassis (and serve as the contact points for the "whisker").

The "whisker" wire is shipped straight. You will have to bend it yourself. The RedBot Assembly Guide shows the recommended method. For safety reasons, you might also want to curl the protruding end of the wire.

RedBot Mechanical Bumper Kit Contents

  • Mechanical Bumper board
  • Whisker wire
  • ¾" 4-40 nylon standoff
  • 4-40 hex nut
  • Three ¼" 4-40 Phillips screws

RedBot Mechanical Bumper Usage

The RedBot Arduino Library's documentation does not cover usage this mechanical bumper. However, if you open the Library_Test example sketch in Arduino/libraries/RedBot/Library_Test, it is well commented.

Below is an overview of how the library's support is implemented. The "actual code example" is how the library's support is implemented in the Library_Test sketch. You can search for each of those text strings within the sketch to see the context of each command and the comments relating to them.

  • RedBotBumper(int pin);
  • RedBotBumper(int pin, &bumpHandler);
  • These two constructors are the only functions relating to the bumper. The first one will cause any falling edge on pin to stop the motors. The second one will cause a falling edge on pin to call function bumpHandler(), where bumpHander() is a user-created function that accepts no parameters and returns no values. You can name bumpHandler() anything you want, or even use an existing function in your code. Just note that the function executes in interrupt time, so other functions like delay(), millis() and serial read/write/print will not work properly within the handler function. It is best for the handler to do only something simple like set a flag, then have the main code loop deal with the ramifications of that flag.

    Also, you can have different handlers for different bumpers if you like. The code used in the Library_Test sketch uses two bumpers, but each calls the same handler routine, in this case called bump(). See the code below.

    Actual code example:

    RedBotBumper lBumper(10, &bump);
    RedBotBumper rBumper(11, &bump);

    volatile boolean bumped = true;

    void bump()
       {
       motors.brake();
       bumped = true;
       tone(BEEPER, 150, 750);
       }

    Look through the example sketch to see these lines in their proper context.

    RedBot Mechanical Bumper Resources


    This product was added to our catalog on Tuesday 20 May, 2014.

    Reviews

    Customers who bought this product also purchased
    5-pin Press-Fit Header Strip, Breakaway Pins, 2.54mm Pitch5-pin Press-Fit Header Strip, Breakaway Pins, 2.54mm PitchUS$1.25

    Jumper Wires, F-F, 12" (Qty 10) and 40-pin HeaderJumper Wires, F-F, 12" (Qty 10) and 40-pin HeaderUS$1.00

    RedBot Buzzer: CCV-084B16 Magnetic Audio TransducerRedBot Buzzer: CCV-084B16 Magnetic Audio TransducerUS$2.95

    RedBot Robot Kit: Chassis and Sensors, Programmed in ArduinoRedBot Robot Kit: Chassis and Sensors, Programmed in ArduinoUS$44.95

    Shopping Cart more
    0 items
    What's New? more
    Gear Motor, 6V DC, 1:48 Ratio, Dual Shaft
    Gear Motor, 6V DC, 1:48 Ratio, Dual Shaft
    US$1.00
    Tell A Friend
     

    Tell someone you know about this product.
    Notifications more
    NotificationsNotify me of updates to RedBot Sensor - Mechanical Bumper: Whisker Wire, Screws
    Reviews more
    Write ReviewWrite a review on this product!
      Thursday 31 October, 2024   List of all our Products

    Copyright © 2003-2017 MicroController Pros LLC
    Powered by osCommerce