ABYSS TITAN
- 3 Devlogs
- 3 Total hours
A high-torque, heavy-duty robot engineered specifically for tug-of-war. Built with a durable metal chassis, optimized motor gearing for maximum pulling power, and smart traction control to dominate.
A high-torque, heavy-duty robot engineered specifically for tug-of-war. Built with a durable metal chassis, optimized motor gearing for maximum pulling power, and smart traction control to dominate.
Did wirings, make the connections according to the code
Here’s the timelapse
https://youtu.be/YPPezGlpv1U
Completed the code for the bot
Here’s all I did:
Set up BluetoothSerial.h so the robot can connect wirelessly to my phone under the name “Abyss Titan”.
Mapped out the pins for the motor drivers (19, 21, 22, 23) and the RGB LED (25, 26, 27).
Instead of using basic analogWrite, I used the ESP32’s hardware PWM channels (ledcSetup and ledcAttachPin) at 5000Hz to make the motor movements smooth and stop any weird high-pitched whining noises.
Programmed a speed control system: Button 1 sets speed to 120 (Blue LED), Button 2 sets it to 200 (Green LED), and Button 3 triggers Turbo Mode at max 255 speed (Purple LED).
Wrote all the driving functions for full movement: forward, backward, left, right, and stop. Also added diagonal turning functions (forward_right, backward_left, etc.) so the robot can make smoother adjustments while driving.
Almost done with my code for the bot till void loop()
#include<Arduino.h>
Bluetooth Serial serialBT;
char BT;
int speed=100;
//RIGHT
int R1PWM =19;
int R2PWM =21;
//LEFT
int L1PWM =23;
int L2PWM =22;
#define rmf 0
#define rmb 1
#define lmf 2
#define lmb 3
void setup() {
Serial.begin(115200)
serialBT.begin(“ABYSS TITAN”)
pinMode(R1PWM, OUTPUT);
pinMode(R2PWM, OUTPUT);
pinMode(L1PWM, OUTPUT);
pinMode(L2PWM, OUTPUT);
ledcSetup(rmf, 5000, 8);
ledcAttachPin(R1PWM, rmf);
ledcSetup(rmb, 5000, 8);
ledcAttachPin(R2PWM, rmb);
ledcSetup(lmf, 5000, 8);
ledcAttachPin(L1PWM, lmf);
ledcSetup(lmb, 5000, 8);
ledcAttachPin(L2PWM, LMB);