romeo with motor

my students have an all in romeo all in one, from what i've seen it is not the newest one. we attempted to use code from this page [ [url=http://www.dfrobot.com/wiki/index.php/DFRduino_Romeo-All_in_one_Controller_(SKU:DFR0004)]http://www.dfrobot.com/wiki/index.php/DFRduino_Romeo-All_in_one_Controller_(SKU:DFR0004)[/url] ] but it did not work. we need help getting a very simple sketch that will spin motor. so far we have only been able to make the blink program work, however, even though it says to select the Leonardo board we find we can only upload if we choose the Mini w/ ATmega 328 board
2014-09-23 18:47:32 It is better not, because when you change the motor speed, direction, it will exhaust the battery power.
But you can have a try first. If there is no problem, it is OK.
What is your voltage of the solar sheild? Could you take a photo? Generally, if this shield is compatible with Arduino, it could power arduino with VIN. or you could connect it to M_VIN.
Grey.CC
But you can have a try first. If there is no problem, it is OK.
What is your voltage of the solar sheild? Could you take a photo? Generally, if this shield is compatible with Arduino, it could power arduino with VIN. or you could connect it to M_VIN.

2014-09-23 11:08:28 it seems we are able to run the motors without an external power source, is it ok to do so? i ask because eventually we will want to power the robot with solar with the solar shield [although i have no idea how to hook that up]
electricmotorcycles

2014-09-17 18:06:43 Hello,
For the sample code, you can check this one:
[code]//Arduino PWM Speed Control?
int E1 = 5;
int M1 = 4;
int E2 = 6;
int M2 = 7;
void setup()
{
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
}
void loop()
{
int value;
for(value = 0 ; value <= 255; value+=5)
{
digitalWrite(M1,HIGH);
digitalWrite(M2, HIGH);
analogWrite(E1, value); //PWM Speed Control
analogWrite(E2, value); //PWM Speed Control
delay(30);
}
}[/code]
The PWM value is 0~255, you could adjust this value to control motor speed.
Grey.CC
For the sample code, you can check this one:
[code]//Arduino PWM Speed Control?
int E1 = 5;
int M1 = 4;
int E2 = 6;
int M2 = 7;
void setup()
{
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
}
void loop()
{
int value;
for(value = 0 ; value <= 255; value+=5)
{
digitalWrite(M1,HIGH);
digitalWrite(M2, HIGH);
analogWrite(E1, value); //PWM Speed Control
analogWrite(E2, value); //PWM Speed Control
delay(30);
}
}[/code]
The PWM value is 0~255, you could adjust this value to control motor speed.

2014-09-17 09:03:35 thank you for the reply, and yes we have an external power supply, but what we need is a super simple sketch for a motor
electricmotorcycles

2014-09-16 18:20:36 Hello,
The link you attached is Romeo V1.0. This is the oldest Romeo board.
Its MCU is ATmega328p, so when you upload the sketch, you need choose ATmega 328, not Leonardo.(The newest one is Leonardo chip, they are different).
You mean the PWM/PPM motor control? It requires an external power supply to connect M_VIN.
Grey.CC
The link you attached is Romeo V1.0. This is the oldest Romeo board.
Its MCU is ATmega328p, so when you upload the sketch, you need choose ATmega 328, not Leonardo.(The newest one is Leonardo chip, they are different).
You mean the PWM/PPM motor control? It requires an external power supply to connect M_VIN.
