Electronics All-in-One For Dummies. Doug Lowe. Читать онлайн. Newlib. NEWLIB.NET

Автор: Doug Lowe
Издательство: John Wiley & Sons Limited
Серия:
Жанр произведения: Отраслевые издания
Год издания: 0
isbn: 9781119822134
Скачать книгу
to twist the leads as tightly as you can, so that no individual strands are protruding from the very tip of the wire.Insert the red lead into the last hole of the topmost row and insert the black lead into the last hole of the bottommost row.

      2 Connect the 9 V battery to the snap connector.The red LED should immediately light up. (If not, see the troubleshooting tips in the next section.)

      You can now test the circuit by touching both of the two free jumper wires. Pinch them both between your thumb and index finger, but don’t let the wires actually touch each other. The resistance in your skin will conduct enough current to complete the circuit, and the LEDs will start alternately flashing red, green, red, green, and so on. They will continue to flash until you let go of the jumper wires. Then, one or the other will stay lit. When you touch the wires again, the flashing will resume.

image

      FIGURE 6-12: The prototype of the coin tosser in operation.

      What if it doesn’t work?

      If your circuit doesn’t work, there are a number of troubleshooting steps you can take to find out why and correct the problem. Here are some helpful troubleshooting tips:

       Examine all the component leads to make sure none of them are touching each other. If any of the leads are touching, gently adjust them so that they’re not touching.

       Make sure that the circuit is getting power. Use your multimeter to test the battery voltage (see Chapter 8 of this minibook for information on how to do that), and verify that the leads from the battery snap connector are inserted properly into the solderless breadboard.

       Carefully double-check your wiring to make sure that every jumper and every component has been inserted in the correct spot.

       Verify the orientation of the 555 timer IC, making sure that pin 1 is in hole E14 and pin 8 is in hole F14.

       Verify that the LEDs are inserted in the correct direction. For the red LED, the short lead (the cathode) goes in D21, and the long lead (the anode) goes in D19. For the green LED, the short lead (the cathode) goes in G19, and the long lead (the anode) goes in G21.

      When you’re satisfied with the operation of your circuit, the next step is to build a permanent version of the circuit. Although there are several ways to do that, the most common is to construct the circuit on a printed circuit board, also called a PCB. In the following sections, you learn how printed circuit boards work and how to assemble the coin-toss circuit on a PCB.

      Understanding how printed circuit boards work

image

      FIGURE 6-13: A printed circuit board.

      There are two basic styles of printed circuit boards available:

       Through-hole: A PCB in which the copper circuits are on one side of the board and the components are installed on the opposite side. In a through-hole PCB, small holes (usually inch in diameter) are drilled through the board at the center of the copper pads. Components are mounted to the blank side of the board by passing their leads through the holes and soldering the leads to the copper pads on the other side of the board. When the solder joint is completed, any excess wire lead is trimmed away.

       Surface-mount: A PCB in which the components are installed on the same side of the board as the copper circuits. No holes are drilled.

      Using a preprinted PCB

      The easiest way to work with printed circuit boards is to purchase a preprinted board from an electronics parts supplier. You’ll find a wide variety of preprinted PCBs at online distributors such as Hobby Engineering (www.hobbyengineering.com), Jameco Electronics (www.jameco.com), or All Electronics (www.allelectronics.com).

image

      FIGURE 6-14: A preprinted PCB that uses a standard breadboard layout.

      Some preprinted circuit boards have layouts that are similar to standard breadboard layouts, but not identical. So check carefully before you build; you may have to make minor adjustments to your circuit layout to accommodate the PCB you’re using.

      CREATING A CUSTOM PCB

      As you get more advanced in your electronics skills, you may find that you want to create your own custom-printed circuit boards rather than force your circuit designs to fit the limited variety of preprinted circuit boards that are available. Although it isn’t a trivial or inexpensive process, it’s possible to make your own printed circuit boards customized for your circuit.

      Here are the basic steps for creating your own printed circuit boards:

      1 Purchase a blank PCB. The entire surface of one side of this board will be completely coated with copper.

      2 Create