Arduino CFRobot test : c script code

carte arduino robotique robot

Voici mes premiers essais avec un arduino monté sur un CFrobot

/in one direction on the DFRobot 4WD Mobile Platform

//We need the Adafruit Library.

//There are two versions, this was written for the first version of the library


// Create Motor objects and assign them to the correct motor termnials

AF_DCMotor motor_Back_L(1);

AF_DCMotor motor_Back_R(2);

AF_DCMotor motor_Front_R(3);

AF_DCMotor motor_Front_L(4);

void setup() {

//We can asjust the speed for the motors here

//the range is 0 to 255





}//close setup

void loop() {

//run each motor in the forward direction;;;;

}//close loop


3 thoughts on “Arduino CFRobot test : c script code”

  1. Greetings from Carolina! I’m bored to death at work so I decided to check out your site on my iphone during lunch break. I love the info you provide here and can’t wait to take a look when I get home. I’m shocked at how fast your blog loaded on my phone .. I’m not even using WIFI, just 3G .. Anyways, superb site!

Laisser un commentaire