Proyecto Brazo robótico // Robotic arm project

in #electronics14 days ago (edited)
Hello colleagues, today I want to tell you about a super fun project that I'm working on: a robotic arm with 5 servo motors controlled by an Arduino Uno! If you're passionate about robotics/electronics and want to build something awesome, keep reading because I'm going to show you how I did it step by step with programming and the electrical circuit.
Hola compañeros hoy les quiero contar sobre un proyecto super divertido que estoy trabajando: ¡un brazo robótico con 5 servomotores controlado por un Arduino Uno! Si te apasiona la robótica/electrónica y quieres construir algo genial, sigue leyendo porque te voy a mostrar cómo lo hice paso a paso con la programación y el circuito eléctrico.

Circuito eléctrico del brazo

Electric circuit of the arm

brazon robotico.png

Programacion // programming

#include <Servo.h>
Servo servo1; //creamos un objeto servo
Servo servo2; //creamos un objeto servo
Servo servo3; //creamos un objeto servo
Servo servo4; //creamos un objeto servo
Servo servo5; //creamos un objeto servo
void setup()
{
servo1.attach(3); // asignamos el pin al servo.
servo2.attach(4); // asignamos el pin al servo.
servo3.attach(5); // asignamos el pin al servo.
servo4.attach(6); // asignamos el pin al servo.
servo5.attach(7); // asignamos el pin al servo.
Serial.begin(9600);
}
void loop()
{
int angulo1 = map(analogRead(A0), 0, 1023, 0, 180);
int angulo2 = map(analogRead(A1), 0, 1023, 0, 180);
int angulo3 = map(analogRead(A2), 0, 1023, 0, 180);
int angulo4 = map(analogRead(A3), 0, 1023, 0, 180);
int angulo5 = map(analogRead(A4), 0, 1023, 0, 180);
servo1.write(angulo1); // enviamos el valor escalado al servo.
servo2.write(angulo2); // enviamos el valor escalado al servo.
servo3.write(angulo3); // enviamos el valor escalado al servo.
servo4.write(angulo4); // enviamos el valor escalado al servo.
servo5.write(angulo5); // enviamos el valor escalado al servo.
//----Enviamos los ángulos serialmente--------------
Serial.print("Angulos 1: ");
Serial.print(angulo1);
Serial.print(" 2: ");
Serial.print(angulo2);
Serial.print(" 3: ");
Serial.print(angulo3);
Serial.print(" 4: ");
Serial.print(angulo4);
Serial.print(" 5: ");
Serial.println(angulo5);
delay(10);
}

aquí les dejo algunas fotos del brazo robótico terminado. ¡Espero que les gusten tanto como a mí me gusta verlas! Y no se preocupen si tienen algún contratiempo intentando hacer funcionar el brazo.
Algunos tips que les dejo a continuación:
-Utilizar una fuente externa para alimentar los servomotores
-La programación que deje en este post depende mucho muchísimo de los servomotores y de los potenciómetros que utilicen en el armado.
-no olvidar de "unir" los negativos y GND para que todo funcione correctamente.

Here are a few photos of the completed robotic arm. I hope you like them as much as I do! And don't worry if you encounter any hiccups while trying to get the arm to work. Here are some tips for you:
-Use an external power source to power the servo motors.
-The programming provided in this post relies heavily very heavily on the servo motors and potentiometers you use in assembly.
-Don't forget to "connect" the negatives and GND to ensure everything functions correctly.

IMG_20240514_214607358_AE.jpg

IMG_20240514_214628070_AE.jpg

IMG_20240514_214632234_AE.jpg

Bueno compañeros espero que hayan disfrutado tanto como yo del brazo robótico controlado por potenciómetros. Pero eso no es todo: ¿sabían que también pueden ajustar la programación para prescindir de los potenciómetros? Esto les permitirá lograr movimientos repetitivos con una precisión asombrosa en el agarre de objetos. ¡Qué emocionante seguir explorando las posibilidades de este proyecto!
Si quieren más detalles y actualizaciones me lo pueden dejar en los comentarios.
Un saludo compañeros!

Alright folks, I hope you've enjoyed the robotic arm controlled by potentiometers as much as I have. But wait, there's more! Did you know that you can also adjust the programming to do away with the potentiometers? This will allow you to achieve repetitive movements with astonishing precision in grasping objects. How thrilling it is to continue exploring the possibilities of this project! If you want more details and updates, feel free to leave me a comment. Cheers, everyone!

Sort:  

Excelente amigo, siempre me ha gustado la robótica, Lamentable acá se dificulta acceder a los materiales que muestras y la mayoría del tiempo hay que reciclar para obtener piezas, pues importar insumos suele ser un poco caro. También me facina el trabajo con Arduino, me ha gustado el trabajo que muestras, auque no he profundizado en la programación pues aún no cuento con alguno, pero aprender y experimentar con ellos es un objetivo en mente. Saludos

gracias por tu comentario compañero! yo vivo en argentina y por ahora se pueden conseguir estos materiales, lo bueno de Arduino es que tiene una comunidad muy grande de habla hispana , que resuelven muchas dudas , muchos tutoriales y además de eso la curva de aprendizaje es bastante rápida , ojala puedas experimentar en algun momento! Un saludo compañero

Congratulations @tecnotronics! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 300 upvotes.
Your next target is to reach 400 upvotes.
You received more than 50 HP as payout for your posts, comments and curation.
Your next payout target is 100 HP.
The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD
You received more than 300 upvotes.
Your next target is to reach 400 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

LEO Power Up Day - May 15, 2024