Hello everyone! This is my first time on the forum. Tell me if I'm doing something dumb
I have a snap circuits U8 motor controller and a snap rover (Non deluxe) and I was wondering how I could make the arduino control the snap rover using the motor driver. Thank you in advance!
The Arduino needs to provide digital signals to the RF, RB, LF and LB motor driver inputs. HIGH signals to both LF, RF and LOW to LB, RB will make the rover move forward.
Power the motors separately from the Arduino, and don't forget to connect the grounds!
So by power the motors, do you mean connect a 9V to the U8 module? If not, please explain it to me, as I am not super experienced with motor drivers
Thanks!
ok, this is not working. I have the following connections: LF- 2
LB-4
RF-3
RB-5
The motor driver and motors are color coded.
I have the positive from the battery pack to the positive in the motor driver, and the negative to the negative.
here is my code:
int LF = 2;
int RF = 3;
int LB = 4;
int RB = 5;
void setup() {
// put your setup code here, to run once:
pinMode(LF, OUTPUT);
pinMode(RF, OUTPUT);
pinMode(LB, OUTPUT);
pinMode(RB, OUTPUT);
}
void loop() {
digitalWrite(LF, HIGH);
digitalWrite(RF, HIGH);
digitalWrite(LB, LOW);
digitalWrite(RB, LOW);
// put your main code here, to run repeatedly: