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

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

0
2

Comments 0

No comments yet. Be the first!