The FeeTech Vehicle platform gives you a frame, wheels, tires, and motor controller for you to easily build Arduino Based Vehicles. The provided 2CH -SM-Controller allows you to control standard electric motors as if they were continuous servo motors.
FeeTech FT-MC-002-SMC – https://amzn.to/2MLIzoF
#include <Servo.h>
Servo lServo;
Servo rServo;
void setup() {
lServo.attach(8);
rServo.attach(9);
}
void loop() {
lServo.write(90);
rServo.write(90);
delay(1000);
lServo.write(80);
rServo.write(80);
delay(1000);
lServo.write(100);
rServo.write(100);
delay(1000);
lServo.write(80);
rServo.write(100);
delay(1000);
lServo.write(100);
rServo.write(80);
delay(1000);
}
Be the first to comment