Electronics All-in-One For Dummies. Doug Lowe
Чтение книги онлайн.

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

Название: Electronics All-in-One For Dummies

Автор: Doug Lowe

Издательство: John Wiley & Sons Limited

Жанр: Отраслевые издания

Серия:

isbn: 9781119822134

isbn:

СКАЧАТЬ project. Why do you want to build it? What will it do, who will use it, and why?

      I knew right away that I’d need some type of electronic circuit to control the jack-in-the-box. At first, I wasn’t sure exactly what type of circuit I’d need, but I knew I needed a circuit of some kind.

image

      FIGURE 6-1: One of my scarier electronics projects.

       What will its user interface be? That is, how will a person work with the device to get it to do what it’s supposed to do?

       Will it be a stand-alone device, or will it interact with other devices?

       Will it be powered by batteries, or will it plug into a wall outlet to get its power? Or will it be solar powered?

       How big will it be? Does it need to be small enough to hold in your hand or fit in your pocket? Or will it sit on a shelf?

      The jack-in-the-box Halloween prop is a fairly complicated project — too complicated to use as an illustration this early in the book. So, here’s a simpler project: an electronic decision maker. Have you ever resorted to tossing a coin to make a difficult decision? For this project, you create an electronic version of a coin toss. Instead of flipping a coin into the air to see if it lands heads or tails, you build an electronic device that does the coin toss. That way, you can make decisions even when you’re penniless.

      The specifications for the coin-toss project are as follows:

       The device will have two LED indicators to indicate heads and tails.

       It will also have two small metal contacts, which the user can touch with their finger. When the user touches both of the posts, the LEDs start flashing, alternating back and forth, much like a coin flips end over end when you toss it into the air.

       When the user removes his finger from the two metal contacts, one of the two lights will stay lit, indicating whether the result of the coin toss is heads or tails. Which light stays lit will be essentially random.

       To conserve battery life, the device will have an on/off push button. The user must depress the push button to make the device work; when the button is released, the device is turned off.

       The device will be battery powered and contained in an enclosure small enough to hold in your hand.

image

      After you have an idea for a project, the next step is to design a circuit that meets the project’s needs. At first, you’ll find it very difficult to design your own circuits, so you’ll turn to books like this one or to the Internet to find other people’s circuit designs. With a bit of Google searching, you can probably find a schematic diagram that’s very close to what your project needs.

      In many cases, you won’t be able to find exactly the circuit you’re looking for. You may find a circuit that’s close, but you may need to make minor modifications to make the circuit fit your project’s needs. At first, making modifications to a circuit may seem beyond your abilities. But as you gain experience, you’ll find yourself tweaking circuits all the time to fit specific applications.

       A circuit to detect when someone has entered the room to trigger the prop’s action

       A circuit to open and close the jack-in-the-box

       A circuit to time how long the jack-in-the-box should stay open

       A circuit that plays a screaming sound

       A circuit that provides a 30-second delay before the prop is activated again

      The schematic diagram shown in Figure 6-3 differs from our project’s needs in just two ways. First, it doesn’t have an on/off switch. And second, it uses a push button instead of the user’s fingers to start and stop the LEDs from flashing.

      Remember Please don’t worry at all if you don’t understand how the circuit depicted in Figure 6-4 works. I wouldn’t expect you to at this point in the book! Understanding how a circuit works and building that circuit are two entirely different things; you can (and probably will) build plenty of circuits whose operation you don’t understand. The only thing you should focus on at this point is how the schematic diagram indicates the various connections between the parts in the circuit. You learn the details of how this circuit works in Book 3, Chapter 2.

      One final step you might want to consider when designing a circuit is to create a final version of the schematic diagram that indicates what components will be mounted on your final circuit board and what components won’t be on the circuit board. This diagram will come in handy later when you’re ready to create the circuit board that will become the permanent home of your circuit.

image

      FIGURE СКАЧАТЬ