Robot Arm using ESP32 and Smartphone | Complete Robot Arm assembly 🔥
ฝัง
- เผยแพร่เมื่อ 16 มิ.ย. 2024
- In this video we are going to make Robot Arm and control it using esp32 module.
We will control movements of the robot arm using servo motors.
We will send control commands from mobile app using websocket over wi-fi connection.
It also has feature to record and play the arm steps.
While playing the robot arm steps, it also sends live servo positions as feedback on mobile app.
I have explained in details each step along with code.
👉 Please subscribe: th-cam.com/users/hashinclude...
👉 Components list:
✅ Robot Arm Kit amzn.to/3GX3D33
✅ Servo motors - 4 amzn.to/3MGfvtD
✅ ESP32 module amzn.to/34Hewbs
✅ Jumper wires amzn.to/3I8fZVG
👉 Shorts Channel :
/ ujwalnandanwar
👉 Code and diagram:
github.com/un0038998/RobotArm
👉 ESP32 board URL:
dl.espressif.com/dl/package_e...
👉 AsyncTCP Library:
github.com/me-no-dev/AsyncTCP...
👉 ESPAsyncWebServer Library:
github.com/me-no-dev/ESPAsync...
👉 ESP32 Cam - Pan Tilt Control
• Pan Tilt Control using...
👉 Elevating Car
• Elevating WiFi Car usi...
👉 Parallel Parking Car
• Parallel Parking Remot...
👉 PS3 Controller Car
• RC Car using PS3 Contr...
👉 Camera Car
• Surveillance Car using...
👉 Wi-Fi Car
• Smartphone controlled ...
👉 Hand Gesture controlled car
• Hand Gesture Controlle...
👉 Watch more videos:
/ hashincludeelectronics
👉 Follow us on Instagram:
/ hashincludeelectronics
⏱Chapters
00:00 Intro
01:00 Components
01:35 Robot Arm Assembly
14:13 Connections
15:33 Code Explanation
19:00 Mobile App
19:18 Demo
21:58 Important Points
#robotarm #esp32 #hashincludeelectronics - วิทยาศาสตร์และเทคโนโลยี
Thanks a lot for your video! I've been working in this project for weeks and today I finally finished it!
Many congratulations 🎉
Man, you are the BEST, you deserve Millions of subscribers. You explain EVERY provess like how to mechatronics, you both are da best!!
I am delighted by your comment 👌🏻👍🏻 Thank you and stay tuned for more interesting stuffs .
Really great project, exactly what I searched. Many THANKS !
Awesome 👏🏻. Glad that this project is helping you 👌🏻👍🏻
@@hashincludeelectronics
Sir which technology is used in this project
Great project and nice code! Keep up the good work.
Thanks!
Great project as usual in this channel.
Thank you for checking out the video and comment 👍🏻
The record and play option is op 👍🏻
Thank you 👍🏻
Amazing Bro..
Good luck..
Thanks a lot 👍
God bless you sir, you are wonderful
Thank you very much 👏🏻👍🏻
bhai ik number ❤️❤️
Thank you very much 👍🏻👏🏻
is it an power supply issue ?? , and also i have used esp-32 wroom module.
wow bro you've made a lot of projects great job
Thank you very much 👍🏻
@@hashincludeelectronics your welcome
Nice info, thank you for sharing it :)
Thank you 🙏
Thank you so much sir 🙏 ❤
Through this project we can also do PCB manufacturing automation or package automation 😅..
Great project
Thank you very much for checking out the video and comment 🙂👍🏻
Hey, i have made this robot arm and it was working properly. Then i have removed the base motor from esp 32 because i dont need it. Adter this, when i switched the robot with 5 volt 3 amp charger, it is working automatically without any control and the wifi option is also not showing. Now, what can i do??
yay I enjoyed this
I am glad that you liked it 👍🏻
Hey, is it possible to combine the gripper mechanism with the Wi-Fi mechanism wheels robot? If so, how would you change the circuit connections
Sorry I did not understand your question . Probably you can check my other videos for what you are looking for 👍🏻
very good bro❤️
Thank you very much 👏🏻👍🏻
I new it I would be a servo arm or robot arm and awesome project 👍👍👍
👍 nice guess
Wonderful... keep it up. I will try it.
Thank you very much 👍🏻 let me know if you face any issue while making it .
@@hashincludeelectronics thank you
alright so i got it to work. some sliders work but others are not working?
Thank you so much for your help sir it will help me with my project
Welcome 🙏
Im using MG90S 360 degree servos. When i turn my device on two will spin slowly while two stay put until called upon. If i change the positions it will make a third servo spin while making one spin fast. Ive tried changing GPIO pins, servos, position values. The only thing that sort of works is keeping the values at 90 but then ill have two servos that spin uncontrallbly until i get to the webpage
Good project friend, a question that I have to modify so instead of using an esp32 I can use an esp32 cam and be able to see what is transmitting?,thanks and greetings
You can check my videos on esp32 cam for reference . You can make changes as needed .
Nice work bro🎉
Thank you very much 👍🏻👏🏻
hi i also want to ask that how do you calculate voltage and current needed for projects
You need to find approximate current which will be consumed by all components . Like in this project there are 4 servos. So consider each servo takes around 500ma max (Check datasheet of servo). so total 2A + small amount of current by esp32 (we can ignore it for now) . So any supply more than 2A current should be good.
Really great projet, worked out of the box.
One question: I would like to use the arm also from my laptop. The servos work fine, but the buttons are not responsive. Adding an additional button with
onclick='onclickButton(this)
works on the laptop, but not on the smartphone.
Is ther a way to combine these calls?
Thanks in advance.
Yeah some touch events works only on touch screen smartphone. This project is only meant to work on smartphone. I tried it to work on both smartphone and laptop but did not find a proper way yet. If you have time then try using different events like oninput, or changing the button to something else . But it will need your time and testing . 👍🏻
Hi.... Do you get the solution for laptop?
If yes please share its coding
@@SonGoku-gg6tq No, I did't get it working and stopped working at the project.
Hey I have also today build a glass holder robot but there is only one difference that is about code and it is also having gear motors that help it to move From one place to other
That’s nice to hear 👏🏻
@@hashincludeelectronics in which state do you live
Sir one more question if we use the same ubec with your pan tilt cam to make it wire less . Can we do the same with that project
Yes exactly 👍🏻👏🏻
Sorry for late comment mera exam chal raha tha .but your video is always awesome
Thanks and I hope your exam went well too 👍🏻
Hey bro what is the thing called at 15:16 where you used to connect between 5v dc power supply and and the esp board?
That is just a connector which came with adapter. You can directly connect wires as well from your power supply 👍🏻👏🏻
hello. i followed the steps and the upload whent good to my project. but for some reason the wifi isnt working?
Nice! But I got an error message: "'A1' was not declared in this scope". Idea how to fix this? Thanks!
Thanks for checking out the video 👍🏻 can you send the exact error ? I don’t see any A1 reference in code .
I assembled all of these! But will it work with ESP Wroom 32 board which has 30 pinouts? I tried its not working! But compiling and dumping is completely done without errors. Webpage isn't opening while i enter IP
Please use esp32 38 pins only to avoid any issues .
is it possible to swap the plastic gear with the metal gear servo as they are of same size?
Yes you can use that 👍🏻👏🏻
is wifi in the esp32 in this project working as access point or do we have to connect through a router or something?
It is access point 👍🏻👏🏻
Super bro
Thanks 👍🏻
Hello sir, i want ask something, can the http recording is stored in micro sd and called later?
Unfortunately we can not do this in this project 👍🏻👏🏻
Great Project, i tray just do use your code for a project what i am making now with my son. I want fill in our code a line for the position from the servo and i want make a stop button with this all servos goes back to 90grad can you say me how i can fill in this in your the code.
Thanks
Philipp
You can copy paste any button html code to create another button . Then add handling in the code yo move all servos to 90 degrees .
Is the 32 pin of esp32 required to use in that robot arm?
It’s 38 pin
How to deal with a servo that won't move and only moves the shoulder. please answer as soon as possible😊
I have answered on another comment 👍🏻👏🏻
Vi un carrito de cuatro ruedas y encima ese brazo robot controlado por un celular, podrias hacerlo?💙
Yes we can make that too in future . You can refer my other videos for guidance where I have used smartphone but you will have to make the changes accordingly .
How can we integrate it with a inductive sensor to classify metallic or non metallic objects placed on a conveyor belt??
That will be completely different project . 👍🏻👏🏻
How much max weight the robo can lift? , Because im building project which includes real world objects of weight 50g can i use this robo for that?
Yes I believe this can lift 50g load👍🏻
Is there a way to program a led light to work through the toggle system. My led only has a positive and negative outputs.
Yes you can do that . Copy paste the code which is written for the button and use it fir turning on off led 👍🏻👏🏻
@@hashincludeelectronics alright thank you very much
OK sir thank you
Only active part base & elbow, how to fix gripper & shoulder?
Does it lift 500g ? Or how much it's capable of lifting a weight
Thanks for checking out the video. I don't think it will lift 500g with these plastic servos. This is a prototype project but you can use strong servos which has this capability of lifting weight.
Hey bro, any idea how to fix the robot arm where after disconnecting the power supply, the robot arm shakes very violently, any idea what causes this? P.S. i have soldered the wires connecting between the power supply and the esp board
Not exactly sure about this 👍🏻👏🏻
Could you tell me the material of the robotic arm? What are the parts made of?
The arm kit link is in the description 👍🏻
Bro, I did complete the model using your codes and schematic diagram, but the servos and ESP32 are not functional due to power shortage, When the servos are connected wifi is not getting started, please suggest, me how to power both esp32 and 4 servos,
You can use the 5 v ac dc adapter same as I used in video 👍🏻. It should provide minimum 3 A current .
Bro is tht 5v ac dc power supply adapter dangerous??? Cuz it's like 5v ,while doing the project u accidentally touch the wire .can it be dangerous? Pls reply bro
5v dc output is not dangerous. However the ac input is dangerous. So don’t ever try to touch ac which is high voltage . 👍🏻
Hi can you tell me please which app is this and can I used on Roarm M2 S
This is in built app in code . It is developed using html and JavaScript. 👍🏻👏🏻
i have a question. is there a way to set it up so when i plug my project in it will start with all the motors at the same rotation they are. because when i plug it in all my motors rotate.
It can be possible . You need to store the positions in the EEPROM. However you will have to make the code changes for that and test it 👍🏻👏🏻
Perfect thank you :D
There is one problem. I've never coded c++before. I'm just getting into it. Would you be able to help me.
is it esp23 type c or iot version. please answer as soon as possible 14:17
It’s esp32 38 pins wroom module 👍🏻👏🏻
can we replace esp32 by bluetooth module hc-05 and arduino? will app support that? what changes would be there in code?
No it won’t be supported 👏🏻👍🏻
hello sir, when i connect the 5v ac dc to the esp32, the robot arm works on its own and after connecting it ssid- roboticarm, it won't be controlled using the web page
May be there is loose connections . Check properly 👍🏻👏🏻
Hello I already try your project it was awesome 🤘🏻 by the way you if you have any idea to record for the second position ? I had try it but it not working to record the another position 😢 can you help me sir
It only records a single routine 👍🏻
Alright thank you 🙏🏻
If I make another function and add another button to record the next motion, will it be?
Hello.in my pc there isn't showing com12 port..rather showing com6,com4,com3 then what should i use
First remove the esp32 and check how many ports are there . Then connect the esp32 and see the new port and select it 👍🏻👏🏻
Can i use one lithium ion cell instead of that adapter. 1 cell is 3.7v
Replied to you on same other comment 👏🏻👍🏻
Sir
Power supply conecter for 5v power bank it s ok
I don’t think that’s suitable . Please check the output current rating . It should have more than 3A current 👍🏻👏🏻
Can you operate the arm when your are outside too?
Unfortunately no . This can be only controlled locally . 👍🏻
i know this has been a While is there a Way to build this using a Router i want to build 2-3 Robots 2 Axis Base and Tilt for a Camera
You can do this by creating wifi in station mode . You can check my video “getting started with esp32 “ to see how we can connect using station mode to router wifi credentials 👍🏻👏🏻
@@hashincludeelectronics how much power does this take to power
Hey bro, i have made this robot arm . It is working well but i want to change the power mode from AC supply to batteries.. So, how do i make it? And how does power of battery does it take??
That’s good question . You can check my video on robotic arm car where I have used this assemble with car and provided 5v from battery supply with UBEC . 👍🏻
Bro did you face any lag issue
Sir i have used two 3000mah 18650 batteries to start the servo motors but the servos are not working not even a single servo is moving please tell me some method to get them working .please help me as i am using esp32 for the first time
We need to provide exactly 5v . How much voltage are you providing total ? If you provide more than 5v then the circuit will be destroyed .
Hi sir, is it suitable if I'm using two 3.7V with 4800mAh batteries to control 4 MG90S servo motor?
Please note that servos need only 5v . Please make sure you provide 5v only 👍🏻👏🏻. Current capacity looks good .
@@hashincludeelectronics then if I'm using the usb connect the esp32 to pc, can the esp 32 supplies sufficient 5 V?
Hey man do you think you could add another servo to this project in the code? I tried adding it myself but it doesn't move from the web interface
Yes we can add another servo to this . Please try to copy paste the servo code . Give it a shot . It will work . I don’t have this assembly right now to try 👍🏻👏🏻
@@hashincludeelectronics after a bit of tampering it worked thanks
@@Determinator21 that’s really good news . Awesome job 👍🏻👏🏻. Happy that it worked 🙂
Hello sir, I'm a little confused when verify the code.
When I verify it using the ESP32 Wrover Module board, the code could not be verify.
But when I verify using the ESP32 Dev Module board the code was successfully verify
So is it possible to use the ESP32 Dev Module board, sir?
Not sure if it will support esp32 servos. I would suggest to use only esp32 wrover module 👍🏻👏🏻
can you help me. When I connect the servos and give the power, the nodemcu
wifi doesn't work . It would be a great help if you can help me
Are you able to see wifi and connect without servo ? Please remove servos connections and try to connect to wifi . 👏🏻👍🏻
@@hashincludeelectronics yes
If wanting to install esp32-cam, how to do it like a robot car?
Please check my other videos on esp32 cam which will give you idea about it 👍🏻👏🏻
Great project bro.👍but i have a problem..! Node mcu get power source off ,before recording position are gone.! Any solution is there..? Iam making robotic arm As a my final project
And one more broo iam using suction cup in my project ,it's also want to record ,for solenoid control ,we able to use button in this program, your help I need broo
You need to use non volatile memory which is EEPROM to store the recorded values . Please check some videos on how to store values in EEPROM . This needs lot of code changes. I can just provide this info to you . Good luck 👍🏻
Thanks for your reply broo🙃
OK sir I will use that then check with the circuit
👍🏻👏🏻👏🏻
can you be more specific with the 5V ac dc adapter
It should provide 5v output with more than 3 A current 👏🏻👍🏻
@@hashincludeelectronics what happens when its 2A
@@SuhariRajaguru there are 4 servos and each servo can take upto 700-800 ma. So 2A for all servos can’t be sufficient and may cause issues like processor restarts etc . So better to have output current >=3A .
I tried project.But instead of 4to 1 wiring I used bread board It's not working.I am getting home page and connection is same but with breadboard.Pls reply me asap m using for final year project ❤️
Make sure the connections are not loose . 👍🏻
Can I use the 30-pin esp instead of the 38-pin?
I would recommend to use only 38 pins to avoid any issue 👍🏻👏🏻
Sir ,Thank you very much for the video ,I want to use this for my university project is it possible to remove that hash include electronics tittle of the app,if so how could I do it please
That’s nice 👏🏻👍🏻. You can edit the code .
@@hashincludeelectronics thanks a lot
@@alphysics4737 welcome 🙏
Can you program it to play chess or tell us how we can program it in a special video for this case
It’s not that intelligent to play chess. It will need lot of coding and also will need camera module .
How to modify the code to achieve angles greater than 180?
You need to just change the min and max value of slider in code. However you might have to take a look at how servo library can handle angles.
Sir I have shared the video and images of the circuit plz help by taking a look on to it
Which software you used for making circuit diagram
It’s fritzing
@@hashincludeelectronics thank you so much☺️
Sir how to deal with the servo wont moving problem if we provide the battery only gripper servo is moving properly
Could you please send me the video or pics on my email id un0038998@gmail.com ? I will take a look and see if I can help . 👍🏻👏🏻
Can u plese give link to get ac dc adapter
Please check the video description for link for products 👍🏻
hello, very good, I loved the project, but I have a problem when I use the arm with the web browser, my phone disconnects from the network and the saved data is deleted, could you help me. THANK YOU
May be your esp32 gets rebooted . Use proper 5v power supply .
Thanks for replying, I was able to fix it. I loved your projects and keep going with your projects. Cheers
@@inteligenciaartificial622 That’s awesome 👏🏻 good job
Can you combine it with the car?
That’s one of my next project and will be published soon 👍🏻stay tuned
my servo moving soo fast and react high .. what will i do?
It’s is supposed to be like that . You need to move the sliders slowly on mobile app . 👏🏻👌🏻
By any chance do you have stl files of the frame?
Unfortunately no . I did not 3D print it . I bought it online . 👍🏻
Sir sorry to disturb again but how many ubec 5v I have to use
Just one UBEC 👏🏻
alright nevermind i got it all working perfectly. thank you very much for this helpful Tutorial :D
Good job . WelL done 👍🏻👏🏻
@@hashincludeelectronics thank you very much :)
Do you know how to adjust the speed?
Not exactly sure. However please don’t add any delay in the code as it will cause many other issues.
please make this robotic arm with ardiuno uno but,
include
record and play function
sure will try .
it already existes
th-cam.com/video/bLnAJ-mSElE/w-d-xo.html
sir can i use 2a 5v?
Yes you can use . However I would recommend more than 3A .
Is robot arm plays recorded positions after power switch off?
No . We don’t have power recovery in this project 👍🏻👏🏻. We don’t store the positions in EEPROM .
@@hashincludeelectronics thanks, how can i add this kind of feature to this project, do you have any idea?
Puedo ocupar el esp32 devkit v1?
I suggest to use esp32 38 pins module only 👍🏻👏🏻
What version we have to install for esp32servo in library manager
You can install the same version as shown in video 👍🏻👏🏻
I have tried the same project many times but it is not working. What could be the problem?
Please check each and every step in video slowly and properly . Don’t worry it will work 👍🏻👏🏻
Can I use that 9v battery
Please don’t use that 9v non rechargeable battery .
I am using esp32 32 pin but it is not working so can u give me ha hint that how could i use esp32 32 pin with this code
I believe you can use esp32 32 pins . However I would recommend to use 38 pins to avoid any issue . This is little bit complex project . 👍🏻👏🏻
How to deal with a servo that won't move and only moves the shoulder. please answer as soon as possible🎉😊
Check your power supply . Use 5v ac dc adapter with more than 3A capacity 👍🏻👏🏻
hello sir can you help me with this prbolem my servo directory not detection on my computer this my error fatal error: ESP32Servo.h: No such file or directory
compilation terminated.
You need to install the esp32 board and servo library as suggested in video 👏🏻👍🏻
Thankyou sir it’s solved 👍
What is the degree of freedom of this arm robot
4 degree of freedom 👍🏻