• Hardware
  • [Robo Build] Salahinator the Incinerator

So last week a dear friend of mine (incinerator who happens to be a member of this fine LebGeeks community), asked me to check out a link to a simple beetle robot built. It was certainly easy enough to start with if someone's a beginner robo builder and still hasn't acquired much knowledge about electronics.

I promised him to try the built myself, but had to inject a couple of tweaks of my own. Finally, I had the time to do it today and here are the results:






Since I have 15 more PM reports to finish for work, I won't be able to post how to build it just yet (promise to do it over the weekend). What I will post is the required tools and components to those who want to do the built before the weekend. The list is derived from Katranji's website, as well as the price quotation. Note that the robot's lighting system (the perforated board with all the components and battery on it) is not included in the components list because I want to discuss it on its own (but in this thread of course).

Tools Needed:

1. soldering iron: "Goot 220V 30W Ch" (thin tip) + "Solder Stand" (whatever you do, DON'T buy the
SLD1141 because it sucks big time): about 8$ and 4$ respectively
2. wire stripper: "Wire Striper Ch": around 5$
3. electronic solder (i.e. "kasdeer"): "SW 100G 60 0.8 mm": around 7$
4. diagonal cutter (i.e. "katta3a"): "Cutter China": around 3$
5. Mini glue gun: just use Eltico if you don't already own a glue gun.

Components for the robot:

1. 2x – small 3 Volts motors: "Motor 3V DC" (PPN13PB125C): 1.8$ (0.9$ per motor)
2. 1x – small paperclips
3. 1x – big paperclip
4. 4x – batteries AA (any store for 1000 L.L)
5. 1x – battery holder AA: "HB-004" (4*AA battery holder + cover): 0.6$
6. 1x – 2 cm of heat shrink: "Heat Shrink 1.5": 0.3$
7. 1x – wooden pearl (for the caster): any circular bead with a hole (just to let the beetle roll forward)
8. 1x – meter of electric wire: you can get it from any electronics shop (a roll for 1000 L.L)
9. 2x – Sub-mini lever SPDT (single pole double throw) switches: "HS-502" (micro switch medium): 0.6$
(0.3$ per switch)

What the Robot Does

The original design is meant for the beetle robot to move forward while avoiding obstacles (the motors shift accordingly when one or both of the antennas, which are connected to the SPDTs, are triggered). The additional circuitry on top is my design of a light system which is triggered when the beetle moves to a dark space: it is equipped with a photocell which causes the LEDs to light up once it doesn't detect light around it). Also, I added a home-made switch on the bottom of the robot so that I don't waste the batteries when I want the robot to be turned off.

Home-made switch (pink paper with two pins and a paperclip):



Note: If you build the beetle robot and it is turning in circles, then one of the motors shafts is not turning (either it's stuck so move the robot a bit or turn the shaft manually to trigger it to move on its own). Let the robot go for a few runs (turn the switches on, wait for like 5 minutes, and then switch them off).

Why Salihinator the Incinerator

My beetle robot is named after two of my friends: a) incinerator who encouraged me to built the robot in the first place b) Salah El-Mallah, an old friend from school and university who made me promise him one day I'll name a robot after him.

I'll try to post a video on how it operates as well.
Hardware geeks do a lot of cool stuff. I'm jealous!

Good job mesa!
So cool. Can't wait to see a video of it in action. :)
Home-made switch (pink paper with two pins and a paperclip)
That made me LOL. Love it!
Nice :) this was one of the first things i did when i introduced myself to electronics ! i wonder if the lebgeekers here can try and make their own ! it should not be tough ! what do you think mesa ? we do a tutorial and see what they can come up with ?!
J4D wrotewe do a tutorial and see what they can come up with ?!
That's exactly what I'll be doing this weekend, the whole 9 yards: schematics, description, help tips...

The video link's being uploaded as we speak :)
That is nice mesa, good job.

I built a beetlebot 2 years ago.
so you just buy some hardware..... combine them together.. and you say you built a robot!!?:P
lool just kiddin! i wish i can do something like that :P....
but as a software geek.... i would like to see how can you control the "robot" through a pc software...
i am currently doing an iphone remote car controller.... basically i am using btstack and Btnode to control a remote car through an app i created on iphone... i'll post more info sooooon :)
I bet you're pulling it using a wire and MrClass is doing the sound effects!

(Just kidding, nicely done)
xterm wroteI bet you're pulling it using a wire and MrClass is doing the sound effects!
LMAO! I love your sense of humor man! :)
scatman wrotei am currently doing an iphone remote car controller.... basically i am using btstack and Btnode to control a remote car through an app i created on iphone... i'll post more info sooooon :)
I am sure mesa would be VERY interested to learn how that can be done. She asked about some iPhone development tutorials that do stuff that are much similar to that.
Wiiiizzzzzzzzzzzzzzzz....Greetings Human :P
Great work, mesa! Thanks for sharing it with us :)
I will do this when i finish from 'te2dim' -.-
a tutorial would be great with all the requirements and software thanks :)
Kassem wrote
xterm wroteI bet you're pulling it using a wire and MrClass is doing the sound effects!
LMAO! I love your sense of humor man! :)
Hahahaha, same here :) But on a more serious note, I hope xterm actually builds the beetle and see how baby Raul reacts to it...
Kassem wrote
scatman wrotei am currently doing an iphone remote car controller.... basically i am using btstack and Btnode to control a remote car through an app i created on iphone... i'll post more info sooooon :)
I am sure mesa would be VERY interested to learn how that can be done. She asked about some iPhone development tutorials that do stuff that are much similar to that.
You soooooo get me :D scatman, post a thread when you're done, I wanted to tackle iOS apps that control the hardware in an iPhone, iPad and iPod for a while now.
Thanks Mesa:)
Excellent motivation to build the beetle robot.
I just hope mine can be just half as good as yours:)
Part 1: Understanding the Built of the Beetle Robot

Understanding Basic Concepts

Since I’m already writing the instructions on the built, I’ll write it so that even 8 year olds can do it (good science fair project for the kids in your families). Parental supervision is required for kids under 12 when it comes to soldering.

These are some of the basic concepts that should be understood for the robot built:

Electronic Terms: Voltage and Current

One of the best ways to understand these terms is by using the analogy of water circuits: voltage resembles the water pressure and current resembles the flow rate.

Think of a water tap and a pipe: when you open the tap (like connecting wires to terminals of a battery), the water is being pressured out of the tap => voltage, the electric pressure. The water flows from one side of the pipe to the other because there’s more water pressure on the first side than the second => current, the electric flow.

Batteries and Wires  Voltage and Current

Let’s think about a battery as a water pump with a nozzle connected to a set of pipes: the more water being pumped out of the nozzle, the more water flows in the pipes. Same thing for a battery connected a set of wires, the higher the voltage rating of the battery, the more current will flow in the wires. That’s also why the battery is known as the voltage or power supply.

If you have a pipe with water being pumped on both sides, how does the water flow in the pipe? The water flows from the side where the pressure is higher. Same thing with voltage and current in a wire: the current flows in the wire from the terminal with more voltage to the side with lesser voltage. And just like the total pressure that the pipe is being subjected to is the difference between the higher and lower pressure, the voltage reading across a wire is the difference of the higher and lower voltage readings: this is known as potential difference.

What if a battery is not connected to a wire? This is like having a water pump with a tap turned off: even if the tap is connected to a pipe, there will be no water flowing until the tap is opened. Connecting a wire to a battery is like opening the tap on the water pump. Current will flow out of the battery only when a wire (or conducting material) touches the terminals and the circuit is closed (more on this in a while). That’s why they tell you not to touch the terminals of a high-voltage battery: you will become the wire in that example which connects the battery to the ground, generating the most lethal closed-circuit known to mankind.

Opened Circuit, Closed Circuit

Currents only flow when the circuit is complete or closed i.e. when the current is able to move from the first terminal of the power supply, throughout all the circuit, and then back again to its second terminal. Any place where there’s a disconnection like a loose wire or an opened switch, the current stops flowing into the circuit. The latter case is known as an opened circuit.

Voltage Polarity and Direction of Current Flow

By convention, the current is said to flow from the positive voltage terminal to the negative voltage terminal i.e. from the terminal with higher voltage reading to the lower.

Soldering Techniques

The best way to teach someone how to solder is to show them how. The best illustration for this matter comes curtsey of “Madlab – Construction Step By Step” manual:

How to Solder?

Always make sure that whatever component you’re about to solder (whether a component on a perforated board or PCB, or a wire on a motor terminal), the leg of that component (or wire) should be as stable as possible so that the solder sticks in its place and not somewhere else (especially your hand).

A good way to make sure that the component is stable on a board is to bend the legs a bit outward like this:



For components off a board, twist the terminals to be soldered together and place the soldering iron just below them like this:



The correct way to solder is to heat the surface to be soldered via the soldering iron and place the piece of solder upon the heated surface and allow it to melt:



Correct Forms of Soldering

To ensure that the solder has reached the component’s leg and is holding it in place, wiggle the component a bit. You can directly sense if the solder hasn’t caught on. These are the forms of solder “humps”:



Notes:
1. Make sure that the soldering iron is sitting well on the handle of the housing (if you feel the housing is tipping over, place a counter-weight on it like a paper-weight).
2. Always be careful around the soldering iron when it is hot (always in front and to your right or left, according to the hand you’re using to solder with). Always keep it in your range of view.
3. If you burn your hand with the soldering iron, directly cool it off with running water for 10 minutes. Then use a gel for burns like MEBO (highly recommended) to ease the pain, and then cover the burn with gauze. If the burn is turns dark red or black, immediately go to a hospital.


Understanding the Components List and The Robot’s Operation

I’ve already mentioned the components list, but let’s “see” them and understand what they do.

1) 3V Motors: Obviously they are used for moving the robot, but there is one thing you need to know about motors: the polarity of the voltage supplied to them changes the direction of rotation on the motor shaft. Looking at the picture of the motors below:



You can see that I’ve soldered a red wire to indicate the positive terminal and a black wire to indicate the negative terminal. This lets me know that when I supply a positive voltage across the motor (higher voltage reading to red wire), the motor’s shaft turns clockwise. Otherwise, it would turn anti-clockwise. While the original design doesn’t indicate how the motor’s terminals should be connected, I’ve selected the wiring such that the rotation of both motor shafts enhances the movement of the beetle robot (smoother rotation and faster response when obstacles are detected).

2) Small paperclip and Wooden Pearl: It was used to form the tail of the beetle along with the wooden pearl or bead. As mentioned before, the tail allows the beetle to move forward. Without the tail, the beetle will move forward, but the whole weight load will be carried by the motor shafts. The tail lifts the beetle’s body a bit and takes some of the load off the shafts.



3) Big Paperclip: The big paperclip is cut in half (after being unfold), and then glued to the levers of the sub-mini lever SPDTs. They are the “feelers” on the robot: they sense the obstacles on the way. While the original feelers in the circuit are the levers on the SPDTs, the paperclip is considered an extension, sort of like antennas, and they give a longer range of sensing for the robot.

4) Batteries and Batteries Holder: All-in-one voltage source, main circuit switch, and beetle body.

5) Heat Shrink and Wires: The heat shrink shown below:



is normally used to cover the soldered wires for two purposes: a) aesthetic purposes and b) avoiding “shorting” of wires i.e. transfer of electrons from one set of exposed wires to another like so:



To use them as such, cut part of the heat shrink and fit it into the wire (but not close to the place where you’re about to solder) before soldering. After soldering, push the heat shrink over the soldered surface to cover it and expose the heat shrink to heat (I prefer using the tip of the soldering iron, just place it close to the heat shrink but don’t allow it to touch it) like so:



For this project, the heat shrinks are also used to cover the shafts of the motor and give the robot a smoother run over surfaces (without them, the robot can be moving in circles cause the motor shafts would be in direct contact with the ground and the frictional forces too much for the shafts to bear):



6) Sub-mini Levers SPDT (Single Pole Double Throw) Switches: These switches are the core of the robot steering process. Single Pole Double Throw: means that there is one pole that can swivel between two terminals (NO and NC) according to whether the lever is clicked or not. Taking a closer look at one of them:



You can see, hopefully, that there are three labels on the SPDT: COM, for common, NO, normally opened, and NC, normally closed. This is the internal diagram of the switch for when the lever is not clicked (using C for common instead of COM):



COM is the common terminal of NO and NC, current always passes through this terminal. NO is the terminal where no current runs through it (hence the term normally opened: C and NO are normally not connected) until the lever is clicked down. NC is the exact opposite of NO, where C and NC are always connected until the lever is clicked down. The internal diagram of the SPDT changes to the following when the lever is clicked:



The role of the switches in steering the robot is better understood by viewing the following diagram for the robot built (I’m not much of a drawer, so bear with me):



There are four possible scenarios concerning the switches:

1. When both levers of switches SW1 and SW2 are not clicked (normal run of the robot), the robot diagram comes down to the following circuit sketch:



The +9V is supplied by the terminals of the batteries holder: following the robot diagram, the current will start at the “+ve” terminal of the battery holder i.e. beetle body, into the NC terminal of SW1, out of the C terminal of SW1, into the blue wire, into motor M1, and finally the red wire labeled “+3V” (similar run for M2 but instead passing through SW2 and the green wire). The +3V is supplied by a wire that is soldered on the inner terminal of the batteries holder (where 2 of the 4 AA batteries are in series):



Moving back to the sketch, the potential difference across both motors is +6V, but note that while this potential across M2 is from the positive to negative terminals, the same potential difference is applied from the negative to positive terminals of M1. Hence, M1’s shaft rotates in the anti-clockwise direction while that of M2 rotates in the clockwise direction. This difference in direction of rotation prevents the robot from rotating to a certain direction; instead, it moves forward.

2. When only the lever of switch SW1 is clicked (left antenna of robot touches an obstacle), the robot diagram comes down to the following circuit sketch:



M1’s case here is the same as in scenario 1. However, for M2, the current will start at the red wire labeled “+3V”, into motor M2, into the green wire, into the C terminal of SW2, out of the NO terminal of SW2, and finally into the “-ve” terminal of the battery holder.

Even though both motor shafts will rotate in the clockwise direction, M2’s shaft would be rotating at a higher angular speed (due to the higher potential difference). This allows the robot to steer round the right and avoid the obstacle found on the left.

3. When only the lever of switch SW2 is clicked (left antenna of robot touches an obstacle), the robot diagram comes down to the following circuit sketch:



The cases of M1 and M2 are switched in comparison to scenario 2. Even though both motor shafts will rotate in the anti-clockwise direction, M1’s shaft would be rotating at a higher angular speed (due to the higher potential difference). This allows the robot to steer round the left and avoid the obstacle found on the right.

4. When both levers of switches SW1 and SW2 are clicked (both antennas of the robot touch an obstacle), the robot diagram comes down to the following circuit sketch:



This is where the robot design shows its weakness: though the robot should be backing away from the obstacle, it will actually charge forward but at a higher speed (due to the higher potential difference across both motors, the shafts will rotate at a higher angular speed).

Part 2 will be coming in a format of a link to a pdf file describing the steps of the robot assembly. Part 3 will explain the operation of the dark-detector circuit on top of the beetle, and Part 4 will be a link to a pdf detailing the circuit construction. Hopefully Part 2 comes out tonight.
Awesome:)
just one question, in a video I watched, the dude said to only use rosin core solder which can be bought from Radioshack and there are ones which are Lead free, will it matter which solder to use and whether it's lead free or not?
mesa177 wroteimmediately go to a hospital
will do that!
If the burn is turns dark red or black, immediately go to a hospital.
What are you using ? A 1000 watt soldering iron ? :P

Great tutorial forming up :) You just wrote in one post what i'd post on lebgeeks in a full year :P
J4D wrote
If the burn is turns dark red or black, immediately go to a hospital.
What are you using ? A 1000 watt soldering iron ? :P

Great tutorial forming up :) You just wrote in one post what i'd post on lebgeeks in a full year :P
Dark red/ black spots are third degree burns, and yes you can get them via a 30W soldering iron if the tip hits the skin just right.

We're still waiting for your completion of the Vario Vill people. Why not post the circuit for Vario, and modify him to generate the whole family? Try to integrate dry cells into the design (like a beer gut for Vario Dad or the stomach on a pregnant Vario Mom) while subtly using them as the power source. Make a car for Vario family, or an airplane. I'm currently working on the design of a toy train that doesn't need regular tracks to run but a simple track made of white electric tape, emits steam (a la spray-steam iron style), generates the sound of a horn on a diesel train, and can fit some solider figurines (maybe I'll try building the Vario family and stick them in it).
incinerator wroteAwesome:)
just one question, in a video I watched, the dude said to only use rosin core solder which can be bought from Radioshack and there are ones which are Lead free, will it matter which solder to use and whether it's lead free or not?
Na, solder is solder, but the rosin core solder seems to be better to use since it melts nicely and sticks quickly onto joints. Also, the thinner the better since you won't run into the trouble of applying too much solder to a joint, and the surface of the solder remains silvery after being applied.