28.01.2013 Views

Build Your Own Combat Robot

Build Your Own Combat Robot

Build Your Own Combat Robot

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7: Controlling <strong>Your</strong> Motors 135<br />

In Figure 7-6, we assume two low-current, SPDT control switches to drive the<br />

relay coils, although smaller relays with Type C (or SPDT) contacts can be used in<br />

place of the switches. Note that just like the relays described in the previous section,<br />

the control switches have NO, NC, and common terminals. In the resting state,<br />

the NC legs on the forward and reverse switches result in relays A and C being energized<br />

and relays B and D being de-energized. No battery current can flow<br />

through the motor because no path exists from the motor to the negative terminal<br />

of the battery, and the motor terminals are shorted to each other through relays A<br />

and C. The motor is stationary and locked in place.<br />

To run the motor forward, the forward switch is activated, which causes relay<br />

C to de-energize and relay D becomes energized. The motor now has one terminal<br />

connected to the positive side of the battery through relay A, and the other terminal<br />

connected to the negative side of the battery through relay D. This makes a<br />

complete circuit and causes the motor to run. To run the motor in reverse, the reverse<br />

switch is activated, causing a current flow from the battery, through relay C<br />

into the motor and out through relay B into the other side of the motor.<br />

note If both the forward-going and reverse-going switches are activated, the circuit path<br />

will be broken and the motor terminals will be shorted together.<br />

A significant danger of relay control is the possibility of contacts bouncing on<br />

severe impact that a combat robot will receive during a battle. A severe shock impact<br />

in a direction relative to the relay orientation can be sufficient to overcome<br />

the force of the return spring holding the contact bar out, thus causing a momentary<br />

connection across the relay’s contacts. Having a weapon motor switch on for<br />

a moment might not be a catastrophic event, but it can be dangerous if people are<br />

nearby and a weapon starts to move. If a momentary short occurs within the motor<br />

braking relay while the motor is running, or if one of the nonactive relays in the<br />

H-bridge is shorted while the other side of the H-bridge is active, a dead short<br />

across the main motor batteries will result. In the relay circuit shown Figure 7-6,<br />

this can happen even when the motor is not running—because half the relays in<br />

the circuit are always energized, a momentary contact bounce of any of the<br />

non-energized relays will cause a catastrophic short. The dead-short battery current<br />

will inevitably weld the contacts together, resulting in the entire wiring harness<br />

going up in smoke and one dead robot.<br />

Turning Switches On and Off<br />

In a remote controlled robot, you will need a way to turn switches on and off remotely.<br />

This can be done either electronically or mechanically. The electronic approach<br />

will be discussed in the solid-state logic section. A mechanical approach<br />

will require some form of an actuator to turn the switch on and off physically. One<br />

of the cheapest and easiest ways to mechanically actuate a switch is to simply use a<br />

standard hobby radio-controlled (R/C) servo to throw a switch.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!