Тёмный

Another Arduino project - Your Arduino Balancing Robot (YABR) - Part 1 

Joop Brokking
Подписаться 79 тыс.
Просмотров 547 тыс.
50% 1

In this video I build an Arduino balancing robot. The code that I use is self-written and is available from my website. A detailed built tutorial, drawings for the frame and electrical schematics can also be downloaded from my website:
www.brokking.ne...
If you have any questions please check the Q&A page first:
www.brokking.ne...
The code is explained in detail in the following videos:
Part 2: • Another Arduino projec...
Part 3: • Arduino project - Your...

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 816   
@markgreco1962
@markgreco1962 7 лет назад
When you click on the motor to view the item it takes you to a 42mm stepper motor. Should it be a 35mm Is this wrong on your site??
@Joop_Brokking
@Joop_Brokking 7 лет назад
Thank you for your comment. I checked the link and you are right, it's the wrong link. I corrected the link on my website and it has the correct link now. Thanks again!
@osmanozutemiz1366
@osmanozutemiz1366 7 лет назад
Mark Greco do not place lipo on top, noob . lipo is heavier part in this project. it should be in bottom
@markgreco1962
@markgreco1962 7 лет назад
osman özütemiz I will build it exactly as Joop has done the project It is important for the battery to be on top for inertia
@Joop_Brokking
@Joop_Brokking 7 лет назад
Osman, did you even watched the video? You need some inertia on the higher part of the robot to get it to work. Check this video on how to balance a stick on you finger: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lk_Pwu7nf1U.html
@osmanozutemiz1366
@osmanozutemiz1366 7 лет назад
Joop Brokking no, i dont know english im using translste
@sergiocastellani9823
@sergiocastellani9823 7 лет назад
Joop i still didn't see in the net anybody with such complete and accurate informations/instructions as you. I deeply appreciate your effort and above all your passion. Many should learn from you.
@nikkon27
@nikkon27 7 лет назад
I also want to say the thorough information you provide is great! The bringup steps, checking for overcurrent, etc, are particularly good. These steps are important for any project but almost never discussed. Many folks that view this tutorial, even if they don't build the robot, will learn important concepts they can use on future projects.
@VietNguyen-rf1ov
@VietNguyen-rf1ov 6 лет назад
Hà Nội của em
@TheKetsa
@TheKetsa 7 лет назад
Nice video, but I miss the most important information... How did you achieve self balancing program ? You have such a great style of teaching, it shouldn't be left out :)
@georgenewbold275
@georgenewbold275 7 лет назад
My name's not Joop but I can give you some helpful info on what the code is doing. The accelerometer will calculate various accelerations on 3 axis. (up/down, left/right, forward/back). We know the robot is standing upright when the forward/back axis (aka x) has no acceleration or the up/down axis would be perfectly aligned with gravity meaning roughly 9.81m/s^2 . He is getting the motors to respond to this information, trying to correct the imbalance and rechecking the sensor. By using the nun-chuck he can tell the robot to tip slightly forward or back and remain at that tilt for movement. The speed can be found using force vectors i.e. physics. The likely algorithm controlling the motor speeds is PID control. It is a very flexible algorithm for controlling motors automatically and achieving a desired result (i.e. tilt angle for balance in this case)
@leonardvdj
@leonardvdj 7 лет назад
He does use the accelerometer to stop forwards/backwards motion, but its the gyro data he uses to keep it upright.
@Joop_Brokking
@Joop_Brokking 7 лет назад
Thank you for your comment. I'm currently working on a complete code overview video. But it take so much time to get it finished :-(
@TheKetsa
@TheKetsa 7 лет назад
What a great news ! Thanks. I know, video creation and editing is very time consuming... I just subtitled some videos and it took me hours for a few minutes of footage.
@MD-vs9ff
@MD-vs9ff 7 лет назад
George Newbold It's not "likely" PID, in some of the code excerpts he shows onscreen you can see clearly named tuning constants in the global variables. It's definately PID.
@Dronebotworkshop
@Dronebotworkshop 7 лет назад
Excellent design and a great video!
@ottokueng4236
@ottokueng4236 7 лет назад
Thank you Joop, never seen such a perfect tutorial. The language clear to understand, no music, and all details to download. I just ordered the material and will try to reproduce this Robot. I'm shure, I will learn a lot. I can't understand those who gave a thumb dawn. Kind regards Otto
@Joop_Brokking
@Joop_Brokking 7 лет назад
Thank you for writing me this comment. I really appreciate it!
@ncueman
@ncueman 6 лет назад
When I click on the 《1 x Mini DC 7~28V to DC 5V step-down converter》 to view the item, it takes me to a 《Mini DC 7~28V to DC 5V Step-Down Converter Power Supply Module》. But the Power Supply Module is different with your "yabr-schematic_robot.pdf". Is this wrong on your site??
@a..d2062
@a..d2062 3 года назад
I FOUND THE SAME, DID U FIGURE IT OUT. thanx
@marcio6498
@marcio6498 5 лет назад
Hello Mr. Joop Brokking, how are you, all right? I really admire your work, so I will make a YMFC drone just like yours. I don't know if I'll make it, but I'll try. I also intend to make a self-balancing robot, both for course work, but I have some doubts. If you can help me, I would be very grateful. I don't want to bother you, but I would like some questions. Mr. Could you tell me which Mini DC 7 ~ 28V to DC 5V converter you are using because I want to make a robot exactly like yours? I can't find an equal. I found the LM2596 e o MP1584, but I'm in doubt about the connections. Please my friend help me. A hug.
@Joop_Brokking
@Joop_Brokking 5 лет назад
You can use the one that I have listed on my website. The one that I used is more expensive.
@fabiostranieri7471
@fabiostranieri7471 3 года назад
Hi Joop, before to start with building, I'm studing your code and video. I read the comment here. Why it is so important the exat position of the MPU-6050? Why it shouldn't work if I put MPU-6050 a little bit top or bottom, right, left? Thank you in advance. BR
@SumitKumar-fc4bq
@SumitKumar-fc4bq 7 лет назад
nice project.👍👌 :)
@aliveelectronics5529
@aliveelectronics5529 5 лет назад
Dude, can you tell me how you got to these levels of pid control?
@7AppleFan7
@7AppleFan7 6 лет назад
Great stuff I enjoyed your projects. Appreciate your effort. Its world class engineering.
@theawesomer
@theawesomer 7 лет назад
Cool build! Sharing on The Awesomer.
@Gabrozzooooo
@Gabrozzooooo 5 лет назад
I built it, but I have a problem. I NEED YOUR HELP!! When I start it, i wait for the end of the blinking, but moving the robot, the motors do not move, they only take a small step when I move the robot from side to side, nothing more! I adjusted the drivers well, I tried with other engines, ...
@claudiop9691
@claudiop9691 5 лет назад
I've the same issue. No answer
@aadityac182
@aadityac182 7 лет назад
Hey am using a "ESP8266 " instead of "2.4G Wireless Serial Transparent Transceiver" and a normal "12v to 5v regulator" instead of " Mini DC 7~28V to DC 5V Step-Down Converter Power Supply Module". Will the same coding work ? i have already found my balance value with the hardware test code. But the robot doesnt seem to work. Please reply ASAP.Its for my college project.Thankyou.
@mohammedworld3755
@mohammedworld3755 5 лет назад
i have to say thank you for your amazing work i built this robot and worked perfectly thanks
@nomanmalik5215
@nomanmalik5215 4 года назад
Thanks for such nice and comprehensive tutorial Joop :)
@pachanoid
@pachanoid 4 года назад
i used arduino nano ,SLC And SLA To A5, A4, conected to nunchuk, 3,3v and ground to, but i have some problems with code, it dont detect nunchuk in 0x52 address, i dont understand what happend beacause, i check the nunchuk with other program and it works,, here is the response of the serial Scanning I2C bus... I2C device found at address 0x01 I2C device found at address 0x02 I2C device found at address 0x03 I2C device found at address 0x04 I2C device found at address 0x05 I2C device found at address 0x06 I2C device found at address 0x07 done No MPU-6050 device found at address 0x68 No Nunchuck device found at address 0x52 :S
@BernhardHofmann
@BernhardHofmann 7 лет назад
Excellent video yet again, thank you so much! ☺
@iocircuits
@iocircuits 4 года назад
Great Work, i am building this one, really nice. Thanks a lot
@williamna5800
@williamna5800 7 лет назад
Any time I see a video from you I know its going to be interesting as well as educational. I enjoy the simple, complete and interesting way you present your video info. (for anyone who does not understand the concepts/idea of a balance bot and how it works using an accel/gyro look back in Joop Brokking's videos for compete simple to understand videos, using his DIY arduino quadcopter as the platform)
@martinmartinmartin2996
@martinmartinmartin2996 7 лет назад
I am a newbie trying to learn Arduino_UNO. But I can't find enough technical information on using the ATmega_328 to connect the Arduino_UNO to a NOKIA_1100 display. Apparently there are 2 different ways to program the Arduino to input data to the NOKIA_1100 (1) ATmega328 processes SOFTWARE so that _shiftout() enters the data to the NOKIA_1100 OR (2) ATmega328 uses the SPI library to enter the data to the NOKIA_1100, requiring the use of specific Arduino_UNO pins: Digital_pin13, SCK (clock); Digital_pin11, MOSI The SPI technique is much faster. I have searched the various sites that "explain" the setup of Arduino_UNO and the NOKIA_1100, but have NOT found a site that explains the difference between the 2 techniques listed above. I would appreciate any help you can offer, especially a reference that I can read. An answer by a viewer that knows of such a reference would also be appreciated. observerms
@he1i0s
@he1i0s 7 лет назад
I would like to make more clarification about current limiting. Due to forum.arduino.cc/index.php?topic=415724.0 you should not connect the motor until you adjust Vref. Also, please check my calculation. I have Nema 17 driver with rated current per phase = 2.0A, rated voltage = 2.2V/phase, 1.1Ohm. It will be 2.0A*2.2V= 4.4W. I use power source 4x3.7V=14.8V, so my maximum amperage should be 4.4W/14.8V = 0.29A. So, my Vref = 0.29A/2=0.145V. Is that correct?
@harrysvensson2610
@harrysvensson2610 7 лет назад
"YABR" should stand for "Yet Another Balancing Robot", "YA" usually stands for "Yet Another". :p Just saying.
@akauppi2
@akauppi2 7 лет назад
I thought it was...
@a..d2062
@a..d2062 3 года назад
I NEED HELP GUYS: When I click on the 《1 x Mini DC 7~28V to DC 5V step-down converter》 to view the item, it takes me to a 《Mini DC 7~28V to DC 5V Step-Down Converter Power Supply Module》. But the Power Supply Module is different with your "yabr-schematic_robot.pdf".
@modsley
@modsley 6 лет назад
Thank you for the great project! One question.. Can I use this platform to make autonomous robot with ultrasonic censor? Or it's impossible because of 4 milliseconds main loop limit? Thank you.
@SmasherOffiziell
@SmasherOffiziell 7 лет назад
This is great! Greetings from Germany!
@timenotspaceproduction
@timenotspaceproduction 6 месяцев назад
this is excellent work , how small can this be feasible do you think , based on currently available components ?
@woodtv4481
@woodtv4481 3 года назад
IS SIR JOOP OK? I KINDA MISS HIM FOR HIS WONDERFUL TUTORIALS... I HAVE LEARN SO MUCH FROM HIS CHANNEL. HOPE HE'LL BE MAKING MORE VIDEOS SOON.
@filamentnovice1846
@filamentnovice1846 3 года назад
When I look at the photo of the prototyping PCB it looks like the FAULT pin is connected to the + 5V. Is this correct? I don't see in the schematic that pins 9 to 16 are all connected as it appears on the PCB. My fuses blow every time I plug in a DRV8825. With or without a stepper motor connected. @Joop, for information, the schematic in pdf on the website, the FAULT pin is not connected. I started from this schematic purely and alone. After watching the video again, it appears that the schematic in this video used has been drawn correctly.
@ananthmuppidi7629
@ananthmuppidi7629 7 лет назад
Very well done. Excellent craftsmanship . I love your videos. Keep making more!!!! I subscribed :)
@carronhi
@carronhi 2 года назад
Hello Joop, could I replace the regulator 5V regulator + capacitor; connecting the lipo battery 11.1V directly to the arduino UNO, and taking the 5V from the UNO?
@tonyjohnson4572
@tonyjohnson4572 4 года назад
Has anyone built this and got it to work with Jopop's original code? I have checked each component and they all work individually, but with the full sketch, I just get the steppers buzing without movement. I passes the hardware test, but I am not using the remote. Could this be the issue
@ajaybnl
@ajaybnl 7 лет назад
Very Pleasent Tutorial & Video. Thanks for making my day.
@MrByrontracks
@MrByrontracks 3 года назад
Hello everyone... At the moment I only have an Arduino mega 2560. Do you think it can be used for this project? Thanks a lot...
@martinjadlovsky7510
@martinjadlovsky7510 Год назад
@Joop Brokking Hi im trying to build this project, but im using arduino UNO. I have one issue. When i press the start button nothing happen the motors are blocked. Could you please help me ?
@Fiverr04
@Fiverr04 3 месяца назад
I have a different gyro, mine is the "ADXL345". Please let me know if that will affect my project and if I need to add a library in the Arduino IDE. Please let me know as soon as possible.
@FergusonRW55
@FergusonRW55 3 года назад
I'm also building a version of this. Has anyone built a smartphone app to send the bluetooth control codes? I may be mistaken but it seems that the nunchuck/uno/blue module could be a separate project if an android phone app was available.
@KaivitiSingh
@KaivitiSingh 4 года назад
Interesting and Fully explained project. THanx for your efforts Joop Brokking. I can see that the post is old, so now: How about now using a Nano instead of Pro Mini together with 2x A4988, 2x JDY 40 2.4G (NRF24L01) and Stepper Motors +MPU6050. This would reduce the costs to less than 50% of what was in those years. Also the JDY-40 2.4G will not require a second Arduino (Uno in your case) for the remote (use simple 4 buttons sw for FF, RV, TL, TR all wired straight to the board ). this will make a tiny hand held RC operating with a small lipo. Loved your patience in Explaining in all the 3 video clips....I listened to them all.
@MarceloMoraes
@MarceloMoraes 6 лет назад
Hi Joop. I completed mounting the Robot and it is working properly. I had to set the full step mode in the step motors drivers in order to work with my specific motors (mode 0, mode 1 and Mode 2 as LOW). I am facing just one problem: When the robot is starting to balance itself, first it performs a backward movement for a few seconds (it moves about 100 cm) and after that it stabilize at vertical position. Do you have any idea about how to solve this problem?
@Joop_Brokking
@Joop_Brokking 6 лет назад
Recheck the balance value. It's normal that the robot moves a little at startup as you can see in the video. During this moving it finds it's optimal balance point.
@mariov57
@mariov57 2 года назад
the 2.4G Wireless Serial Transparent Transceiver Module is discontinued, any replacement recommendation?
@sergeantseven4240
@sergeantseven4240 7 лет назад
First of all, DO NOT use a bench power supply to adjust the current limiting of those drivers. that is not the proper way to do it and is not accurate do to current limiting control. You have to reference the voltage at the potentiometer with a multimeter in order to set the correct current limit. over current can burn out the coils on the stepper not just heat up the driver.
@maskman4821
@maskman4821 7 лет назад
awesome project and thanks for the explanations and detailed info , data etc.
@mfatihkoc
@mfatihkoc 5 лет назад
hey ı work with same balancing robot like using Nema 17 stepper motor, a4988 motor driver, hc-06 bluetooth module, arduino nano, and gyro. ı uploaded applicaiton to control robot via bluetooth.but ı have just motor noise ı do not undertand it is working or something ? could you please contact to me?
@sigmachadgigamale
@sigmachadgigamale 7 лет назад
i enjoyed the video until you put java code on the script and triggered my intense Post Traumatic Shitty Language Disorder
@brawndo8726
@brawndo8726 4 года назад
Those DRV8825s sound like robot farts. You need some stealth chop in your life.
@tonyjohnson4572
@tonyjohnson4572 4 года назад
Not sure if this is still active? What do you use to power the remote system please? would a 9v battery work? Thanks
@darrenwilton4260
@darrenwilton4260 2 года назад
Can the serial module be replaced by a HC-05 blue tooth module without altering the software
@jhoanmartinezsilva2609
@jhoanmartinezsilva2609 3 года назад
Any book to design and build electronics boards like arduino? Thanks to all curious and maker people out there
@cryppsomar8771
@cryppsomar8771 7 лет назад
Excellent !!! Thank You for sharing your Knowledge !!!
@stevenlee1726
@stevenlee1726 7 лет назад
Hello joop, I am wondering if i dont connect any transmitter to the robot, i just want the robot to balance it self, will it work? Because my stepper motor wont turn at all, it wont balance itself. I wonder if it is because i dont connect serial transmitter to robot. Can you reply?
@Joop_Brokking
@Joop_Brokking 7 лет назад
The robot will also work without the serial transmitter.
@leandro3710
@leandro3710 6 лет назад
exactly my same doubt, i have made and remade all the connections, my problem must be in other thing... will find it and when working will send here the video, thanks
@stevenlee1726
@stevenlee1726 7 лет назад
I have connected everything exactly the same, using arduino uno, MPU6050, DRV8825, the robot just wont balance itself. I wonder if arduino uno can work with ur code?
@stevenlee1726
@stevenlee1726 7 лет назад
Well, it only worked for few seconds then it fell down. I guess i have to solder everything up. Coz i am using bread board with jumper. The vibration is quite strong causing the wire to be unstable. Anyway thank you so much for your code. It save me so much time and going to modify it once i am able to get it working. YEAAH!
@jimmykan7873
@jimmykan7873 7 лет назад
Very cool project. Thanks for sharing your work!
@MillaeGiuliano
@MillaeGiuliano 7 лет назад
Great Man! Thanks for posting video and plans.
@danhcong5234
@danhcong5234 7 лет назад
Hello, I sent you 2 emails recently but didn't get any answer from you. May be you were busy. Here is my problem: I used your code on series "MPU 6050" and tried to calculate yaw angle. I calculate yaw by these functions: angle_yaw += gyro_z * 0.0000610687023; and use angle_yaw_output = angle_yaw; to display on LCD. My problem is: yaw angle increase by the time (if we keep moving our plan, so the increment doesn't happen); Could you give me some advises to fix this bug. By the way, as in the last letter. I said that i am working on a project and the task is keep our robot move straightly. I am going to use PID to solve this, Have you got any suggests for me! Our robot have 4 omni wheel and it has to move from point to point quickly and correctly. Speed of DC motor is controlled by PID too. Thank you very much and I hope your answer soon!
@ИванПлотников-д4х
@ИванПлотников-д4х 4 года назад
Joop HELLO! Your video is super. For some reason, when I install NEMA 14 engines (I have the same NEMA 14 as in the video), then a weak torque and with little effort skips steps, and if I put NEMA 17, then the torque is much higher. Why don't I have torque on NEMA 14 engines? Can I supply DC motors, for example, from a 12 volt screwdriver? What should be changed in the code? Thanks for the answer.
@jonnyvu6483
@jonnyvu6483 3 года назад
i use the board uno instead of pro mini. Can it work if i do that ? the motor can run if i do exaclty all port on the uno like the pro mini ?
@midhundavis816
@midhundavis816 7 месяцев назад
Hi can you point to any resources that explains the PID calculation part of the arduino code?
@frettedheart
@frettedheart 7 лет назад
Using a Pro Mini instead of the Uno for the Wii nunchuck controller: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1RGQE8HoHGg.html
@DanielGonzalez-hg2vk
@DanielGonzalez-hg2vk 3 года назад
HI Joop...Thank's for all this information and this great videos.... Didn't you need the capacitors in paralell with the 12V supply of the A4988 ? And.. Do this project work usin Arduino Mega 2560 ? Thank's very much...
@arnabmandal8419
@arnabmandal8419 3 года назад
I'm trying to implement this with a Bluetooth HC-05 module, by sending the received_byte through it to the Arduino using a custom-made app. What should be the send rate of the app (as in what should be the time interval between sending two bytes)?
@Jason0115114617
@Jason0115114617 7 лет назад
Hey, so the hardware check says everything is all excellent.. the nun-chuck is recognized and the gyro works.. but i cant control the bot with the remote.. any thoughts i am so close to finishing this project.. i would love to get it done soon
@he1i0s
@he1i0s 7 лет назад
how is it working? after 'throttle_counter_left_motor'>2 it will just stop to pulse. It should keep to give 0,1,0,1,0,1 etc to 2nd output. throttle_counter_left_motor ++; if(throttle_counter_left_motor > throttle_left_motor_memory) {...} else if(throttle_counter_left_motor == 1) PORTD |= 0b00000100; else if(throttle_counter_left_motor == 2) PORTD &= 0b11111011;
@he1i0s
@he1i0s 7 лет назад
The bigger pid_output_left the lower left_motor and throttle_left_motor... The bigger throttle_left_motor the slower rotation of left wheel. So, the meaning of throttle is like reverse!
@abeljerson9360
@abeljerson9360 7 лет назад
Is it possible to use HC05 module or any other module because the module you described is not available in our area also the site you recommended doesn't deliver to our locality please reply asap
@Joop_Brokking
@Joop_Brokking 7 лет назад
Yes that is possible. As long as it sends the serial data @ 9600bps.
@ljdewaal7931
@ljdewaal7931 7 лет назад
Use of HC-05 modules is possible. Look at howtomechatronics.com/tutorials/arduino/how-to-configure-pair-two-hc-05-bluetooth-module-master-slave-commands/ howto setup.
@zx10rheinzi
@zx10rheinzi 5 лет назад
In the lowest connection line of the stepper-driver you have in the "Build image 09" ALL eight pins connected, but in the "yabr-schematic-robot" you did connect only 7 pins ! I followed all your instructions, and i made only one difference (NEMA17-Steppers instead of NEMA14), but the motors won't move.......after checking all connections I noticed the difference between the wiring schematic and "Build Image 09" Is that missing connection(5Volt on fault-pin of the stepper-driver) the reason ???
@Joop_Brokking
@Joop_Brokking 5 лет назад
Make sure to use the schematic and not the pictures. If you use the same components the schematic will work.
@thomashu1095
@thomashu1095 3 года назад
I have run your hardware test to determine if nunchuck has been connected properly. The result says i2c device found at address from 0x01 to 0x07, but no nunchuck device found at 0x52. However, I loaded a sketch using nunchuck_funcs.h, the joystick and buttons were responding correctly. I also ran a i2c multiscanner including 400khz. It correctly found the device at 0x52. I wonder if anything in your program I need to modify in order to detect nunchuck? Appreciate if you can provide any hints. By the way, the bot worked properly and can carry a glass of wine on top.
@thomashu1095
@thomashu1095 3 года назад
Never mind, I add delay(10) in 3 locations after Wire.endTransmission(). The program can now find all i2c addresses including 0x52 and the joystick is functioning properly.
@akauppi2
@akauppi2 7 лет назад
@joopBrokking Two questions, regarding the Buck converter you have on the BOM (and which I bought, now realizing it's not the one used on the video): www.dx.com/p/mini-dc-7-28v-to-dc-5v-step-down-converter-power-supply-module-green-black-398251?Utm_rid=78761898&Utm_source=affiliate#.WXsHaK1Dw0R 1. Would you recommend connecting the two grounds? The Internet seems to have both opinions (will work both ways, but which is deemed better in this design)? 2. The converter has two pins at each corner (and no manual I can find). Is it just that these pins are duplicates? Is it enough to solder wires to just one of them?
@Joop_Brokking
@Joop_Brokking 7 лет назад
All the grounds on the board are connected via the ground plane. So you could only use one ground. Yes, the pads are duplicates. You can check by following the traces on the PCB.
@queenidog1
@queenidog1 2 года назад
I'm finding it difficult to see how you communicate with between the remote control and the robot. They both seem to have Bluetooth communication modules (you don't specify), and you don't have any libraries or code to show how communication is done. In the main robot code, there is a line if(Serial.available()){ which implies a Bluetooth or similar serial device attached to Rx0 and Tx0. Are these free on the ProMini because downloading is through the FTDi programmer? There is very little (none) information on those comm modules. When I click, it just shows a generic component with little data on it's use. Can you elaborate? In the remote control code I don't see ANY communicaiton coding.
@queenidog1
@queenidog1 Год назад
It's an HC12
@TuanNguyen-cr2ye
@TuanNguyen-cr2ye 5 лет назад
Joop I want to asked 2 question 1. If i don't connect the nunchuck or robot can't recognized the nunchuck's I2C address, can robot balance by itself? 2. Whenever I test the hardware I always received the different results. I have entered the acc_calibration_value after received the balance value from hardware test but my robot can't balance by itself. Can you help me this problem? Thanks in advance for your response.
@zx10rheinzi
@zx10rheinzi 5 лет назад
Maybe its the missing connection at stepper-driver....check the difference between wiring diagramm and "Build Image 09"...(Brookings website - media)
@jon12639
@jon12639 6 лет назад
Why is the ground wire to the stepper drivers grey coloured (in schematic), while the other ground wires are black. Is there a difference in gauge? Also, which wires are 0.14mm² and which are 26 AWG?
@Joop_Brokking
@Joop_Brokking 6 лет назад
26AWG is the same as 0.14mm2. Try to ground the electronics and the stepper controllers with a different 26AWG wire. This will prevent that current spikes form the stepper controllers will influence the electronics.
@eugenenault4935
@eugenenault4935 4 года назад
I attempted another similar balance robot project, Total fail. I given this project a go and have almost completed but having difficulty with hardware test /nunchuck , won’t load and perform monitoring test. However hardware test had no difficulty with robot monitors test. Maybe bad Adriano uno board ? Or bad nunchuck ?, don’t know. Hope the author of this project can give some pointers and help me out. Thanks
@plamenpetkov6958
@plamenpetkov6958 4 года назад
I had hard time with the remote (less than 1 m range). It turned out the radio modem had aluminum sticker at the back. The robot uses Pro Mini for a reason. There is no CH340 (usb support) and no hidden connections of RX, TX pins. I used however a Nano, featuring 1k ballast resistors from CH340 to Rx, Tx pins. When the radio modem tries to drive the RX pin, it collides with CH340 and vice versa.. You may have the same situation. I increased the 1k on the Nano to 4k7 and replaced the ballast 4k7 of the radio modem with a tiny schottky diode (anode to RX)
@ruvindurandeniya9741
@ruvindurandeniya9741 4 года назад
How I download the code??
@brandyplays6134
@brandyplays6134 4 года назад
can i use bread board instead of pcb?
@hansdampf3519
@hansdampf3519 4 года назад
don't know if this discussion still runs. (you see, i am not a native english speaker ;-) i want to use this project for practicing imu-sensors and filtering sensor signals in a technical college. some more information would be fine : - how is the complementary filter designed ? i mean : are there any calculations about the frequency behavior of gyro and acc ? - did you find the pid-parameters by any rule or just "playing" with them ? (- is the video, which explains the linearistaion of the steppers, available ?)
@hansdampf3519
@hansdampf3519 4 года назад
found part 2 and 3, sorry ...
@ausprobierendannweisstdues8686
Respect man, very nice project!
@jacquesclaude210
@jacquesclaude210 7 лет назад
Absolutely awesome video, so if I wanted to make one twenty times the size, would the code have to be altered or not?
6 лет назад
Hi, I am trying to build YABR, using a CNC shield, with M1 high. Everything seems fine, the MPU is working as expected, but I can't get any response from the step motors. I've adapted the code to the following config: Left motor with pulse at 2 and DIR at 5 and the right motor with pulse at 3 and DIR at 6, but still nothing. Do you have any idea? Thanks a lot for this amazing project.
@MikeysLab
@MikeysLab 5 лет назад
Thank you for the inspiration, think I will build something like this for my April project!
@ranulfo102
@ranulfo102 7 лет назад
AMIGO VOCÊ ALÉM DE GÊNIO, É UM SHOW. VALEU POR COMPARTILHAR UM PROJETO COMO ESSE...PARABÉNS.
@richardeveritt636
@richardeveritt636 6 лет назад
Hi Joop, great project and videos. This has inspired me to make it. Currently I have built the robot and just waiting for parts for the remote. I have run setup program and everything appears Ok, the Gyro has given me a balance value of -1095 which I understand is ok. Now I have uploaded the main robot program but the robot does not try to balance, Is this because I haven't built the remote yet or should it balance without it? Thanks In advance Richard
@ToTheMaxx
@ToTheMaxx 5 лет назад
yes it does
@rezanzenal
@rezanzenal 6 лет назад
Hello everyone... i need a help to build a cable cam using (rc radio+ arduino micro+step moter) I appreciate any advice.
@Science3D
@Science3D 6 лет назад
Hi, I built your robot and it works very well, thanks but I have a question: I saw that you are using an "2.4G Wireless Serial Transparent Transceiver Module for Arduino" ... where can I get some documentation on this small board? I would like to know hot it works. Thanks
@plamenpetkov6958
@plamenpetkov6958 4 года назад
I had a weird problem with the remote. I used Pro Mini and both I ordered turned out to run at 1/4 of the prescribed baud rate. Same with delays. Apparently the vendor installed wrong crystal. Blink sketch runs at 1/4 speed too.
@sciencebabyy
@sciencebabyy 5 лет назад
Hello. first of all, thank you for your guide. I following your steps but I can't find out why YABR_hardware_test.IDE doesn't works on Arduino Leonardo. Upload was fine. but there was nothing on serial monitor. Do you know the reason?
@기운찬-g5n
@기운찬-g5n 5 лет назад
Hello, i read the code. Timer intterupt occur every 20 micro second. So 40 micro second period pulse is generated and that can control maximum 45 degree. Am i right? And if the pidoutput is less than 45degree. What action is operated during remaining time of 4ms? No action?
@charleslundy2801
@charleslundy2801 4 года назад
I'm looking at replacing the step down converter with a UBEC step down converter, if so can R2 and R3 be eliminated?
@s.snowball7874
@s.snowball7874 6 лет назад
Hi, I started the Hardware test, but the seriall monitor says No Nunchuck device found at address 0x52 Both blue LEDs on Wireless modul are flashing, but nothing else. Do you have I Idea was is wrong?
@romans8324
@romans8324 7 лет назад
What about building a One-wheel-robot? :) As like a robot from the Borderlands game, his name is Claptrap. What do you think, Would it's been working? It's my dream and point to reach it, but I guess i able to make that robot only with 2 or 4 wheels, but original Claptrap has a one wheel
@Joop_Brokking
@Joop_Brokking 7 лет назад
Please check this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HG_eLUkehOc.html It's possible :-)
@framespersecondfps5256
@framespersecondfps5256 7 лет назад
can anybody please help me out here. I have an Arduino Uno, two stepper drivers, 2 Stepper motors, an IMU6050 and a 12v lipo..... can i use this tutorial to build a SBR. i dont have all the other stuff mentioned.
@richardfirthucsb
@richardfirthucsb 7 лет назад
You are awesome! thanks for posting this!
@amazlin8271
@amazlin8271 Месяц назад
Hoi Joop. dankjewel voor je moeite en duidelijk info. ben je nog actief Joop met hobbies?
@johnjohn-ed9qt
@johnjohn-ed9qt 7 лет назад
Why the separate tuning for balance point? The addition of a single button (press when the robot is upright and the current value is used as the cal value) and a couple lines of code make it easier. Better yet is fully self calibrating, but that is a bit more work-- I am too lazy to code it for an application like this.
@rachidaounarain4778
@rachidaounarain4778 5 лет назад
I made the robot, and it gets to be stabilized. However, it does not stand still. it starts to move forward, and to turn. Can you figure out where this problem is from?
@ashishvasvani9991
@ashishvasvani9991 6 лет назад
Hello sir I am building same robot with all your videoes and guidelines..Thank you so much sir..but I have few doubts...one of them is in this equation: pid_output_left = 405 - (1/(pid_output_left + 9)) * 5500 what is the significance of 405,9 and 5500? Do they be changed if I use wheels of larger dimension? other one doubt is what is the significance of 400 used in pid and motor pulse time calculations? other one doubt is what is the relation between 20 microsecond interroupt routine and 4 miliseconds loop? Can we change them? other one doubt is what is significance of Kp, Ki and Kd used in above programme? I am asking all this becouse I have built same robot but difference is without transiever, with single stepper driver I am driving both stepper motors, I am using NEMA 17 motors so some dimensions are changed including dimensions of wheels, I changed that 400 value to 600 After all this my robot is being stable for 5 seconds only.. Hopping to be answered. thank you for your time
@Бегемот-р3с
@Бегемот-р3с 6 месяцев назад
How can I change program to change axis of stabilisation?
@hkh971
@hkh971 7 лет назад
Hi Joop Many thanks for your video, just a quick question, can I use this software with the geared DC motor instead do step motor? Thanks
@Joop_Brokking
@Joop_Brokking 7 лет назад
I made the code for the stepper motors only. If you want to use normal dc motors you have to modify the code yourself.
@flammodo
@flammodo 7 лет назад
Hello Joop, I have a problem: I set 150 mA current on both controllers. I set the balance value to -518. I have successfully uploaded the program to the Arduino. But YABR has not enough torque to keep the upright start position. Also, when I tilt YABR a little bit, it seems that he is moving to the wrong direction. Can you please explain what will be wrong in my project? Thank you very much in advance
@Joop_Brokking
@Joop_Brokking 7 лет назад
If the motors don't have enough torque you need to increase the current. If the motors move in the wrong direction you might need to check the motor wiring. And of course make sure that you built it exactly the same as the schematic. Every small change can lead to another problem.
@flammodo
@flammodo 7 лет назад
Can it be correct that the balance value is -518? I have checked that the gyro is in the correct position like in the video.
@Rekomeister
@Rekomeister 7 лет назад
Can I use an Arduino Pro Mini instead of the Arduino UNO in the remote control ?. There should be no modifications in the code for the remote except for the type of board used . The remote is using only I2C to talk to the nunchuck and serial to talk to the RF module
@gpTeacher
@gpTeacher 6 лет назад
HI Joop: I've built this robot and it's gone together really well. However I have a couple of questions. On the schematic of the circuit, you have the gray and dark red tracings running towards the battery and switch. The gray wire comes up from the stepper motors and joins onto the black wire that runs to the ground on all the boards. I'm finding that When I touch my multimeter leads to both the right-most pins on the stepper motor (red and gray) they are shorted together. Should I get an open circuit when I touch these two pins? I blew the diode on the bot when I powered it up. One motor started turning and then 'puff'! Also, I'm trying to set the current limit on the DRV8825 driver boards. I touch one lead of my multimeter to the vRef spot and the other to ground and I get the full voltage of the battery. But then I put the positive lead to the centre of the potentiometer and get zero (0) volts. Turning the pot does nothing. I've tried this on 4 DRV8825 boards and nothing happens. Please help me understand what I'm doing wrong. Thanks Joop. Your projects are fantastic and the videos are top quality! If you wish you may reply to gp_7141@yahoo.ca
@Joop_Brokking
@Joop_Brokking 6 лет назад
If you blew the diode on the stepper controller your voltage is reversed. Make sure to double check the wiring and use a fuse or limited bench power supply to test the circuits. Remember that the schematic is drawn from the top and you are soldering on the back side. So everything might be reversed.
@gpTeacher
@gpTeacher 6 лет назад
thank you kindly for your fast reply Joop. Best wishes, Gord
@fredcc1234567
@fredcc1234567 7 лет назад
Hello Joop Brokking, great work. I'm unable to understand how you have being able to compensate non linear speed behaviour in your code, i haven't found any documents thats could help me understand how you have comme up with that equation, if someone could help me it would be great thanks. pid_output_left = 405 - (1/(pid_output_left + 9)) * 5500 thank you for your time
@Joop_Brokking
@Joop_Brokking 7 лет назад
I'm currently working on another video where I explain the full code. When you increase the time between the pulses (for example 1, 2, 3, 4, 5, 6, 7us and so on) you will notice that the speed in time per second is not a linear line. But more logarithmic. The calculations in you comment are the opposite of the logarithmic function of the speed to get a linear speed increase. Again I will explain it in the video that I'm currently making. But it will take some time before it's ready.
@roboticsatbp7743
@roboticsatbp7743 7 лет назад
Yep, this is the part of the code that has been bothering me for the past few days. It bothers me even in my dreams. lol!. I would like to see how Joop came up with this.
@fredcc1234567
@fredcc1234567 7 лет назад
Joop Brokking thank you for your reponse i'm looking into it.
@ryangill9518
@ryangill9518 7 лет назад
Great work! Thanks for sharing.
Далее
I Built a Ball Balancing Robot
8:55
Просмотров 1,1 млн
#慧慧很努力#家庭搞笑#生活#亲子#记录
00:11
Mining Magnetite
16:20
Просмотров 410 тыс.
Fun with Transistors
24:33
Просмотров 340 тыс.
Custom Cyberdeck For (Legal) Satellite Hacking
20:12
Просмотров 1,3 млн