Making Self Balancing Robot Brain

by Next Builder DIY in Circuits > Robots

371 Views, 6 Favorites, 0 Comments

Making Self Balancing Robot Brain

Split Tone Fashion Presentation_20240429_085321_0000.png

Hey guys, welcome back in my new Instructables. Few days ago I decided to make a self balancing robot. To make a self balancing robot we need to prepare software part & hardware part. So here I'm preparing Software part of my robot my robot. You can also call a brain of it. Because we will use this pcb to provide commands to our robot.

Supplies

Required Components
  1. ESP32 (AMAZON)
  2. MPU6050 (AMAZON)
  3. Capacitor
  4. Header Pins
  5. Screw Terminal
  6. Professional PCB (PCBWAY)
  7. Stepper Motor Driver (AMAZON)
Tools
  1. Fnirsi USB Voltage Tester (PCBWAY STORE)
  2. Digital Multimeter ZTY890D Pro (PCBWAY STORE)
  3. Six claw Multifunctional Helping Hand (PCBWAY STORE)
  4. SEQURE SI012 Soldering Iron (SEQURE / AMAZON)
  5. Miniware MHP30 Hot Plate Preheater (PCBWAY STORE / AMAZON)

PCB Design

Start by finalizing my PCB design using mine preferred design software. Once satisfied, I saved design files in Gerber formats. For designing a PCB I recommend Kicad Because it's preferred for beginner.

I designed this PCB according to me needs;) it has some additional features like I can control two Nema17 stepper motor one Servo Motor and even a Buzzer & LEDs wirelessly, using my smartphone.

Download Gerber File -- Click Here

Order PCB

Split Tone Fashion Presentation_20240430_143442_0000.jpg

After Successfully designing of PCB. I ordered my coustom PCBs from PCBWAY. Head to PCBWay's website. If you don't have an account, sign up, it's quick and easy. Sign up PCBWAY now to get a US $5 coupon. That means your first order is free of cost only you have to pay the shipping charges. After Sign Up Upload your Gerber files and specify your requirements. Choose the quantity, PCB thickness, and color to match your project needs.

Solder Components

After Receiving PCB, Solder some remaining components like Header Pins, Buzzer, Capacitor & Screw Terminal. After the process of soldering use a IPA to clean the PCB and provide a professional look. For better soldering, I recommend to use Sequre SI012 Pro Soldering Iron, Because I love it have a lot of features and powerful Also.

Place the Components

Split Tone Fashion Presentation_20240430_143909_0000.jpg

After Soldering Process, place the necessary components like stepper motor driver, ESP32, MPU6050, etc.

Upload the Code

To upload the code you doesn't need laptop or PC. Because you can even program it using your smartphone. For this go to (Play Store/ App Store) and search for Bluino Electronics and download the application. After Successfully download, open it and click on (Sketch/Code). Here you will see a option to upload the code you can use your smartphone to directly upload firmware to ESP32 either via USB or Wifi OTA, by pressing the upload icon.

If you need to edit the sketch with computer using Arduino IDE, you can find full source code on github

Video Tutorial

Making Self Balancing Robot at home || Part-1

Now it's ready to use, In my next Instructables, I will make a self balancing robot using this PCB. So stay tuned for next one until enjoy it. You can also watch it's making tutorial on my YouTube channel & Don't Forget to like and subscribe for upcoming contents like this.