motor with romeo all in one

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 [ DFRduino_Romeo-All_in_one_Controller__SKU_DFR0004_-DFRobot ] 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

but it did not work.

As a teacher, you really should know better. Something happened. Maybe it wasn't what you wanted, but "it didn't work" doesn't tell us squat.

after loading the sketch, the attached motors did not respond even after pressing the s1-s5 buttons, we tried the standard and previous pin setup, still nothing. but the main point of my post was to request a simplified motor sketch as we will be controlling the robot via sensors eventually.

//Standard PWM DC control
int E1 = 5; //M1 Speed Control
int E2 = 6; //M2 Speed Control
int M1 = 4; //M1 Direction Control
int M2 = 7; //M1 Direction Control

///For previous Romeo, please use these pins.
//int E1 = 6; //M1 Speed Control
//int E2 = 9; //M2 Speed Control
//int M1 = 7; //M1 Direction Control
//int M2 = 8; //M1 Direction Control

and to PaulS; your superiority complex and condescending remarks might be stomached if you had some real help to offer, again my request was for a simplified motor sketch for the romeo all in one.

i am just a beginner with arduino with nothing but the web to help me. public education is severely lacking in useful hands on activities for students to engage in i am doing my best to provide that but i have little to no help or resources to aid me.

I'm with PaulS at this point. So far you have received exactly the amount of help you deserve. Give us something to go on and adopt a more professional attitude and you will get the help you need, if we possibly can.

The link you gave has almost zero usefull information. We don't know what a "romeo all in one" is. Give us pictures, scematics, your sketch (use code tags please) and some more usefull links and anything else that might be relavent.

Paul

@ electricmotorcycles - You should have read the notes at the top of the forum and a few of the posts before had you done so you would have known better. As for the rest you need to study the instructions for your 'bot.

Mark

in the link i originally provided DFRduino_Romeo-All_in_one_Controller__SKU_DFR0004_-DFRobot for the romeo all in one there is a schematic about a page down [depending on your screen size], just past half way point on the web site is another schematic regarding wiring up a motor to the board followed by an example code. however, all of that is just some background information and my question is directed at someone who can help me get a motor working with the romeo all in one. the code on the page has lots of stuff going on, i just want a simplified code that will just spin the motor. i'm sure there are people out there who are experts with the romeo all in one and can give a quick and easy answer, however, if someone is not familiar with that board in particular but an overall arduino expert they might be able to figure it out with the information provided, at least i hope because that is as much information i have to offer. i've looked around on the web and i've come across that same code three times when looking for example code on connecting a motor to the board.

i do need help, but i don't know what else i can provide, so i thank everyone for looking at my post and responding but i will humbly ask you not to bother replying if you only plan on saying "you need to provide more details", because i don't have any more to give.

Those links are dead!.

Mark

Holmes4, you need to put the closing bracket at the end of the URL.

I expect to click links not select, copy, pate edit and click.

Motor Control Pin Jumper
Applying the Motor Control Pin Jumpers will allocate Pin 5,6,7,8 for motor control.
Removing the jumpers will release the above Pins.

One things for sure the software's ok. We I think it a hardware setup problem.

Mark

but i will humbly ask you not to bother replying if you only plan on saying "you need to provide more details", because i don't have any more to give.

Actually, I think you DO have more details. You might not be aware of what we need to know. The only way that we can make you aware of what we need to know is to ask questions. So, that is what I'm going to do.

Can you post a picture of the shield with the motors and batteries connected? Can you describe the positions of the motor control pin jumpers? Can you describe the batteries being used? Can you describe the motors being used?

FYI, from the DFRobot Tech Support Forum i received the following help from Grey and it worked wonderfully:

//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);
}
}