SpeechVoice Controlled Arduino Drone
SpeechVoice Controlled Arduino Drone
SpeechVoice Controlled Arduino Drone
Table of Contents
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Step 4: Soldering... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Step 7: Motors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Author:Imetomi Thomas
My name is Thomas (Tamas) and I am 16 years old Hungarian guy. I love the electronics, and I just like to invent something new, that never was before. I
want to show another point of view and new ideas with my instructables. Hope you like it!
I made a "motor shield" or something like that using a few transistors that increase the current of the digital output pins. I used 2N2222, but would be better to use a SMD
power transistort. The drone works well with both. The propellers and the motors are bought from eBay.
Some features:
• speech controlled
• Arduino Pro Mini based
• voice recognition with a smatphone
• moves left, right, backward, forward, upand down
• hasn't build in gyroscope, you should make a code that holds the drone in balance, this can be made after a few experiments
• low weight, 22 grams, you can add 5 extra gramms
I made a tricopter because I have only 3 motors with propeller, but of course you can make a quad or hexcopter.
You'll need some experience in soldering, but isn't so hard. Only the motor shield requires some skill.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 1: The Sofware
Before gathering materials write upload this code to your Arduino Mini Pro. If your drone is made perfectly this code will work. If isn't you should modify the code at the
end. To programm the Arduino Mini I used an Arduino Uno that was set on 3.3 volts.
2. RX --> TX
3. TX --> RX
4. VCC --> 3.3v
5. GND --> GND
6. RST --> RST
Now upload the code and you'll have a programmed board. I wrote some explanations in the sketch, but if you have questions feel free to ask. The Arduino analyzes the
word through serial reading and reacts to them.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 2: How the code works?
The code is relatively simple. Analyzes the voice variable and reacts to them by controlling the motors. After turning left or right the Arduino quickly changes its value to
the original, so your drone doesn't need a gyroscope, because automatically turns back in his oroginal position thanked to the sofware. This makes your flight safe and
fun. :)
//copy this code in the IDE
String voice;
int motor1 = 3; //Connect motor 1 To Pin #3 left motor int motor2 = 9; //Connect motor 2 To Pin #9 rear motor int motor3 = 11; //Connect motor 3 To Pin #11, right motor
//--------------------------Call A Function-------------------------------//
//the values after each anlogWrite commands are controlling the motor's speed, the max value is 255
//if your drone isn't in balance try to modify the values, example change 130 to 135 if your drone goes backward
void middlespeed() { analogWrite(motor1, 130); analogWrite(motor2, 130); analogWrite(motor3, 130); } void fastspeed() { analogWrite(motor1, 255);
analogWrite(motor2, 255); analogWrite(motor3, 255); }
//----------Directions----------// //The drone can be controlled the best in middlespeed state else if (voice == "*go left") { analogWrite(motor1, 100); delay(450);
analogWrite(motor1, 130); } else if (voice == "*go right") { analogWrite(motor3, 100); delay(450); analogWrite(motor3,130); } else if (voice == "*go
backward") { analogWrite(motor2, 130); delay(300); analogWrite(motor2, 130); } else if (voice == "*go forward") { analogWrite(motor2, 200);
delay(350); analogWrite(motor2, 130); } else if (voice == "*right back") { analogWrite(motor1, 200); delay(350); analogWrite(motor1, 130); } else
if (voice == "*left back") { analogWrite(motor3, 200); delay(350); analogWrite(motor3, 130); }
File Downloads
Voice_Controlled_Drone.ino (3 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Voice_Controlled_Drone.ino']
Step 3: Parts and Tools
Tools:
For this project you'll need a soldering iron, a glue gun, a variable power supply unit and a PC with Arduino IDE.
Parts:
Secondary parts:
• 2N2222 transistors (local hobby-shop, $0.1)
• 3 Propeller Blades (you can buy together with the motors)
• A Battery (mine is from an MP3 Player)
• Straws and a small lightweight plastic piece (from any store)
• Rubberbands (from a store)
• 100Ohm resistor (local hobby-shop, $0.05)
You can buy all main parts on the eBay. Click on it to open the link.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 4: Soldering...
Arduino Mini Pro to HC-05
RX --> TX
TX --> RX
VCC --> 3.3v
GND --> GND
Solder the two circuits together using short wires. It's very easy.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 5: How to build the tricopter's frame?
Insert the motors in the bigger straws and glue a frame with the other straws, just like on the pictures. I bought very strong straws from a local supermarket and they hold
the motors very strong, so they won't fall down. Behind the design are a lot of physics calculations. I can't explain these now formulas and rules but if you're interested
read this article. Using those formulas given in link, you can design an own frame and drone.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 6: The Rear Motor
You need to make a small difference between the vertical axis and the rear motor's axis otherwise the drone will spin. 10 degrees are enough for this.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 7: Motors
You can see some metal sticks on the first picture, I plugged them into the endings of the motors. This is important, because you'll have a joining piont for soldering.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 8: Check the polarity!
On the pictures you can see how my motors should spin. I used my PSU unit and tried out every motors on 2.1 volts.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 10: Soldering the Transistors
The appearence of this circuit is bad, but it's small and has a low weight. I soldered one more connector for the battery.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 11: Adding the Motors
And now it's time to use your soldering skills to solder the motors to the positive voltage source and to theirs transistor's collector. Sorry I haven't more pictures for this
step, but I hope it's clear what should you do.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 12: The done circuit
The harder part is done. We are close to finish the project. Take your Arduino board and slowly connect to the motor shield. Be careful, do not damage or shortcircuit the
circuits. Connect the battery to the device, and if the circuit's power LED lights you did a good job. :)
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 13: Stabilize the circuit!
Use two rubberbands and fix the circuit on the frame.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Step 15: First Flight
As you can see at the first time I din't flew very good, but later after an hour of practice I became a good pilot. Sorry for the bad pictures, but the drone moved in the air. I
crashed a few times, but nothing happened with my new gadget.
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Image Notes
1. The first crash...
Image Notes
1. This is the best picture while flying. The motors stop spinnig, and right at this
moment I made a photo incidentally. :)
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/
Related Instructables
myRobot - DIY
Color Following Autonomous Robot (video) by
AR Parrot Drone Arduino Speech drone that you aneophyte Arduino Talking Arduino Voice
Control and already have in Robot Based recognition Via
by djsures Detect Artificial Bluetooth HC-05
Obstacles your pocket! by
Intelligence by by gagan8619
Robot by prubeš
sezgingul
sezgingul
Advertisements
Comments
1 comments Add Comment
http://www.instructables.com/id/SpeechVoice-Controlled-Arduino-Drone/