loading

I got a mDrawBot from Makeblock a few days ago. This awesome robot kit is a kickstarter project now. Today I transform it into a self-balancing vehicle with a MPU6050 module. Check it out.

Step 1: The Frame

Just three pieces, pretty simple.

Step 2: The Motors

Then fix the stepper motor to the "L" piece.

Step 3: The Main Frame

Step 4: Wheels

Step 5: Wiring

Step 6: The Battery

Step 7: MPU6050

Step 8: Coding

Download the code here.

Step 9: Show Time

There seem to be something wrong with the Kalman Filter. I will check it later.

<p>Hi</p><p>Thanks for your code, but I'v a probleme for compile on arduino</p><p>Arduino: 1.8.1 (Windows 7), Board: &quot;Arduino/Genuino Uno&quot;</p><p>C:\Users\max\Downloads\F9IH0QDI7RGBMI7\banlance_robot_stepper\banlance_robot_stepper.ino:11:0: warning: &quot;PI&quot; redefined</p><p> #define PI 3.1415926</p><p> ^</p><p>In file included from C:\Users\max\Downloads\F9IH0QDI7RGBMI7\banlance_robot_stepper\banlance_robot_stepper.ino:2:0:</p><p>C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:47:0: note: this is the location of the previous definition</p><p> #define PI 3.1415926535897932384626433832795</p><p> ^</p><p>C:\Users\max\Downloads\F9IH0QDI7RGBMI7\banlance_robot_stepper\banlance_robot_stepper.ino: In function 'void initMpu()':</p><p>banlance_robot_stepper:260: error: void value not ignored as it ought to be</p><p> int8_t ret = accelgyro.getMotion6(&amp;acc[0], &amp;acc[1], &amp;acc[2], &amp;gry[0], &amp;gry[1], &amp;gry[2]);</p><p> ^</p><p>C:\Users\max\Downloads\F9IH0QDI7RGBMI7\banlance_robot_stepper\banlance_robot_stepper.ino: In function 'void calcAngle()':</p><p>banlance_robot_stepper:288: error: void value not ignored as it ought to be</p><p> int8_t ret = accelgyro.getMotion6(&amp;acc[0], &amp;acc[1], &amp;acc[2], &amp;gry[0], &amp;gry[1], &amp;gry[2]);</p><p> ^</p><p>banlance_robot_stepper:292: error: 'Fastwire' has not been declared</p><p> Fastwire::setup(150, true);</p><p> ^</p><p>C:\Users\max\Downloads\F9IH0QDI7RGBMI7\banlance_robot_stepper\banlance_robot_stepper.ino: In function 'void setup()':</p><p>banlance_robot_stepper:470: error: 'Fastwire' has not been declared</p><p> Fastwire::setup(150, true);</p><p> ^</p><p>exit status 1</p><p>void value not ignored as it ought to be</p><p>This report would have more information with</p><p>&quot;Show verbose output during compilation&quot;</p><p>option enabled in File -&gt; Preferences.</p><p>2 year but if it's possible to help me?</p><p>thanks</p>
<p>Can I make it by arduino?</p>
<p>Yes, I think so. But the wiring may be a little messy.</p>
<p>cool project</p>

About This Instructable

6,564views

20favorites

License:

More by Cration:Build a self-balancing vehicle with mDrawBot 
Add instructable to: