The Witch Blinky-bot described in this instructable is a Level Two project. Completing a Level One Blinky-bot is a pre-requisite before attempting this project. You can expect to spend a minimum of two hours building this project, if all you do is put it together. We suggest spending some time first to get the circuit working on a breadboard before transferring it to the face.
The electronic circuit for Level One Blinky-bots is quite simple, consisting of wires, a battery and some fast-blinking multi-coloured LEDs. The LEDs blink because of an internal circuit in the LEDs. For the Witch Blinky-bot described here (and for the comparable Frankenstein Blinky-bot), the circuit is more complicated, with three additional components – resistors, capacitors and transistors. Two single-coloured LEDs blink in an alternating pattern, using a circuit known as an astable multivibrator. The Witch Blinky-bot uses two NPN transistors, while the Frankenstein Blinky-bot accomplishes the same task using two PNP transistors (more on this later).
The instructions presented in this booklet concentrate on assembly instructions. However, if you take the time, this project is a great opportunity to learn much more, such as:
Obviously, a short booklet cannot cover all of these topics. However, links to other sources where you can learn about these topics are included throughout this instructable. By taking the time to go through these extra sections, you will learn valuable skills needed to design your own circuits.
[1] Note that the pinout for different types of transistors is not always the same. See the schematic in the breadboarding section.
Note: A template for the witch parts can be found here: Witch-template.pdf
The circuit used for the Witch Blinky-bot is known as an astable multivibrator. Two examples of an astable multivibrator circuit are shown below. The schematic on the left uses NPN transistors, whereas the schematic on the right uses PNP transistors. Both circuits produce the same result. The Witch Blinky-bot uses a circuit similar to the one on the left and the Frankenstein Blinky-bot uses a circuit similar to the one on the right. Note that there are many circuits to create an alternating blinking pattern with LEDs. (See the section on Getting the Most Out of This Project. Note that the values of components supplied with this kit are different than the example shown below.)
From: http://led-circuits.blogspot.ca/2011/02/2-transistor-led-flasher.html
Simply stated, a schematic is a map, which shows how electronic components are connected between a power source and ground. This does not (necessarily) show where the components are placed, only how they are linked (by wires) together. To be able to build circuits, you will need to know the symbols for various electronic components. For this project, you will need to know the symbols for diodes, resistors, capacitors, transistors, batteries, and ground. (Note that LED’s are a type of diode, as LED stands for light emitting diode.) You also need to be careful of polarity when connecting your components. If a component has polarity, the positive end must be connected toward the power source and the negative end must be connected toward the ground. If a component does not have polarity, it may be connected in either direction. There are many sources to learn about circuit schematics. Here is one such source: https://learn.sparkfun.com/tutorials/how-to-read-a-schematic |
A resistor restricts the flow of current, in much the same way that a water faucet restricts the flow of water. Resistors help channel current flow in the right direction and protect other components, such as LEDs, from receiving too much current. Resistance, voltage, and current are related according to Ohm’s Law. Learn about resistors and Ohm’s Law here: https://www.youtube.com/watch?v=Gc1wVdbVI0E Resistance is measured in ohms. If you have not already done so, now is a good time to learn about how to use a multimeter to measure resistance. https://www.youtube.com/watch?v=TdUK6RPdIrA |
Capacitors store and discharge energy, much like a battery. The difference is that batteries store their energy in a chemical form, whereas capacitors store their energy in an electric field. Capacitance is measured in Farads. Larger capacitors have polarity, whereas smaller capacitors often do not. Here is one source to learn more about capacitors: https://www.youtube.com/watch?v=0gZKik_BhQQ |
A diode acts like a check valve; it allows current to flow in one direction and resists current flow in the other direction. Consequently, diodes have polarity. LEDs (light-emitting diodes) are just one of many types of diodes. The basis for a diode is a PN junction, which is also an important concept for transistors. To learn about PN junctions and diodes, check out: https://www.youtube.com/watch?v=ar7xDMR4P_U |
A transistor can be used as a switch or as an amplifier. In the case of the Witch robot, the two transistors function as switches. (You can clearly see how the transistors function as switches if you do the simulator exercise.) When placing transistors in a circuit, make sure to carefully check the data sheet for the transistor to correctly identify the base, collector, and emitter legs. To learn more about transistors, check out the following sites: https://www.youtube.com/watch?v=7ukDKVHnac4 http://www.explainthatstuff.com/howtransistorswork.html |
Note: The transistors used and described here are Bipolar Junction Transistors (BJT). There are other types of transistors as well. |
The circuit for the Witch Blinky-bot is sufficiently complicated that it is strongly recommended that you breadboard the circuit first. Troubleshooting a circuit on a breadboard is much easier than trying to troubleshoot a circuit that has already been soldered. Once you have the circuit working properly on the breadboard, you can then transfer it to the card stock.
There are many Internet sources that explain breadboarding. Here is one such source: https://www.youtube.com/watch?v=6WReFkfrUIk It is important to understand how to supply power to a breadboard and which the rails (or rows) on a breadboard are common (connected). Note that, by convention, the red rail is connected to power and the blue/black rail is connected to ground. |
Place the supplies into a small container to keep small parts from getting lost.
Following the schematic below, construct the astable multivibrator circuit on a breadboard.
Note that LEDs have polarity. The long leg of the LED is positive, so it is connected to the power side. The short leg is negative, so it is connected toward the ground side.
Note that the capacitors also have polarity. Like the LEDs, the long leg is positive, so it is connected to the power side. The short leg is negative, so it is connected toward the ground.
All NPN transistors are represented by a symbol similar to:
However, as shown below, the pinout (arrangement of the leads) depends on the transistor number. Two transistors types may be functionally identical, but the position of the base, emitter and collector legs is often different. So it important to be aware of which transistor you are using. Data sheets (readily available on the Internet) are a good source to verify the pinout.
Once you have completed the circuit on a breadboard and carefully checked it for errors:
Set the breadboard power supply to 3.3V.
With your circuit working and before you solder it into a finished product, now is a good time to experiment with it and to customize it to your own preferences.
Some questions that you might investigate are:
How is the blinking rate affected by the value of the capacitors? For example, try substituting a 47µF capacitor for the 100µF capacitor. What happens if you have capacitors with two different values in your circuit?
How does supply voltage affect the blinking rate? Try changing the voltage of the power supply from 3.3V to 5V.
How is the blink rate affected by changing the colour of the LEDs?
How is the blink rate affected by changing the resistance of the 39K resistor?
Here are some other activities to try:
Get one of our mentors to help you hook up an oscilloscope to your circuit and measure the current flow through different parts of your circuit, especially through the LEDs and capacitors.
Model the circuit in a circuit simulator, such as LTSpice or CircuitLab. How close does the blinking rate predicted by the model match your breadboard circuit. What factors might explain any differences?
Build the same circuit with PNP transistors (the Frankenstein Blinky-bot). How do the two circuits compare?
Build another version of this circuit with a 555 timer chip, such as described here:
http://www.learningaboutelectronics.com/Articles/LED-flasher-circuit.php.
Cut out the face, hat, hatband, tongue, and teeth.
Cut out the eye-holes and the mouth. (An X-acto knife and cutting board might help here.)
Fray the edges of the fabric piece by pulling out some of the strands along the edges.
Using white glue, glue the white piece of paper onto the back of the head, behind the eyes.
Using a red pen or fine-tipped marker, draw in circles (~12 mm) for the irises. Colour the irises yellow. (A circle template may be helpful for this step.)
Glue the teeth in from the backside of the face.
Glue the tongue in from the backside of the face.
Glue the black scrap piece of card stock behind the tongue to form the throat.
Glue the fabric piece to the hat.
There is a cut line across the hat. Note the small marked notches on the cutline. Cut along the line between the notches. Extend the cut ~1cm beyond the notches. Slide the face into the cut line. Glue in place.
Slide five pieces of yarn into the hat slit on either side of the face.
Cut two 2cm squares from scrap card stock. Hot glue the yarn in place on the backside of the hat. Press the two squares over the hot glue. Unravel the yarn, so that the plies are separated and crimped.
Prepare the wire pieces. Cut the wire to length and then, using a wirewrap tool, strip the wire cm on both ends. (Normally, a wirewrap tool comes with a stripper, which is designed to be used on AWG30 wire. Most other wire strippers cannot strip wire this small.)
As a general comment, when inserting components from the front of the face and wiring from the back, make sure the component leads are as far through the face as desired. Furthermore, make sure that the wire connection is close to the card stock surface before soldering in place.
Using a straight pin, punch two holes in each eye for the LEDs. Insert the LEDs.
Using a straight pin, punch two holes for a 100Ω resistor at the end of the witch’s nose. Insert the resistor. (Needle nose pliers can be helpful at this point. When bending the resistor wires, do not hold the resistor body with the needle nose pliers, as this can crush the resistor body. Instead, hold the wire leads with the pliers and bend the wire a short distance away from the resistor to avoid breaking the resistor.)
With the straight pin, make two more holes, so that the second 100Ω resistor lies across the first 100Ω resistor.
Working from the backside, wirewrap the two positive leads of the LEDs together (long legs) with a 5cm red wire. Solder ONE connection. Trim the soldered lead to ½ cm.
With a 5cm yellow wire, wirewrap the negative end of the LED for the right eye (long leg) to one end of the bottom 100Ω resistor. Solder in place. Trim both soldered leads to ½ cm.
With a second 5cm yellow wire, wirewrap the negative end of the LED for the left eye to one end of the top 100Ω resistor. Solder in place. Trim both soldered leads to ½ cm.
Working from the front, use the straight pin to make two holes for each of the two capacitors on the right side of the hatband. (If you look carefully, you should see two faint dots for each capacitor.)
Bend the capacitor leads at a right angle to the surface of the capacitor and insert the capacitors, so that they stand off the surface near the leads by ~½ cm. The other end of the capacitors should be touching the hat surface.
Working from the backside, wirewrap a 9cm yellow wire from the empty lead (unconnected leg) of the bottom resistor to the positive lead of the capacitor (long leg) sitting closest to the edge.
Use another 9cm yellow wire to wirewrap the empty lead of the top resistor to the positive lead of the capacitor sitting closest to the centre.
Solder and trim the two resistor leads, but not the capacitor leads.
Working from the backside, use a 6cm yellow wire to wirewrap the positive lead of the capacitor closest to the centre to the collector of the transistor nearest the edge. Check to make sure that the capacitors are positioned appropriately on the front side. Then solder and trim the positive leg of the capacitor to ½ cm.
Use another 6cm yellow wire to wirewrap the positive lead of the capacitor nearest the edge to the collector of the transistor closest to the centre. Check to make sure that the capacitors are positioned appropriately on the front side. Then solder and trim the positive lead of the capacitor to ½ cm.
Use a 4cm yellow wire to wirewrap the negative lead of the capacitor closest to the centre to the base of the transistor closest to the centre. Check to make sure that the capacitors are positioned appropriately on the front side. Then solder and trim the negative lead of the capacitor to ½ cm.
Use a 7cm yellow wire to wirewrap the negative lead of the capacitor to the base of the transistor (each closest to the edge). Check to make sure that the capacitors are positioned appropriately on the front side, then solder and trim the negative lead of the capacitor to ½ cm.
Wirewrap the emitters of the two transistors together with a 4cm black wire.
Working from the front, use a straight pin to make two holes for a 39KΩ resistor in the witch’s chin. Insert the resistor.
Punch two more holes, so that the second 39KΩ resistor lies across the first 39KΩ resistor. Insert the resistor.
Working on the backside, wirewrap a lead from one resistor to a lead on the other with a 3cm red wire. (Because the red wire is so short, you may have to trim the two resistor leads in order to make this connection.) Solder ONE connection and trim that lead to ½ cm.
Wirewrap a 9cm red wire from the unsoldered resistor lead (the one with a red wire) to the positive LED lead with a red wire. Solder the resistor lead and trim the resistor lead to ½ cm. Do not trim or solder the LED lead.
With a 12cm yellow wire, wirewrap the empty lead of the bottom resistor to the base of one of the transistors. Solder the resistor lead and trim the resistor lead to ½ cm.
With another 12cm yellow wire, wirewrap the empty lead of the top 39KΩ resistor to the base of the other transistor. Solder the resistor lead and trim the resistor lead to ½ cm.
![wiring with 39K resistors](pictures/Witch-wired-resistors.png “”)
Wirewrap the red wire from the battery holder to the unsoldered long lead of the LEDs (already connected to a red wire, but not soldered). Solder in place.
Wirewrap the unconnected black wire from the end of the switch to the unsoldered emitter of the transistors (already connected to a black wire, but not soldered). Solder in place.
Install a battery, close the switch, and test to make sure that the circuit works.
Once the circuit is verified to be working, hot glue the battery holder onto the long end of the top of the switch.
Hot glue the switch onto the backside of the face.
Hot glue the bar pin in place on the backside of the hat, near the top.
Trim any protruding leads. At this point, the leads can be trimmed shorter than ¾cm.
Check to see that the capacitor leads are secure. If they are sliding through the card stock, then pull them back out and secure them with hot glue on the backside.