Aller au contenu


Contenu de robotland

Il y a 3 élément(s) pour robotland (recherche limitée depuis 25-avril 13)


#46525 vision robotique

Posté par robotland sur 13 juillet 2012 - 06:30 dans Programmation

Bonjour,

Je m'intéresse à la vision en robotique, j'ai lu des cours sur cela, mais je n'ai jamais pratiqué,
c-a-d, que je n'ai jamais utilisé de caméra.
Comment faire pour pratiquer dans la vision en robotique ?
Avez-vous des sites qui expliquent la pratique en vision robotique ?

Merci de votre aide.



#34448 webcam robot

Posté par robotland sur 30 septembre 2011 - 10:05 dans Programmation

Bonjour,

Je veux faire un robot à roues avec une webcam qui servira au robot à se repérer et à repérer les obstacles.
Le problème, c'est que je ne sais pas comment fonctionne la vision pour un robot.
Est-ce que vous pouvez me dire comment cela fonctionne ?
Avez-vous des sites qui traitent de cela et qui expliquent ?

Merci de votre aide.



#32114 Petit robot à roues, moteur réducteur miniature POLOLU 993, arduino

Posté par robotland sur 04 juillet 2011 - 05:27 dans Archives

Bonjour,

J'ai acheté un Moteur réducteur miniature "POLOLU 993" :
http://www.lextronic.notebleue.com/P4234-moteur-reducteur-miniature-pololu-993.html

J'aimerais le contrôler avec l'arduino uno, j'ai fait le programme suivant :

void setup()
{
pinMode(motorPin, OUTPUT);
}
/*
* loop() – this function will start after setup finishes and then repeat
* we call a function called motorOnThenOff()
*/
void loop()                     // run over and over again
{
motorOnThenOff();
//motorOnThenOffWithSpeed();
//motorAcceleration();
}
/*
* motorOnThenOff() – turns motor on then off
* (notice this code is identical to the code we used for
* the blinking LED)
*/
void motorOnThenOff(){
  int onTime = 2500;  //the number of milliseconds for the motor to turn on for
  int offTime = 1000; //the number of milliseconds for the motor to turn off for
  
  digitalWrite(motorPin, HIGH); // turns the motor On
  delay(onTime);                // waits for onTime milliseconds
  digitalWrite(motorPin, LOW);  // turns the motor Off
  delay(offTime);               // waits for offTime milliseconds
}
/*
* motorOnThenOffWithSpeed() – turns motor on then off but uses speed values as well
* (notice this code is identical to the code we used for
* the blinking LED)
*/
void motorOnThenOffWithSpeed(){
  
  int onSpeed = 200;  // a number between 0 (stopped) and 255 (full speed)
  int onTime = 2500;  //the number of milliseconds for the motor to turn on for
  
  int offSpeed = 50;  // a number between 0 (stopped) and 255 (full speed)
  int offTime = 1000; //the number of milliseconds for the motor to turn off for
  
  analogWrite(motorPin, onSpeed);   // turns the motor On
  delay(onTime);                    // waits for onTime milliseconds
  analogWrite(motorPin, offSpeed);  // turns the motor Off
  delay(offTime);                   // waits for offTime milliseconds
}
/*
* motorAcceleration() – accelerates the motor to full speed then
* back down to zero
*/
void motorAcceleration(){
  int delayTime = 50; //milliseconds between each speed step
  
  //Accelerates the motor
  for(int i = 0; i < 256; i++){ //goes through each speed from 0 to 255
    analogWrite(motorPin, i);   //sets the new speed
    delay(delayTime);           // waits for delayTime milliseconds
  }
  
  //Decelerates the motor
  for(int i = 255; i >= 0; i--){ //goes through each speed from 255 to 0
    analogWrite(motorPin, i);   //sets the new speed
    delay(delayTime);           // waits for delayTime milliseconds
  }
}

mais ça ne marche pas.

J'aimerais en fait construire un petit robot à roues, mais il faut d'abord que je contrôle ce moteur avec l'arduino, pourriez-vous m'aider en me donnant un programme qui fonctionne avec ce type de moteur ?

Savez-vous où on achète des fils électriques ?

J'ai aussi acheté un capteur infrarouge :
http://www.lextronic.fr/P1749-telemetre-infrarouge-sharp-gp2d120.html

Si vous avez un exemple de programme pour ça, merci.


Merci de votre aide.