Now that you know how to turn on and off light-emitting diodes (LEDs) using switches and light sensors, you are ready to learn how to make an LED blink on and off all by itself. For this project, I am going to introduce a new type of electronic component called an integrated circuit (IC). An integrated circuit, commonly called a microchip, is just a tiny circuit inside a plastic case. You’ve probably seen ICs inside electronics or computers. For this project, you will use a very popular IC called a 555 timer to make a blinking and beeping UFO.
To make this project, you are going to have to learn a bit more about integrated circuits and how to use them. You will also learn how to use another electronic component called a capacitor.
An integrated circuit is really just a tiny circuit that includes several electronic components like resistors and transistors inside of a plastic case. You can connect to this circuit through the metal legs, called pins, that come out of the case. Many types of integrated circuits can perform many different functions. Some ICs act as counters, amplifiers, memory storage devices, microprocessors, and more.
The IC that we are using for this project is called a 555 timer (see Figure 8-1). The 555 timer is a popular chip with many uses. This IC is a type of oscillator, or a circuit that allows you to vary the voltage coming from one of the pins on the IC in a wavelike pattern. If you can get the voltage to go up and down in a regular pattern, then you can use that changing voltage to get an LED to blink on and off. The 555 timer can generate electrical pulses, or oscillations, with intervals from over one hour to only 0.00005 seconds! The 555 timer has eight pins to which you can connect your circuit. To use any IC, you need to know how to connect it to your circuit. For this, you can use a pinout diagram like the one shown in Figure 8-2.
An important note about sewing circuits with integrated components: The legs, or pins, on ICs are very small and close together. It would be really difficult to sew directly to them. As a solution, you can use a specially designed circuit board called a breakout board. When you plug a 555 timer into a breakout board, then the pins of the IC are connected to holes that spread out, and these are easy to connect to with your conductive thread (see Figure 8-3). For a list of suppliers for this part, please visit the website for this book at www.techdiy.org.
A capacitor is used to store electrical charge in a circuit. Similar to the way your body builds up static electricity in the winter and then releases it when you touch a doorknob, a capacitor allows the electrical energy between two separated plates to build up until it is so great that the electricity jumps across the plates, discharging the capacitor in the process. Capacitors are helpful for absorbing and stabilizing voltage as well as for charging and discharging electricity as a battery does (see Figure 8-4). The amount of charge that a capacitor can hold is measured in farads. Common capacitors store microfarads for softening voltage changes or for controlling short intervals of electrical signals. A super capacitor has 1,000 times more storage capacity than a common capacitor.
The circuit diagram in Figure 8-5 shows how to blink two LEDs using a 555 timer, a 10 microfarad (uF) capacitor, a 200 ohm resistor, and a 10,000 ohm (10k ohm) resistor. The 10k ohm resistor, shown here between pins 6 and 7, is used to control the rate of blinking. If you increase the size of that resistor, the blinking will slow down. As shown in Figure 8-5, you can also add a buzzer in a parallel circuit with two LEDs to make your UFO beep as well as blink.
The circuit in Figure 8-5 makes two LEDs blink and a buzzer make a beeping sound. What suitable project ideas can you come up with that blink and beep? Use your imagination. In our example project, we are going to make a UFO. Make a life-size sketch of your project like the one in Figure 8-6.
Once you have decided on your design and sketched it out, check out the circuit diagram in Figure 8-7 to decide where to position your components and how to connect them with conductive thread. Draw your circuit on the back of your project sketch. Give yourself plenty of room because this is a complicated circuit with many components and connections. It is a good idea to place the 555 timer near the middle of your circuit. You can then put the rest of your components on your circuit diagram to make sure you haven’t made any mistakes and that you have enough room for all the pieces of the circuit.
After your have sketched and planned out your project, you are ready to gather your materials and begin making it. Be aware that as your circuits get more complicated, with more components and more connections, you really have to be careful that you don’t cross the conductive threads; you also need to make sure that the knots that hold your components are tight, that they don’t fray, and that they don’t touch each other.
Follow these steps to make your timer circuit:
As you begin each thread, double-check the circuit diagram in Figure 8-5 to make sure that you are connecting the components properly.
Start with pin 1 on the 555 timer. Make sure it is connected to all of the correct components and that the components are facing in the correct directions. Then move on to pin 2 and do the same thing. Repeat this process for all eight pins on the 555 timer. Note that pins 4 and 5 are not connected to anything. That is okay. We are not using those pins in this circuit.
Figure 8-8 and 8-9 show both sides of the completed project.
The 555 timer is a popular chip for electronics enthusiasts because it is inexpensive, easy, and safe to use. You can make a lot of different projects with this chip.
Figures 8-10 and 8-11 show another idea for a project that uses a 555 timer.
Figures 8-12 and 8-13 show a police car that I made that makes a beeping sound and has some flickering lights. I found that if the buzzer is too loud, I could cover it with some tape to dampen the sound.
Now that you’ve seen some project ideas, are you curious about how you can make your own circuit boards like the breakout board for the 555 timer? You can prototype your own circuit boards using something called a breadboard. A breadboard like the one in Figure 8-14 allows you to quickly and easily connect electronic components together to test your circuit.
Once you are sure that your circuit is working with the breadboard, you can design your circuit on a computer using a circuit design program like Eagle, Fritzing, or 123D Circuits. Both Fritzing and 123D Circuits allow you to order circuit boards directly from their programs, or you can send your circuit designs to a company like OSH Park that prints and mails circuit boards. Or if you’re even more adventurous, you can make your own circuits using a chemical etching process. To learn more about this process, check out this tutorial: http://makezine.com/projects/pcb-etching-using-toner-transfer-method.
Figures 8-15–8-17 show pictures of a school project for which I made my own circuit boards. This dollhouse has motorized puppets in each room. By turning the pages in a book, the reader controls the puppets and causes them to act out scenes from different fairy tales.
Figure 8-16 shows the custom-made circuit board I designed for the dollhouse. All of these wires are connected to the sensors on the pages of the book and different motors control the different puppets.
Figure 8-17 shows the custom circuit board I designed for this project.
Wow! Now that you’ve learned how to use the 555 timer to make LEDs blink and a capacitor to store electricity, the next chapter is going to free you from batteries! You will use a solar panel and a super capacitor to collect, store, and use the energy from the sun!
3.149.243.32