Balancing Robot with PID - Mini Robot PCB

  Рет қаралды 45,097

Electronoobs

Electronoobs

Күн бұрын

High quality PCB prototypes: www.pcbway.com
3D & CNC service: www.pcbway.com/rapid-prototyp...
🔥I've tried to make a small balancing robot but I had problems with the small motors so I'll try more in the next part. This time at least we have good results for the PID control.
🔀LINKS
-------------------------------------
Tutorial website: electronoobs.com/eng_arduino_...
Get my PCB: / 56868117
Part List: electronoobs.com/eng_arduino_...
Schematic: electronoobs.com/eng_arduino_...
3D STL Parts: electronoobs.com/eng_arduino_...
Code: electronoobs.com/eng_arduino_...
Bluetooth Controller Tutorial: electronoobs.com/eng_arduino_t...
Joop Brokking channel: / macpuffdog
Occupy Mars T-Shirt: teespring.com/es/occupy-mars-...
🤝SUPPORT
-------------------------------------
Join my Arduino Course (Spanish): bit.ly/2JY8icE
ELECTRONOOBS.io: electronoobs.io
Donate on PayPal: www.paypal.com/donate?hosted_...
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.io/forum/index.php
Facebook page: / electronoobs
Canal en Español: / electronoobs en español
00:00 Intro
02:16 Mini Stepper Problems
03:45 What we need?
07:37 Assemble
11:49 Problems with inertia
13:06 PID values
14:14 Code
15:44 Results
17:05 Thank You
Like share and subscribe to motivate me. Thank you
#Arduino
#robot
#balance

Пікірлер: 105
@OhHeyTrevorFlowers
@OhHeyTrevorFlowers 2 жыл бұрын
For editing PID, I find it's much faster to set up a remote control with three knobs that I can use to tune the PID values in real time. Changing the values in code and then transferring it to the mechatronics takes too much time and is frustrating so the extra hardware cost is usually money well spent.
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
That's such a good idea :))))) thanks
@studioOuTproductions
@studioOuTproductions 2 жыл бұрын
Another solution is to design a simple interface in python or matlab where you can adjust the set point an pid values and see the response on a graph, and the comunícate the values via UART communication (or Bluetooth in this case).
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 жыл бұрын
Pid line follower 👌❤
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 жыл бұрын
@@studioOuTproductions kzbin.info/www/bejne/gYmxg5-AhdCKf80
@michaelsilverhouse2122
@michaelsilverhouse2122 2 жыл бұрын
@@ELECTRONOOBS very surprised to hear that you haven't thought of this smart idea for online pid tuning before :)
@jackwilliams2010
@jackwilliams2010 2 жыл бұрын
Very cool! I've been wanting to do a PID project for the longest time. More like a puzzle and learning experience. I wish my college mechatronics class had something like this. Thanks for sharing!
@ugetridofit
@ugetridofit 2 жыл бұрын
you should really dive into the ESP32. On a project like this where your making many changes it would be very helpful to flash it OTA. Not to mention you would also be able to get information back to you over Wifi to get live information at your PC.
@leehewitt9559
@leehewitt9559 2 жыл бұрын
Excellent video. PID controllers are always difficult to trim but this is an excellent example. Thanks and glad to be a patron of the channel
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Thank you very much!
@Enigma758
@Enigma758 2 жыл бұрын
This is a great example of a real world design!
@TechnikalGyanOffical
@TechnikalGyanOffical 2 жыл бұрын
Awesome robot!! Respect from a beginner, keep inspiring us!!
@harivignesh
@harivignesh 2 жыл бұрын
I like the bravery of you balancing the hammer right beside your laptop.
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
🤣
@Debraj1978
@Debraj1978 2 жыл бұрын
Looking forward for the second part of the video.
@JohnJaggerJack
@JohnJaggerJack 2 жыл бұрын
There is nothing wrong returning to the basics from time to time, i sometimes "brush" some of my calculus I notes from college years just to be sure i'm using the right integrals rules and derivations too. Anyways, great video as usual, top notch content.
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Thank you very much!
@Ahmed.Al-Hloul97
@Ahmed.Al-Hloul97 2 жыл бұрын
impressive as always
@YueBeifong
@YueBeifong 2 жыл бұрын
Very clean project, holy shesh!
@ajeethsuryash5123
@ajeethsuryash5123 2 жыл бұрын
Amazing content. Good luck
@bluedeath996
@bluedeath996 2 жыл бұрын
You could get NEMA 8 or NEMA 11 motors. Going from the first ones to a NEMA17 is like saying a bicycle didn't work so I used a tank.
@nistakmahmud
@nistakmahmud 2 жыл бұрын
Great work... ❤️❤️❤️ from Bangladesh.
@smellycat249
@smellycat249 2 жыл бұрын
What a great video. So much neat stuff
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Thank you!
@kidslearning151
@kidslearning151 2 жыл бұрын
wow! a cool project. I am looking for your second balancing robot video
@sagars6190
@sagars6190 2 жыл бұрын
wow really nice work
@hillarymapondera4122
@hillarymapondera4122 2 жыл бұрын
Amazing project thumps up..
@5VoltChannel
@5VoltChannel 2 жыл бұрын
Nice video 👍👍
@electronic7979
@electronic7979 2 жыл бұрын
An excellent robot
@Circuit42
@Circuit42 2 жыл бұрын
Finally A Robot Project
@OhHeyTrevorFlowers
@OhHeyTrevorFlowers 2 жыл бұрын
I’m looking forward to the time travel video. 😺
@lalogarcia6686
@lalogarcia6686 2 жыл бұрын
wow great video
@gersongomes9925
@gersongomes9925 2 жыл бұрын
Muito Legal seu projeto!! Saldações do Brasil.
@kenadams4246
@kenadams4246 2 жыл бұрын
Great video! Unless I’m not looking in the right place, where is the FollowUp video to this one? I can’t wait to see more on this balancing robot! Thank you for sharing your knowledge! 👍👏👌
@backdemoletor4654
@backdemoletor4654 2 жыл бұрын
Nice project
@malehakim248
@malehakim248 2 жыл бұрын
Once again, thanks for a very good video. Pretty much informative. However, i think you left out some parts that i think are pretty much crucial. the most important being how to set the current for the stepper motors with those TMC2225. The other drivers have a potentiometer that one can dial on but when i checked out the TMC drivers, they lacked that potentiometer.
@hacksmith9995
@hacksmith9995 2 жыл бұрын
Very amazing
@chaunceywilliamswilliams3051
@chaunceywilliamswilliams3051 2 жыл бұрын
I noticed your DIY projects. I used to work in prototype at Flextronics and was thinking of a hot air parts removal system. I got a Shark steam Mop professional. It has a heater unit and adjustable air pump system inside. Was wondering if you could see, think, whatever you want if this is a feasible project that would function. These heating units already have a tube hole at top. So hot air could be funneled into a specific spot. Also the pump has speed settings. Just don't know if it will function with air only and no water. Or it has heat control to control overheating etc?
@alwayscensored6871
@alwayscensored6871 2 жыл бұрын
I have most of these parts or equivalents. You got me interested.
@captainamerica949
@captainamerica949 2 жыл бұрын
I'm 85 years old and will try to do this project. Thank you my boy
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
You welcome cap
@rverm1000
@rverm1000 2 жыл бұрын
You can still use them if you use bearing on both sides of the wheel. Just like how a bicycle wheel gets supports.
@captivator13
@captivator13 2 жыл бұрын
Great video,,, Thanks brother :)) Sam 🎵✌🏻
@666aron
@666aron 2 жыл бұрын
Awesome little robot! I love it. One question though: why did you choose a stepper motor instead of a DC motor + rotary encoder?
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Is easier to control the real speed and also the speed is not affected by the battery voltage change...
@siddharthmali5841
@siddharthmali5841 2 жыл бұрын
Great.
@afamchibuzor347
@afamchibuzor347 2 жыл бұрын
Great video!. Can you do a video on 4 quadrant dc motor control with Arduino?
@muhammadshafi2611
@muhammadshafi2611 Жыл бұрын
Great explanation , but can someone clarify me on the timer interrupt to create pulses. If the interrupt is to be trigger and generate pulse each 20usec, does it mean the stepper will turn in constant speed until error is eliminated (robot stood upright) ? I' am a bit confuse on how the PID output manipulated the interval between pulse 😥
@jstro-hobbytech
@jstro-hobbytech Жыл бұрын
You make the coolest pcbs and I like how you're not afraid to show failed prototypes. Message me on patreon. I have something really cool to send you.
@briyanpaul4617
@briyanpaul4617 2 жыл бұрын
Nice
@rverm1000
@rverm1000 2 жыл бұрын
Going the opposite direction would be good too. Make a balancing you can stand on
@technicaljoshi1686
@technicaljoshi1686 2 жыл бұрын
osm video sirji
@mohammadhoutary1338
@mohammadhoutary1338 2 жыл бұрын
Thank you for this video , can you make metal detector with arduino , multi metal multi sounds , for 3 - 10 meter dedicated
@kayezero703
@kayezero703 2 жыл бұрын
nice
@GHILLIESARCADEANDMORE
@GHILLIESARCADEANDMORE 2 жыл бұрын
Cool
@tombraselton2671
@tombraselton2671 2 жыл бұрын
Perhaps N20 gear motors for the little PCB guy? Would like to see him alone without his huge shell. :) You can also have it at 6 volts instead. Some use it in micromouse competitions. Don’t look it up on KZbin as it is VERY interesting and you will want to build one if you haven’t seen them. :/
@overkill2828
@overkill2828 2 жыл бұрын
This project is strikingly similar to "Your Arduino Balancing Robot" by Joop Brokking, especially the code. Please give him credit and link to his video.
@lis6502
@lis6502 2 жыл бұрын
such joysticks are actually purchaseable as "vr controller". They have bluetooth connectivity in few ways (selectable), as a mouse, keyboard (simulating keypresses). Not sure if tearing apart Wii remote and stuffing its corpse with Arduino is feasible :)
@tonysfun
@tonysfun 3 ай бұрын
Do you have a way so I can order the PCB from PCBway? Thank you. Thank you for your videos!
@mohammedalshrief532
@mohammedalshrief532 2 жыл бұрын
Machine learning pid iron station very accurate 💪💪🙈😎💝
@mohammedalshrief532
@mohammedalshrief532 2 жыл бұрын
kzbin.info/www/bejne/gYmxg5-AhdCKf80💝😎🙈❤
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 жыл бұрын
kzbin.info/www/bejne/gYmxg5-AhdCKf80
@Francesco105590
@Francesco105590 2 жыл бұрын
hi, which step motor should you buy?
@energyvxask307
@energyvxask307 2 жыл бұрын
Hello sir, when will part 2 of the video come out?
@ithaajja5724
@ithaajja5724 2 жыл бұрын
Hi,,,,please continue make BadAss Tank, with your 3d print remote
@RdGear
@RdGear 2 жыл бұрын
Thank you Sir, for all of your videos. Sir, If you review "jdy-40 " bt module, that will be very helpful for me. Specially "at command, pwm pins and gpio pin with arduino compatibilities and modified programme ". (I bought some jdy-40 module, but they didn’t work. I think there was a problem with bootloader or flash ) so it is very helpful for me, if you make a video with this module❤️
@nurrudinazzaky8374
@nurrudinazzaky8374 2 жыл бұрын
No need to burn bootloader to atmega chip?
@Mr.Robot373
@Mr.Robot373 2 жыл бұрын
Can we use ULN2003 stepper moter ?
@amremam8937
@amremam8937 2 жыл бұрын
What about making something like hoverboard, where two half can tilt separately, you won't need a load on the top
@crazytronics9917
@crazytronics9917 2 жыл бұрын
Thank you so much for making video on this i have two questions 1.) Can we use autoPID library for balancing it? 2.) Is it possible to build a fuzzy logic algorithm for balancing this type of robot.?
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Maybe but the code would be a bit different if you use a PID Libra
@alwayscensored6871
@alwayscensored6871 2 жыл бұрын
PID math does my head in, Fuzzy logic I understand better.
@prathameshraikar5428
@prathameshraikar5428 2 жыл бұрын
✌😍😍🔥
@lis6502
@lis6502 2 жыл бұрын
also consider using BMS for batteries and enclosure around pack. Trust me, i know how LiPos can be dangerous when mishandled ;)
@mohammedalshrief532
@mohammedalshrief532 2 жыл бұрын
Pid line follower test
@mohammedalshrief532
@mohammedalshrief532 2 жыл бұрын
kzbin.info/www/bejne/hKjYimqnl9hles0
@mohammedalshrief532
@mohammedalshrief532 2 жыл бұрын
kzbin.info/www/bejne/hKjYimqnl9hles0
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 жыл бұрын
kzbin.info/www/bejne/gYmxg5-AhdCKf80
@jstro-hobbytech
@jstro-hobbytech Жыл бұрын
You had to make a complimentary filter ehh? I have the stuff to make a mini one. I have a bno055
@nyder1331
@nyder1331 Жыл бұрын
this hc-05 in conector is not that well idea in my line follower after some time he start losing connection with my phone because of it so if it works its ok but if you have problem with conncection i think i is because of it💚
@yulu1256
@yulu1256 2 жыл бұрын
想請問為什麼我的兩個輪子轉動會不同方向,程式是遵照您發布的版本
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 жыл бұрын
I made iron station very accurate using machine learning you can see it
@peschebichsu
@peschebichsu 2 жыл бұрын
Is part 2 out yet, I didn't find anything?
@kendricksims6304
@kendricksims6304 Жыл бұрын
Is a part 2 coming?
@sarathai2876
@sarathai2876 2 жыл бұрын
Great video, do you have a video explaining Bluetooth module?
@ELECTRONOOBS
@ELECTRONOOBS 2 жыл бұрын
Not yet. The remote will be made in a future video ..
@sarathai2876
@sarathai2876 2 жыл бұрын
@@ELECTRONOOBS you make the coolest stuff.
@shashankarmy
@shashankarmy 2 жыл бұрын
Yeah I also thinked before
@ziad_jkhan
@ziad_jkhan 2 жыл бұрын
Shouldn't there be a library to help auto-tune the PID by now? I see no reason why it can't be done by letting the machine monitor the time it can stay still as new values are tried. If you go that way, you'd want to hang it with a string to prevent if falling over of course.
@alwayscensored6871
@alwayscensored6871 2 жыл бұрын
Be a good use of a genetic algorithm. Get it to learn to program it's own PID.
@ObsequiousV4
@ObsequiousV4 3 ай бұрын
Those super tiny stepper motors are quite difficult to work with as a hobbyist. I bought a box of 70 of them months ago and damaged about 10 of them in the process of getting one of them working. sad time
@maxgear9648
@maxgear9648 2 жыл бұрын
better to make tires flat, it will improve stability and surface contact
@raffyturc
@raffyturc 2 жыл бұрын
ditch the spiked wheels. use a smooth one
@idontthinkso3224
@idontthinkso3224 11 ай бұрын
Actually, I need to learn more about wire library and the registers and all this things (0x1B, 0x3C, 0x3B, 0x6B) and what they mean..... So if anyone can help me to find more resources about it.
@08acbest
@08acbest Жыл бұрын
I think you should have at least mentioned Joop Brookking channel in the video since you used his code
@narrasridhar39
@narrasridhar39 2 жыл бұрын
Eventhough your videos are informative❤️❤️❤️ They are coming too late😕😕😕
@miloudaitbraim4847
@miloudaitbraim4847 2 жыл бұрын
Good one noob
@ankitbarman76
@ankitbarman76 2 жыл бұрын
I also want to make balancing robot could you please send me these motors
@alwayscensored6871
@alwayscensored6871 2 жыл бұрын
Old harddrives etc have steppers in them. Those first tiny ones are from DVD drives.
@difinoxyd2856
@difinoxyd2856 2 жыл бұрын
You might get better results with a state space control method.
@embeddedsystemsiotprojects2055
@embeddedsystemsiotprojects2055 2 жыл бұрын
Pid line follower
I Built a Ball Balancing Robot
8:55
Aaed Musa
Рет қаралды 1 МЛН
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 731 М.
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 42 МЛН
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 3,4 МЛН
Another Arduino project - Your Arduino Balancing Robot (YABR) - Part 1
11:49
BUILDING a Self-Balancing Robot | PART 3 - Remote & Code!
18:15
Noah Zipin
Рет қаралды 22 М.
I 3D Printed a $1,224 Chair
23:56
Morley Kert
Рет қаралды 73 М.
Self Balancing Robot Tips that will Save your project
5:36
Mouad Boumediene - Hobby Coding
Рет қаралды 26 М.
Printing PCBs At Home!
8:08
atomic14
Рет қаралды 289 М.
#35 Inside an Autonomous Self Balancing Robot #1 (Tutorial)
9:51
Andreas Spiess
Рет қаралды 45 М.
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,5 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 6 МЛН