Robot bíped fàcil: 4 passos
Robot bíped fàcil: 4 passos
Anonim
Robot bíped fàcil
Robot bíped fàcil
Robot bíped fàcil
Robot bíped fàcil
Robot bíped fàcil
Robot bíped fàcil

Des de fa un any desenvolupo aquest robot per utilitzar-lo com a plataforma per ensenyar robòtica.

Amb aquest robot ensenyo a moure servos amb moviments directes i amb moviments controlats mitjançant "FOR"

El robot pot ballar, caminar i fins i tot córrer.

Necessitarà:

Arduino Nano

14 cables mascle-mascle

protoboard petit

4 servos SG90

1 bateria de 9V

1 connector de bateria de 9V

2 gomes

Pas 1: alguns exemples de les rutines que pot realitzar aquest robot

Image
Image

Pas 2: model 3D per imprimir

Seguiu aquest enllaç per descarregar el model.

Està ajustat per adaptar-se als servos SG90. No cal cap cola. Tot és instantani.

Pas 3: ajuntar el robot

Reprodueix el vídeo per aprendre a muntar el robot.

Presteu especial atenció a la posició dels eixos servo. Els eixos han d’estar exactament centrats abans de muntar el robot.

Per centrar els servos, podeu executar aquest programa un cop hàgiu acabat el cablejat:

#incloure

Servo peu dret;

Servo a la cuixa dreta;

Servo peu esquerre;

Servo esquerra;

configuració nul·la ()

{

rightfoot.attach (9);

rightthigh.attach (5);

leftfoot.attach (3);

leftthigh.attach (11);

leftfoot.write (90);

leftthigh.write (90);

rightthigh.write (90);

rightfoot.write (90);

}

bucle buit ()

{

retard (500);

}

Pas 4: Exemple de codi

#incloure

Servo peu dret;

Servo a la cuixa dreta;

Servo peu esquerre;

Servo esquerra;

configuració nul·la ()

{

rightfoot.attach (9);

rightthigh.attach (5);

leftfoot.attach (3);

leftthigh.attach (11);

leftfoot.write (90);

leftthigh.write (90);

rightthigh.write (90);

rightfoot.write (90);

}

bucle buit ()

{

// primer moviment pata dreta

leftfoot.write (90);

rightfoot.write (110);

rightthigh.write (90);

leftthigh.write (90);

retard (500);

// segon moviment pata dreta

leftfoot.write (90);

rightfoot.write (90);

rightthigh.write (90);

leftthigh.write (90);

retard (500);

// tercer moviment moviment pata dreta

leftfoot.write (90);

rightfoot.write (90);

rightthigh.write (110);

leftthigh.write (90);

retard (500);

// cuarto movimento pata derecha

leftfoot.write (90);

rightfoot.write (90);

rightthigh.write (70);

leftthigh.write (90);

retard (500);

// primer movimiento pata izda

leftfoot.write (70);

rightfoot.write (90);

rightthigh.write (90);

leftthigh.write (90);

retard (500);

// segon moviment pata izda

leftfoot.write (90);

rightfoot.write (90);

rightthigh.write (90);

leftthigh.write (90);

retard (500);

// tercer moviment pata izda

leftfoot.write (90);

rightfoot.write (90);

rightthigh.write (90);

leftthigh.write (70);

retard (500);

// cuarto movimento pata izda

leftfoot.write (90);

rightfoot.write (90);

rightthigh.write (90);

leftthigh.write (110);

retard (500);

}

Recomanat: