I need help with a robotisation project, please.
I am new to robotics and have the Maverick RC car pictured below:
My project is to add Arduino and Raspberry Pi boards to control the speed and direction of the car. So, the hand held control was thrown out.
I started by hooking up my Arduino to the front servo marked 9 in the diagram and I can successfully move the wheels to specific angles by using the examples like servo.write(180);
.
My problem is the drive wheels. I have no idea how to power the wheels from the LiPo battery and use the Arduino to control the speed.
I'm open to and would welcome any help, please.
UPDATE:
After further consultation of the RC cars' specifications, the rear drive is controlled by a MM-25 brushed motor.
My problem is how do I interface with the MM-25 using my Arduino as it's wired into the RC car?
So far, I have connected my Arduino to the brushless motor by the same connection it uses to connect to the Transmitter/Receiver. I'm running the same servo code which worked for turning the servo(front) wheels but I get no response from the rear wheels. My code is below:
#include <Servo.h>
const int servo_pin = 9;
Servo servo;
void setup()
{
Serial.begin(9600);
servo.attach(servo_pin);
}
void loop()
{
servo.write(180);
delay(1000);
servo.write(-180);
delay(1000);
/*servo.write(-180);
delay(1000);*/
/*servo.write(180);
delay(1000);*/
/*for(int pos=0; pos <= 180; pos+=25){
servo.write(pos);
Serial.print("Moving to: ");
Serial.println(pos);
delay(1000);
}*/
}