diy-blinky-bot

WITCH BLINKY-BOT INSTRUCTABLE


Level Two Build

Finished Witch

WESTERN CANADIAN ROBOTICS SOCIETY

Introduction

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.

Get the Supplies

Supplies to build the Witch

[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

Assemble the Tools

needed kit assembly tools

The Circuit

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.)

astable multivibrator schematic

From: http://led-circuits.blogspot.ca/2011/02/2-transistor-led-flasher.html

How to Read a Circuit Schematic
 
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
Resistors
several different resistors
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
schematic resistor symbol
Capacitors
several different capacitors
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
schematic capacitor symbol
Diodes
several different diodes
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
schematic diode symbol
Transistors
several different transistors
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
schematic transistor symbol
Note: The transistors used and described here are Bipolar Junction Transistors (BJT).  There are other types of transistors as well.

Breadboard the Circuit

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.

How to Use a Breadboard
typical breadboard
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.

NPN astable multivibrator schematic

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:

NPN transistor schematic symbol

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.

alternate NPN transistor pinouts

Once you have completed the circuit on a breadboard and carefully checked it for errors:

Getting the Most Out of This Project

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:

Here are some other activities to try:

Assembling the Witch Blinky-Bot

cut out Witch kit head pieces

assembled witch´s head

wire pieces for witch

Witch head with LEDs and 2 resistors inserted

LEDs and resistors wired and soldered

capacitors mounted on hatband

capacitors wired to resistors

transistors inserted through hatband

transistor collectors wired to positive of capacitors

transistor bases wired to negative of capacitors

39K resistors inserted in chin

![wiring with 39K resistors](pictures/Witch-wired-resistors.png “”)

paper clip switch

switch with leads attached

switch and battery holder

switch wired to transistor and LED

finished back side with switch installed

Finished Witch

VOILA!  You’re done!



business card with contact information