Electronics All-in-One For Dummies. Doug Lowe

Чтение книги онлайн.

Читать онлайн книгу Electronics All-in-One For Dummies - Doug Lowe страница 46

Electronics All-in-One For Dummies - Doug Lowe

Скачать книгу

or the other will remain lit.

image

      If you don’t want to spend the money for a bona fide electronic project box, here are a few alternative ways to find the perfect enclosure for your project:

       Shop discount department stores for small storage boxes. You might find one that’s just the right size and shape for much less money than an official project box of the same size would cost. (If the storage box is an unattractive color, you can always give it a quick coat of paint.)

       In the electrical department of any hardware store, you’ll find inexpensive plastic and metal boxes designed for household wiring. Many of these boxes can be adapted for your electronic projects.FIGURE 6-17: Project boxes come in a variety of shapes and sizes.

       Before you throw away an old electronic gizmo, take a quick look at the box it’s contained in. If you think it might be useful for a project someday, take it apart and discard all the innards, keeping only the empty carcass. Be careful whenever you disassemble any electronic device. Make sure you have first completely removed the power source and watch out for large capacitors that may be holding on to their charge.

       If you frequent yard sales, be on the lookout for items that might be useful as containers for your projects.

      Working with a project box

      Most project boxes are made of plastic or metal and have a detachable lid that’s held on with four screws, one at each corner of the lid. To gain access to the insides of the box, you simply remove the screws to release the lid.

       You’ll need a good assortment of small drill bits to drill holes through the box to mount your components. You’ll need to drill holes to mount the circuit board as well as such things as battery holders, switches, LEDs, speakers, and whatever else your project may require.

       Make a good sketch of your project box and how its parts will be arranged before you start drilling holes. When you’re sure that you have everything laid out the way you want, use a marker to indicate the exact position of the holes you need to drill.

       To mount the circuit board, use standoffs to provide some empty space between the board and the case. A standoff is a screw that allows you to mount the board so that it is raised above the bottom of the project box. You can purchase standoffs from any electronic parts supplier, but they are surprisingly expensive, often as much as 45 cents each. If you have an ample supply of nuts and bolts, you can fashion your own standoffs simply by cutting a short length of plastic tubing — my favorite material is ¼-inch drip irrigation hose — and feeding a long bolt through it.

       Consider mounting the circuit board on the back of the lid rather than inside the body of the box. This sometimes frees up more room within the box for larger items such as batteries or a speaker.

       Most switches can be mounted to a box by drilling a hole large enough to allow the neck of the switch to pass through. The switch comes with a nut that you can tighten over the neck of the screw to secure the screw to the box.

       Some components don’t have mounting nuts to secure them to the box. For them, a small amount of epoxy or other glue can help set the component in place.

       Use stranded wire for connections within the project box. Stranded wire holds up better to the handling it occasionally gets when you open the box, for example, to change the batteries.

      Mounting the coin-toss circuit in a box

      In this section, you finish the coin-toss project by mounting its circuit board in a plastic project box along with a 9 V battery, a power button, and the two metal contacts that the user can touch to toss the coin.

Quantity Description
1 Project enclosure 5 x 2½ x 2 inches
1 9 V battery holder
8 ½-inch 6-32 standoff male-to-female
6 6-32 nuts (to fit standoffs)
4 6-32¼-inch inch bolts (to fit standoffs)

      When you’ve collected your parts, here’s the procedure for putting the project together:

      1 Drill the required mounting holes in the lid.You need to drill a total of eight holes in the lid. Four are for mounting the circuit board, two are for the LEDs, and two are for the metal finger contacts.Figure 6-18 provides a template you can use. The smaller holes are inch, the two larger holes are ¼ inch. Note: The distance between the four holes at the top of the lid must be exactly 1⅜ inches so that they line up with the mounting holes in the circuit board. The measurements for the other holes don’t need to be as precise.

      2 Drill a -inch hole for the push button near the top of the left side of the box.The exact location isn’t that important. I suggest you hold the box in the palm of your left hand to determine the best location to drill, where your thumb will be able to easily reach the button.

      3 Mount the push button in the box.Remove the nut from the neck of the push button, pass the neck through the hole you drilled in the preceding step from the inside of the box, and then thread the nut onto the neck from the outside of the box and tighten it down with pliers.

      4 Use Epoxy or hot glue to glue the 9 V battery holder to the base of the box.Position the holder near the top of the box, adjacent to the hole you drilled for the switch.

      5 Mount the circuit board standoffs.Mount four of the ½-inch standoffs on the underside of the lid by inserting

Скачать книгу