Have you ever accidentally bought 360 degree servos or just have 2 laying around? this project is for you! It uses an Esp32, 2 360 degree sg90 servos, 2 18650 batteries, MP1504en, a custom 3d printed breakout board(https://www.printables.com/model/68885-esp32-breadboard), modified smars chassis (https://www.thingiverse.com/thing:2831501). and 18650 battery holder. You can 3d print your own battery holder or just buy one (https://www.thingiverse.com/thing:2821437)
Libraries used: ESP32Servo— by Kevin Harrington
Start by removing the servo tab of your 2 servos and screwing them in with some small self tapping screws included with the servos. After, click in place the 9v battery holder element to the left. Click on the 3d printed slave wheels and screw on the 360 degree servo modified wheels with the servo horns inside.
Feed the servo wires through the hole of the 3d printed plate element and glue it to the inside of the chassis. Use filament pieces to connect the tracks(32).
Next connect the battery holder and 3d printed breadboard (breakout board). Solder the buck converter to the batteries. Use the multimeter to measure and set no more than 5volts, min.4.8 on the buck converters output. when done, glue the whole thing on top.
After connect the buck converters positive (5v output) to the Esp32 VIN, and negative wire to GND of the Esp32. Connect the left servo to D13 and right servo to D12. Connect both 5v and gnd of the servos to the esp32 gnd and 5v/VIN.
Lastly tuck in the loose servo wires and upload code. Do not plug in batteries and pc at same time! After upload, disconnect the robot and plug in the batteries. On your phone open the wifi and connect to the robot.
const char* AP_SSID = "SMARS-Rover";
const char* AP_PASSWORD = "rover1234";
And open browser and type in 192.168.4.1
Use the two sliders as controls and enjoy!
















Comments