Pages: 1 [2]   Go Down
Author Topic: can anyone help me with prgraming the DFRobot 4WD Arduino Mobile Platform?  (Read 3910 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49343
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
analogWrite (E1,a); //PWM Speed Control
digitalWrite(M1,HIGH);
Step on the gas, then put it into gear. Oooh. That's hard on the transmission.

Code:
advance (500,500); //PWM Speed Control
How well do you suppose 500 fits into a char? Not well at all.

analogWrite() won't do what you expect with a value of 500, even if it did fit in a char, either.
« Last Edit: January 03, 2012, 07:35:35 am by PaulS » Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mega...victim,  do you see anything funny here?

Code:
int E1 = 5; //M1 Speed Control
int E2 = 6; //M2 Speed Control
int M1 = 4; //M1 Direction Control
int M2 = 7; //M1 Direction Control

You should clear some things, and maybe even give names that are more logical.
I understand you, I have lot's of problems with my naming habit in my own code, but that's another story...

And what are the limits for PWM output? You have one byte to use.

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

An off topic question, but I have the same chassis and mine came with yellow motors.  Apparently there are different specs for the yellow motors and the green motors. According to the specs of the yellow motors, that Romeo won't work with the 2A current draw, but the specs on the site you provided are the specs of the green motors.

http://www.robotshop.com/ca/dfrobot-4wd-arduino-mobile-platform-4.html.  this shows the specs for both of the motors.
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you give specs for these ... colourful motors? Does they really draw 2A each? Or what?

Link won't open at the moment, they are servicing the website.

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Offline Offline
Newbie
*
Karma: 1
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Green Motor
  • Gear Ratio 1:120
  • No-load speed(3V):100RPM
  • No-load speed(6V):200RPM
  • No-load current(3V):60mA
  • No-load current(6V):71mA
  • Stall current(3V):260mA
  • Stall current(6V):470mA
  • Torgue (3V): 1.2Kgcm
  • Torque (6V): 1.92Kgcm
  • Size: 55mm x 48.3mm x 23mm
  • Weight:45g

Yellow Motor
  • Motor Model: 130 Motor
  • Output Mode: Two-way shaft output
  • Gear ratio: 1:120
  • No-load speed (3V): 90RPM
  • No-load speed (6V): 180RPM
  • No load current (3V): 120mA
  • No load current (6V): 160mA
  • Locked-rotor current (3V): 1.5A
  • Locked-rotor current (6V): 2.8A
  • Size: Long 55MM W 48.3MM high-23MM
  • Weight: About 45g
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the problem? IS there a problem? Stall current is going to hurt, but for that should be fuse to burn, not the controlle. Right?

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Pages: 1 [2]   Go Up
Jump to: