Читать книгу Raspberry Pi Projects For Dummies - Evans Jonathan - Страница 18
Part I
Getting Started with Raspberry Pi Projects
Chapter 2
Setting Up Your Tools and Workbench
Assembling Your Tools
ОглавлениеYou need some basic tools to build several of the projects in this book. The tools basically fall into two categories: electronics tools and physical building and fabrication tools. You can get most or all of these components from electronics retailers such as Radio Shack (in the United States) or Maplin (in the UK). Specialty electronics suppliers on the Internet also stock them and are often cheaper, so hunt around at places like Farnell (www.farnell.com), Newark (www.newark.com), Rapid Electronics (www.rapidonline.com), and RS (www.rs-components.com). Sometimes you can find good deals on Amazon (www.amazon.com) and eBay (www.ebay.com), too.
Electronics tools
Here are the basic electronics tools you’ll want on your shopping list:
✔ A multimeter: A multimeter is an essential tool for most electronic projects. You use it to perform basic tests to make sure that you have good connections in your electrical circuits. With a multimeter, you can measure the characteristics of an electrical circuit and troubleshoot why something may not be working. A multimeter is also handy for testing and measuring individual electronic components. You should have one on hand for testing and troubleshooting your projects. (See the following section, “Selecting a multimeter,” for more information.)
✔ A breadboard and jumper wires: Some of the projects in this book involve wiring up electrical components, LEDs, sensors, or actuators to your Raspberry Pi. This can be as simple as one or two wires, but some of the projects have many connections. A breadboard is a simple tool to help you easily make all these electrical connections. You need jumper wires to make connections when you’re using a breadboard. Wires come in solid core and stranded versions (which contain many fine wires). You need solid core jumper wires for working with breadboards.
✔ A soldering iron: A breadboard is ideal for temporary connections and prototyping, but for some connections you’ll want something more permanent. This is where a soldering iron comes in. You use a soldering iron to make strong, permanent connections between electronic components. If you want to mount buttons onto an enclosure for your project, you’ll probably want to solder wires to the buttons and connect these to your Raspberry Pi. You can even build part of your circuit on a breadboard and use soldered connections for switches or sensors that are located some distance away. (See the upcoming section, “Selecting a soldering iron and accessories,” for more information on what to look for.)
✔ A power supply: None of the projects in this book requires a desktop power supply, so this is optional. But for general electronics experimenting, you’ll probably want to have a power supply on hand.
Selecting a multimeter
A multimeter is an essential tool for testing, measuring, and diagnosing problems in electronic circuits. You use a multimeter to measure several basic attributes of your circuit, including:
✔ Continuity: Whether there is a good connection between two points
✔ Voltage: The measure of potential electromotive force in a circuit
✔ Current: The measure of the continuous, uniform flow of electrons through an unbroken pathway in an electrical circuit
✔ Resistance: Opposition to the flow of current within a circuit
With a multimeter, you can also measure the voltage provided by batteries and power supplies, and the characteristics of discrete electronic components, such as resistors, capacitors, diodes, and transistors.
Different models have different features, and the more expensive ones have advanced features you may not need. That said, there are two important features to look for:
✔ Continuity with audio signal: Checking continuity – making sure that the things you think are connected really are connected – is the task you’ll use your multimeter for most often. You touch the two probes to part of a circuit to see if they’re connected, and the multimeter screen displays a confirmation. With cheap multimeters, you need to hold the probes in place while looking at the screen, which can be annoying if the probes slip off. It’s a pain to check continuity by holding leads on a circuit while you’re also looking at the display. It’s much easier to just poke around and listen for an audio signal. Meters with audio output will beep when you test for good continuity so you don’t have to take your attention away from the circuit. If you can, spend a little more for a multimeter that has this feature.
✔ Auto-ranging: Inexpensive multimeters require you to estimate the range of measurement and set the dial accordingly. On auto-ranging multimeters, you don’t have to set the dial to select the range of measurement that you’re reading. Auto-ranging is particularly handy and can be worth paying slightly more for.
Older multimeters used a needle and graduated scales for the display, but modern ones use a digital readout. If you don’t already have a multimeter, we recommend getting a digital one, like the one shown in Figure 2-2.
Figure 2-2: A digital multimeter is an essential diagnostic tool.
Selecting a soldering iron and accessories
Many of the projects in this book can be built without soldering anything at all, but you’ll need to do a little bit of soldering for some of the projects, so it’s good to have a soldering iron on hand.
Soldering involves melting solder (a metal alloy that melts at about 700°F) and allowing it to cool, creating a strong, conductive joint. You can solder wires to each other and join wires to components. You can bond wires to circuit prototyping boards such as perfboards and stripboards. Soldering secures components in place, while creating a good electrical connection for a more permanent, longer-lasting project. You can also simply solder certain components (like switches and displays) to wires that lead to your breadboard. That way, you can mount them in a project box. On some projects, you may want to move buttons or switches from the breadboard to the project enclosure, which means you’ll need to solder extension wires on them.
Your soldering iron provides the heat for creating a soldered joint. Many people have the impression that you melt solder onto the parts that you want to connect, but this is actually backward. When soldering, you use a soldering iron to heat up both the solder and the components that are being joined together. When the components are hot enough, the solder will flow onto them, at which point, you remove the tip of the soldering iron and, thus, the heat supply. The solder cools rapidly and, if done correctly, forms a reliable bond.
Figure 2-3 shows a basic array of soldering tools. The key soldering tools you need at your workbench are as follows:
✔ Soldering iron: Your main soldering tool. Irons can be very inexpensive, but the professional ones can set you back hundreds. If you want to save money, avoid the cheapest ones and aim for a soldering iron that’s at the top end of the low-range options. You’ll need one that supplies at least 30 watts. A soldering iron with an adjustable temperature setting can be useful if you need extra heat for large joints, but it’s not essential.
✔ Solder: A metal alloy you use to create soldered joints. There are both leaded and lead-free varieties. Some purists prefer leaded 60/40 solder (60 percent tin, 40 percent lead), but lead is toxic, so unless you have a particular need for it, we recommend you opt for the lead-free variety, with a rosin core. The rosin core melts and helps to clean the surfaces you’re joining. Solder comes in a variety of diameters measured in standard wire gauge (SWG). For most electronics soldering needs, 18 SWG or 20 SWG diameter is ideal. You can use 22 SWG for detailed work.
Somewhat counterintuitively, as the wire gauge number goes higher, the diameter of the wire gets smaller.
✔ Extra soldering tips: Tips do the main work of the iron, directing the heat in the right place. Tips come in a variety of shapes and sizes. For most electronics work, you’ll need a cone-shaped tip rather than a chisel tip. Because they come into contact with molten metal and impurities, tips can degrade over time, so it’s a good idea to get spares.
Different manufacturers have different tip-mounting systems, so buy a couple extra tips when you buy your iron to avoid having to hunt for the right product later.
✔ Soldering stand: A device that holds the wand safely while it’s hot. It may have a sponge for cleaning the tip. Soldering stands are often included with soldering iron kits.
✔ Cellulose sponge and brass wire sponge: You use these to clean the tip of your iron, which you do while the iron is hot. You can use either a cellulose sponge or a brass wire sponge, depending on your preference. The cellulose sponge can be any garden-variety kitchen sponge from the supermarket dipped in a bit of water and wrung out. Using a moist sponge cools down the tip of the iron, which is something to avoid because your iron will have to work harder to keep the tip at a constant temperature, and contaminants can build up on the tip. The brass wire sponge costs a little more, but it doesn’t cool down the tip of the iron when you’re cleaning it and it doesn’t contaminate the tip. Using brass wire also means that your tip will last longer.
✔ Desoldering tools: You use these tools to remove unwanted blobs of solder from your work or disconnect wires, traces, or components that you may have soldered together by accident. You can find both desoldering wick and soldering suckers. A soldering sucker is a spring-loaded pen that you can use to suck liquefied solder away from your work piece. Desoldering wick is simply braided flat copper ribbon, which you press against your work while heating it. Capillary action draws the liquefied solder onto the braid and away from your work. We tend to prefer wick, which is cheaper and usually more effective.
✔ Tip-cleaning paste: Even with careful use, your tip may develop an oxidation coating, especially if you don’t clean it regularly. This makes it very difficult to coat the tip and control the way your solder flows. Cleaning paste can help to remove oxidation and debris.
Figure 2-3: An entry-level soldering iron and essential accessories.
Physical building and fabrication tools
You also need some basic tools for light fabrication. Not all these tools are essential, but often the one tool you don’t have is the one you need so you may want to stock up. Figure 2-4 shows some of the essential tools. We’ve listed these roughly in order of importance, from most to least:
✔ A selection of precision screwdrivers: Both flathead and Phillips-head screwdrivers are essential.
✔ Helping hands: This is a small clamp with two alligator clips to hold your work piece; it often comes with an integrated magnifying glass. This tool is essential for gripping objects you’re working on – unless you have three arms.
✔ Wire strippers: You use these for cutting and stripping the insulation off of wires. They come in several different styles. Splurge a little here – if they’re too cheap, they’ll produce poor results and be frustrating to use.
✔ Angled side cutters: You use these for clipping component leads and cutting wires.
✔ Needle-nose pliers: Use these for holding fine objects. You should have both small and large ones on hand.
✔ A task light with magnifier: Use these to provide direct illumination and to make it easier to see fine work. Get one with a spring arm so that you can place it right over your work, if necessary.
✔ A box cutter/carpet knife with replaceable blades: Use this for cutting sturdier materials.
✔ A cutting mat: You need this to protect your work surface.
✔ A Sharpie and a pencil: Use these for making cutting marks and permanent marks. No workbench is complete without a Sharpie!
✔ Hand drill and small hand saw (not shown): For small projects, you can probably use inexpensive hand tools, which you should be able to get at your local hardware store. Power tools will also work, but they’re generally more expensive.
Figure 2-4: Some essential light fabrication tools.