Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
Elecrow community is a shared platform and we are not responsible for any design issues.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
closed
user-img

Mirko Pavleski

Published: Oct 10,2024

Arduino 3D Printed self Balancing Cube

An interesting open source Arduino + 3D Print project uses gyroscopic sensors and accelerometers to detect the movement of the balanced object and adjust the speed and direction of the wheels accordingly, allowing to control the device through shifts in their weight

ccc ccc
Copyright Info

Attribution-ShareAlike (CC BY-SA)

Read More⇒
  154
  1
  0
cover-img
 
  • thumbnail-img
 

Hardware Components

  • Arduino Nano R3

    X 1
  • MPU6050 Sensor

    X 1 fenxiang
  • Nidec 24H type motor

    X 1
  • Buzzer

    X 1
  • General Purpose Transistor NPN

    X 1
  • Li-Ion Battery 1000mAh

    X 1
  • HC-05 Bluetooth Module

    X 1
  • Resistors, capacitor

    X 1

Tools, APP Software Used etc.

  • soldering kit

  • Arduino IDE

    Arduino IDE

    Arduino

Story

  Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanced while in use. They uses gyroscopic sensors and accelerometers to detect the movement of the balanced object and adjust the speed and direction of the wheels accordingly, allowing to control the device through shifts in their weight.

  This time I will present you a project in which the balanced object is a 3D printed plastic cube, inside which the reaction wheels and control electronics are located.

  Nuts and bolts are added to the wheel in order to increase its weight, thus increasing the impact of the rotation on the whole device. 

 Otherwise, this is an open source project and the original code and .STL parts for 3D printing can be downloaded from ReM-RC GitHub . After a long search for such similar projects on the Internet, I can confidently say that this is the best-made project in this area in every way, such as simplicity, easy setup, and stable operation.

     The control part of the device consists of several components:

    - Arduino Nano microcontroler board

    - MPU6050 Gyroscope and Accelerometer module

    - NPN Transistor

    - Buzzer

    - three resistors

    - Battery

    - and optionally Bluetooth module for easier tuning

  3D printed part consist also several components. Each large part takes more than 2-3 hours to print, so it took me a few days to print all the parts.

    - reaction wheel sides and we need three such part

    - other three sides of the cube

    - reaction wheels that serve to balance the cube

    - mount plate for the batteries and the controller, on which there is a mounting surface for the mpu6050 sensor board.

    - Battery holders

    - and controller mount plate, and mount plate holders 

Otherwise, an ESP32 microcontroller can be used instead of an Arduino, and in that case Bluetooth is built into the microcontroller.

   The three motors are "Nidec 24H" type:

 First let's see how the device works in real conditions. Before putting it into operation, it should be calibrated. Setting procedure is very simple. Setting procedure is very simple. First connect to controller over bluetooth. You will see a message that you need to calibrate the balancing points. Send c+ from serial monitor. This activates the calibrating procedure. Set the cube to one of the balancing points (edge or vertex). Hold still when the cube does not fall to either side. Send c- from serial monitor. This will write the offsets to the EEPROM. 

Repeat this procedure four times (3 edges and vertex). After calibrating all offsets, the cube will begin to balance.

   And finally a short conclusion. This is a really interesting Arduino project to make, of course if you own a 3D Printer. It is perfectly conceived and executed by ReM-RC and I will mention again, all credits go to him.

   3D parts at:  https://www.thingiverse.com/thing:5380306

   code at  :   https://github.com/remrc/Self-Balancing-Cube

Code
Schematic and Layout
CAD-Custom parts and enclosures
  • Technical drawing

    schematic.jpg
    View
user-img

Mirko Pavleski

+ Follow

Topic

View All
3D arduino pid control mpu6050 robotics balancing
  • Comments( 0 )
  • Like( 1 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All