You are browsing as a guest. Sign up (or log in) to start making projects!

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.

Open comments for this post

1h 21m 3s logged

Completed the code for the bot

Here’s all I did:

  1. Set up BluetoothSerial.h so the robot can connect wirelessly to my phone under the name “Abyss Titan”.

  2. Mapped out the pins for the motor drivers (19, 21, 22, 23) and the RGB LED (25, 26, 27).

  3. 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.

  4. 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).

  5. 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.

Completed the code for the bot

Here’s all I did:

  1. Set up BluetoothSerial.h so the robot can connect wirelessly to my phone under the name “Abyss Titan”.

  2. Mapped out the pins for the motor drivers (19, 21, 22, 23) and the RGB LED (25, 26, 27).

  3. 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.

  4. 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).

  5. 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.

Replying to @prix

0
2
Open comments for this post

1h 1m 40s logged

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);

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);

Replying to @prix

0
2

Followers

Loading…