Basic Simple Bots Electronics
by randofo in Circuits > Electronics
26021 Views, 127 Favorites, 0 Comments
Basic Simple Bots Electronics
![CH2.jpg](/proxy/?url=https://content.instructables.com/F69/24JO/H142Z3T0/F6924JOH142Z3T0.jpg&filename=CH2.jpg)
Before we can build Simple Bots, it is important to have a rudimentary understanding of how electricity works (or does not). Electricity comes in two forms, AC (alternating current), which is like the power that comes from a wall socket, and DC (direct current), which is like the power that comes from a battery. In the Simple Bots eBook, all of the electricity for bots will be coming from batteries. So, I will only be explaining DC (direct current) electricity in this Instructable.
![ch2a.jpg](/proxy/?url=https://content.instructables.com/FVC/PX5P/GVA8DY5X/FVCPX5PGVA8DY5X.jpg&filename=ch2a.jpg)
When working with DC electricity, there are a few things to keep in mind, but two in particular which you shouldn't forget:
- DC power sources have both a positive ("plus") terminal and a ground terminal.
- In order for any circuit to work, electricity must be able to flow between positive and ground.
![ch2-2.jpg](/proxy/?url=https://content.instructables.com/F6F/3H0T/GV8SD1MH/F6F3H0TGV8SD1MH.jpg&filename=ch2-2.jpg)
The next very important consideration to keep in mind is that electricity must be used.
In other words, there needs to be something wired between positive and ground that adds resistance to the flow of electricity and uses it up. If positive voltage is connected directly to ground and does not first pass through something that adds resistance, like a motor, this will result in a short circuit. This means that the positive voltage is connected directly to ground.
When positive voltage is connected directly to ground, your battery will get painfully hot and, after a while, may do something bad like leak nasty burning chemicals. It may also result in spontaneous combustion of your circuit.
It is very important to prevent short circuits by making sure that the positive voltage is never wired directly to ground.
Note: A switch does not add resistance to a circuit and simply adding a switch between power and ground will create a short circuit. While building Simple Bots, you should always make sure that your circuit has at least a motor between power and ground.
In other words, there needs to be something wired between positive and ground that adds resistance to the flow of electricity and uses it up. If positive voltage is connected directly to ground and does not first pass through something that adds resistance, like a motor, this will result in a short circuit. This means that the positive voltage is connected directly to ground.
When positive voltage is connected directly to ground, your battery will get painfully hot and, after a while, may do something bad like leak nasty burning chemicals. It may also result in spontaneous combustion of your circuit.
It is very important to prevent short circuits by making sure that the positive voltage is never wired directly to ground.
Note: A switch does not add resistance to a circuit and simply adding a switch between power and ground will create a short circuit. While building Simple Bots, you should always make sure that your circuit has at least a motor between power and ground.
![ch2-3.jpg](/proxy/?url=https://content.instructables.com/FZL/172U/GV9SP4WO/FZL172UGV9SP4WO.jpg&filename=ch2-3.jpg)
Series and parallel are two different ways that electronic components can be wired together in a circuit.
When things are wired in series, things are wired one after another, such that electricity has to pass through one thing, then the next thing, then the next, and so on.
In this example, the motor, switch and battery are all wired in series because the only path for electricity to flow is from one, to the next, and to the next.
When things are wired in series, things are wired one after another, such that electricity has to pass through one thing, then the next thing, then the next, and so on.
In this example, the motor, switch and battery are all wired in series because the only path for electricity to flow is from one, to the next, and to the next.
![parallel.jpg](/proxy/?url=https://content.instructables.com/F8D/U6ZS/H0ODIIAJ/F8DU6ZSH0ODIIAJ.jpg&filename=parallel.jpg)
When things are wired in parallel, components are wired side by side, such that electricity gets divided between them and passes through all of them at once.
![ch2-5.jpg](/proxy/?url=https://content.instructables.com/F5D/LOE4/GVA8UR7B/F5DLOE4GVA8UR7B.jpg&filename=ch2-5.jpg)
Now, to put it all together. In this example, the motors are wired in parallel, but the pair of parallel motors, switch and batteries are all wired in series.
So, the electricity is split between the motors in a parallel fashion, but still must pass in series from one part of the circuit to the next.
Note: Electricity follows the path of least resistance to ground. This means, that if you give positive voltage the choice to pass through a motor to ground, or follow a wire straight to ground, it will follow the wire because the wire provides the least resistance. This also means that by using the wire to bypass the source of resistance straight to ground, you have created a short circuit. Always make sure that you never accidentally connect positive voltage to ground while wiring things in parallel.
![electronicParts.jpg](/proxy/?url=https://content.instructables.com/FJH/M9WH/H0ODIIAK/FJHM9WHH0ODIIAK.jpg&filename=electronicParts.jpg)
To work with electronics, we will be using a handful of basic supplies and tools. The electronic supplies mainly include wire, battery holders, switches and motors. You will also need a couple of extra tools that we did not mention in the Simple Bots Tools and Fasteners instructable. If you don't know how to solder, don't worry, we will briefly go over that.
![batteryHolders.jpg](/proxy/?url=https://content.instructables.com/FJ6/Q7RN/H0OD8ZE9/FJ6Q7RNH0OD8ZE9.jpg&filename=batteryHolders.jpg)
To begin with, we will need battery holders and clips. The standard battery that we will be working with is AA and the standard size battery holders will hold two, three and four AA batteries.
The way the AA battery holders work is that they connect the batteries in series. When connected in series, the battery voltage adds up. So, two 1.5V batteries in series adds up to a 3V power supply. It goes to follow that three batteries add up to a 4.5V power supply and four batteries add up to a 6V power supply.
On occasion, we will also use 9V batteries and connectors.
![ch2-8.jpg](/proxy/?url=https://content.instructables.com/FUK/TD0U/GV9CENFK/FUKTD0UGV9CENFK.jpg&filename=ch2-8.jpg)
The next thing we will be using, and a lot of, is 22-gauge stranded wire. You will want to get a spool of red wire and a spool of black wire. Traditionally, red represents power and black represents ground. It is good form to use your wire in this manner, to avoid wiring mistakes and short circuits.
Note: For prototyping, you may want to get a set of alligator clips. These allow you to quickly and impermanently wire things together for prototyping without having to solder them.
![5.jpg](/proxy/?url=https://content.instructables.com/F3D/QEZK/GOHMGNWM/F3DQEZKGOHMGNWM.jpg&filename=5.jpg)
Wire strippers are used to both cut wire and easily remove the insulation from around the metal core.
To use them, simply insert the end of your wire into the appropriately-sized groove, squeeze the handle tight, and pull on the longer side of the wire. This should remove the jacket from the end of the wire
To use them, simply insert the end of your wire into the appropriately-sized groove, squeeze the handle tight, and pull on the longer side of the wire. This should remove the jacket from the end of the wire
![ch2-9.jpg](/proxy/?url=https://content.instructables.com/FOZ/6LQ2/GV9SP4WC/FOZ6LQ2GV9SP4WC.jpg&filename=ch2-9.jpg)
Switches come in all shapes and sizes. They can be controlled by levers, buttons, sliders, twisty knobs and even magnets (to name a few). They all fundamentally operate on the same principle. Basically, a switch opens and closes a circuit.
In other words, imagine that you have a complete circuit wired together and it is turned on. Then, imagine that you cut one of the wires in the circuit in half and the circuit turns off. Now, imagine that you touch these two ends of the wire together again and it turns on. Then, you pull them apart and it turns off. You have just created a crude switch.
A simple switch is basically a break in a circuit that can be opened and closed, typically by some sort of mechanical means (like a lever or button). This basic type of switch is called an SPST switch (single-pole, single-throw).
Of course, switches can get more complicated. Many of the switches that we will use, when activated, will break one circuit connection and simultaneously complete a new one. This type of switch is called an SPDT switch (single-pole, double-throw).
The switch we use most often is basically two SPDT switches bundled into a single switch and controlled by a single lever. This is called a DPDT switch (double-pole, double-throw). I will talk about this switch a bit more in the next chapter, as it is vital for mechanically reversing a motor direction.
![ch2-10.jpg](/proxy/?url=https://content.instructables.com/F18/JBGN/GV9SP50L/F18JBGNGV9SP50L.jpg&filename=ch2-10.jpg)
One of the key components of bot building is motors. There are a number of different types of motors to choose from, but in this book we will be using a few different types of DC motors.
![ch2-11.jpg](/proxy/?url=https://content.instructables.com/FXM/NGIK/GVBCZP8B/FXMNGIKGVBCZP8B.jpg&filename=ch2-11.jpg)
The main motor used in about 75% of the Simple bots I made is called a servo motor. A servo motor is basically a special type of DC motor with a gearbox. These work well because they are a standard size, have a bracket (called a horn) that you can mount things to, are controlled by low voltages and have a fair amount of torque. You can find servos in a number of different sizes, with different speed ratings, and different torque ratings.
All of the servos used to make Simple Bots have their controller boards removed.
![ch2-12.jpg](/proxy/?url=https://content.instructables.com/FEA/WG6X/GVA8DYC5/FEAWG6XGVA8DYC5.jpg&filename=ch2-12.jpg)
Aside from servo motors, we will also be using reversible DC motors, computer fans, and vibrating motors (which are basically modified reversible DC motors).
![F8QU83UGV2OKKPD.jpg](/proxy/?url=https://content.instructables.com/F7T/TVJ9/H1426M0W/F7TTVJ9H1426M0W.jpg&filename=F8QU83UGV2OKKPD.jpg)
Another commonly used motor, is the vibrating motor. The vibrating motor is basically just a DC motor with an off-centered shaft. You can learn all about vibrating motors in this instructable.
![FBQ38TUGUYMFWBF.jpg](/proxy/?url=https://content.instructables.com/FWW/S1UY/H14REXP3/FWWS1UYH14REXP3.jpg&filename=FBQ38TUGUYMFWBF.jpg)
Now that you know all about electronics, the one last set of skills that you will need is how to solder and how to desolder. Basically, these skills involve joining and disconnecting wires using a soft metal with a low melting point (i.e. solder). You can learn how to solder (and desolder) at the aforementioned links.