Hi guys, I start writing my first instructables for Arduino contest! I will present my new robot: a flame thrower! This is a robot that is not very difficult to construct and does not require much expertise in electronics. I'll try to be as clear as possible in my explanations. It is also not very expensive to build, I think we can have all the equipment for $ 15.
The robot is not over and the code that goes with it but it is already functional. I intend to publish one or two update but I invite you to continue on your own.
I am a young student (19 years) in Engineering in Belgium. I do not speak English very well but I hope you will understand my explanation. Thank you for reading and I am ready to answer your questions. I am also open to criticism.
CAUTION : don't use indoors, don't use around animals or small children, be aware of your surroundings, keep a fire extinguisher on hand.
Step 1: Components and Tools
The list of all you need :
Electronic components :
- Arduino Nano
- L293D Motor Driver
- Bluetooth Transceiver Module HC-06
- Prototype Paper PCB
- 2 x Smart Car DC Motor 3-6V
- 2 x Blue LED 5mm
- TIP120 (work with TIP31)
- Servo TowerPro SG5010
- MicroServo TowerPro SG90
- HC-SR04 UltraSonic Ranging Sensor
- 2 x 9V Batteries
- 4 x 1.5V Batteries + Support
- 9V battery snap on clip connector
- 3 x Slide switch
- 2 x 1k resistance
- 1 x 2.2k resistance
From the shop :
- Brass pipe ( x mm diam)
- Steel sheet ( x mm thick)
- Screws, bolts and washers M3
- Threaded rod M3
- Epoxy Resin
- Large electric tape
- Electric gaz lighter
- Trolley wheel
From your bathroom :
- Deodorant pocket size
- Cylindrical box medicine
- Soldering iron with tin
- Metal shear
- Drilling machine + metal drill bit
- Sand down paper
- Metal saw
Step 2: The Circuit
I designed the circuit with Fritzing twice. The first one (in red NOT USE) was the theoretical circuit, in reality, it can't work because the servo-motors were consuming too much current so the Arduino rebooted. The second circuit (in green USE) was designed on the ground by successive modifications. It works now fine but I do not guarantee that it is technically correct !
We have one servo to trigger the deodorant and the other to rotate the ultrasonic sensor. The bluetooth transceiver is not connected as conventionally (on Arduino TX and RX) because it prevents debug the code easily. You can change that if you want.
Notice that in the first circuit, the servo trigger was pushing a switch, this last closed the gas lighter circuit : coordination wasn't obvious... I put a TIP31C (I hadn't some TIP120) through a 1k resistance and it work fine, the Arduino now can control the electric arc directly.
It's time to try it on a breadboard to check that all works fine.
Step 3: Solder All on the PCB
I decided to divide the whole circuit in 2 board : one for the L293D and the other for the Arduino.
- Build the L293D board to drive motors :
You can see on the first schemehow I dispose components on the PCB. It's just a suggestion, you aren't forced to do that. I also use screw terminal connectors to plug easily the twos motors. The scheme show a 3-wires plug but it's only 2. You can see on the second picture my circuit : it's very easy to do.
- Build the Arduino board :
You can see on the third picture the scheme that I designed. The right and left board are the same, it's just a differente face. Notice that we need 2 wires on the bottom face to plug GND to the rotate sensor servo and to connect the servo 5V alimentation. On the top face, we have a lot of output wire :
- 4 on the left to connect the ultrasonic sensor.
- 1 on the top-left is the signal for the TIP120.
- 4 on the top-center to connect to the L293D board and driving motors.
- 1 on the top-left is the GND of the circuit and it's used everywhere.
I used 2x3 pins connectors for the two servo-motors and a screw therminal for the Vin.
You can all solder together. Don't forget to wire together all the GND, a 9V in to the L293D board, 5V in to the servo.
Check the last pic, it's very easy to connect the gas lighter circuit to the TIP120.
Notice that on my circuit (pics 3, 4), missing some part of the circuit (5V, 2x9V, TIP120 + Lighter circuit and servos)
Step 4: Build the Chassis
The chassis is not complicated to do but it takes so time to build.
- Cut in the steel sheet 2 pieces of 15x11cm. Use the metal shear to do that step.
- Cut in the brass pipe 4 pieces of 8.5cm length. We use them to make a rigid structure and easily removable. Also cut 2 pieces of 2cm length.
Notice that 8.5 cm is the height of the deodorant behind the valve. You can undertsand why seeing the picture on the intro.
- Cut in the threaded rod 4 pieces of 12 cm length.
A little bit more than the brass pipe so we can put some bolts.
- Take you drill and makes all the holes in the steel sheet ! Use your parts (deodorant, PCB, trolley wheel) to mark the holes. These measures are only a example. You can make the deodorant's hole with the metal shear.
- Cut in the steel sheet 3 pieces of 1,5x3cm. Make holes like on the picture and fold the piece in 2 same part. Those pieces make a solid support for the lights and for the tip31.
- Rivets the trolley wheel. The differents parts look like the 6 pics.
- Sand down the surface of the motors to give them more grip. Glue them with some epoxy directly to the sheet. It's a difficult step. Pay attention to alignment. You can rivet all suport maked at step 5.
All pieces fit together now. I advice to put some cardboard between the PCB and the metal sheet. Personnaly I cut a PCB size carboard and wrap with some tape. No short-circuit like this. I do the same thing for the gas ligter circuit. The two little piece of brass pipe is used to make a two-floor pcb support, see pic 8.
Step 5: Build the Conduit/non-return Flame
- Cut the medicine box half height and glue it with epoxy on the board. The bonding must be waterproof. Drill a hole for a little piece of brass pipe. It will be the fire gun.
- Rivet the TIP 120 board and glue the gas lighter circuit. Take care about short circuit, put a lot of tape strip to avoid danger. The two electric wires may be cling near the exit of the gun.
- We will achieve a metal structure for the servo. It should hold up really well. First make a kind of cardboard pattern to try directly with the servo and deodorant.
- Cut out then in the metal sheet, fold it right and then rivet it on the board. The servo will be rivet on this structure.
- Cut the top of the deodorant cap and a hole to let the gas output open. Hot glue a plastic pipe to the medicine box plug. This pipe should be as short as possible !
You can plug all together. Fill the medicine box with a little water. The idea is that gas exchange takes place through the water. It will therefore be impossible for the flame across the water and up to explode the carboy (see the * pics).
Step 6: Upload the Code + Install the App
- Download the file Robot.ino and upload it to you Arduino Nano. See the instruction on official Arduino web site if you do not know how.
- Take you Android phone and go to the Play Store. Search "Arduino BT Joystick" and install the app. Launch it and turn on the robot. Use the button "connect" connect the phone with the Arduino. You will find "HC-06" in the bluetooth device list.
- Button :
- Up, Down, Left, Right to manage the movement.
- Triangle to switch on/off the lights.
- Square to launch the flame thower.
- X to blink the lights.
I recall that the code is not finished at all and many improvements are possible.