Hi:
I just bought the Kit Robotique à 3 Roues Omnidirectionnelles Compatible Arduino
robotshop.com/eu/kit-robotique-3-roues-omnidirectionnelles-compatible-arduino-3.html
I found that when I define all the out put pins with a value there are only motors turn,
it’s because the
Is that normal ???
Need help
thanks~~~~~~~~~~~
unsigned char E1=5; // Motor
unsigned char E2=6;
unsigned char M1=4;
unsigned char M2=7;
unsigned char E3=9;
unsigned char E4=10;
unsigned char M3=8;
unsigned char M4=11;
void setup() {
pinMode(E1,OUTPUT);
pinMode(M1,OUTPUT);
pinMode(E2,OUTPUT);
pinMode(M2,OUTPUT);
pinMode(E3,OUTPUT);
pinMode(M3,OUTPUT);
pinMode(E4,OUTPUT);
pinMode(M4
,OUTPUT);
}
void loop (void)
{
int sp = 55;
analogWrite(E1,sp);
analogWrite(E2,sp);
analogWrite(E3,sp);
analogWrite(E4,sp);
digitalWrite(M1,HIGH);
digitalWrite(M2,HIGH);
digitalWrite(M3,HIGH);
digitalWrite(M4,HIGH);
}
je défini les sorties en utilisant les codes exemples , mais je trouve que quand j’alimente avec tensions 15V , je utilise voltmetre de mesurer la tension de 8 broches pour les moteurs , les 4 broches sur shield qu’il y a une tension en fontion de PWM qu’on les donne, 7V environs , mais les 4 broches sur le main board qu’il y a peu tension , tjs 0.5V , il y a des personnes qui me ditent peut être qu’ils sont grillés , mais je ne peux pas croire qu’il va griller si façilement quand je vient de manipuler .
Avez vous des propositions??
ça marche merci , c’est le numéro de broche qu’il y a des soucis , merçi
ça marche merci , c’est le numéro de broche qu’il y a des soucis , merçi
The kits can control up to 4 motors separately. The main controller board can control two motors, and the shield can control two. You need to know which pins are associated with which motors (E1, E2, E3, M1, M2, M3). The code needs to correspond with this. Next, check the numbers on the board, and also ensure the shield is getting power from the batteries. If you define only one variable, the motors will likely turn in one direction all at the same speed.
Pouvez-vous clarifiez le probleme? En francais ca va aussi.