With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Serial Monitor is a terminal you can access from the Arduino programming environment. Look for the right top corner after opening the Arduino IDE. In Steps 3 and 4, you will need to first connect your Arduino to your computer using a USB-TTL converter. Now upload the sketch and open the Serial Monitor to see the angle of inclination.
Yup. You will need a USB-TTL converter for programming the arduino pro mini.
The principle might be the same but you might need some major modifications in the structure.
It is a library used to interface the ultrasonic distance sensor with the arduino.
Gather Your (Internet Of) Things
Internet of Things Class
Continuous rotation servos should also work well. Since the rpm of these servos are generally low, small wheels like the one used here might have to be replaced with large diameter ones.
I hope you are getting +ve angles when tilting the robot forward and -ve when tilting backward. Now you need to check whether the connections to the motor are done correctly. You can use the setMotors() in your loop and comment out all the other lines of code in your loop. The function works this way: setMotors(leftMotorSpeed, rightMotorSpeed). +ve value of motorSpeed gives forward rotation and -ve gives reverse rotation. Check both motors for speed and direction by giving different values for leftMotorSpeed and rightMotorSpeed ranging from -255 to +255.
I haven't made a schematic yet. But I hope I have made the circuit clear using the perfboard layouts and the block diagram given in Step 2. Do let me know if there is any doubt.
Thank you. Once you've finished yours please share it here. All the best.
I hope you have placed the MPU6050 exactly as shown in the picture. You can also upload the codes in steps 3 & 4 and check whether the angle of inclination is correct (+ve while tilting forward and -ve while tiliting backward)
Thank you. I'm happy to know that you liked my previous instructable as well.
Arduino Self-Balancing RobotView Instructable »
You will need a programmer. I've used USBasp.Did you try extracting the rar file? You will find main.c in it. Let me know if there's some issue.
Pocket-Size Power Supply
Remove The Lyrics From MOST Songs
How to Embed Photos in an Instructable
How to make a great Instructable
How to Make a Portable Game System
Seed Spreading Robot
Internet Enabled Solar Tracker
Building Small Robots: Making One Cubic Inch Micro-Sumo Robots and Smaller
Your First Robot Volume 2
Your First Robot
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.