Liam’s Car

the chasis
http://hobbyking.com/hobbyking/store/__44607__DG012_Tank_SV_Standard_Version_Multi_Chassis_Kit_with_Two_Rubber_Tracks.html

here are some motors:
https://www.sparkfun.com/categories/247

http://www.superdroidrobots.com/shop/item.aspx/new-prebuilt-mlt-jr-tracked-robot-rc-platform-sold/1721/
TP-500-060

this is the website i got the esc from
http://www.hobbyking.com/hobbyking/store/__11742__HobbyKing_Brushless_Car_ESC_30A_w_Reverse.html
here’s the manual
http://www.hobbyking.com/hobbyking/store/uploads/750066771X177509X21.pdf
http://www.hobbyking.com/hobbyking/store/uploads/811103388X7478X20.pdf

this is the motor
http://www.hobbyking.com/hobbyking/store/__6567__Power_system_w_gearbox_EPS_C20.html

problem solving
http://forum.arduino.cc/index.php?topic=111532.0

programming the ESC electronic speed controller
http://www.instructables.com/id/ESC-Programming-on-Arduino-Hobbyking-ESC/step4/Understanding-and-programming-an-ESC/
CODE:

/* Code Start */

#include <Servo.h>

int FirstEscVal;
Servo FirstEsc;

void setup(){
FirstEsc.attach(9);
Serial.begin(9600);
}

/*
* the motor only use values between 5 91
* set motors to 0 to reset them
*/

void loop(){
if(Serial.available() > 0){
FirstEscVal = Serial.read();
FirstEscVal = map(FirstEscVal, 0, 100, 100, 0); // inverts the data, as 0 in 100 and 100 is 0
Serial.println(FirstEscVal);
}
FirstEsc.write(FirstEscVal);
while(Serial.available() > 0){
Serial.read();
}
delay(1); //Set the delay to what ever you need it to be
}

/* Code End */

Edit this page