Operácie

Acrob020

Z SensorWiki

Verzia z 23:04, 18. november 2015, ktorú vytvoril Balogh (diskusia | príspevky)

Navigating with whiskers

To build a mechanical "Switch" you will need 2x 1/2" metal standoffs, 2x plastic washers, 2x metal whiskers, and 2x screws (longer) for the mechanical part of the switch:

AcrobWhiskersComponents.jpg

You will need to swap out the small screws holding the shield near the breadboard with the whiskers. In the end it should look like the image below.

AcrobWhiskersMechanical.jpg

For the electrical circuit, you will need the two 3-pin male headers, two 10kΩ resistors (Brown-Black-Orange), two 220Ω resistors (Red-Red-Brown), and two jumper wires. Plug the components into the bread board so it looks like the following:

AcrobWhiskersElectrical.jpg

When the robot is in an open area and the whiskers are not touching anything, the switch is open. This means that the circuit is providing the digital input pin with a high logic level.

However, when the robot starts to drive into a wall, the whiskers get pushed in towards the pins in the breadboard. Once the whiskers have been push far enough, the whiskers contacnt the pins and thus close the switch. Since the whiskers are connected to the BOE Shield-Bot frame, which is in turn connected to ground, the whiskers bring the digital input pin to ground and a low logic level.


AcrobWhiskers.png