Тёмный

Raspberry Pi Robotics #2: Zumo Robot 

ExplainingComputers
Подписаться 1 млн
Просмотров 473 тыс.
50% 1

In this video I construct a Pololu Zumo robot chassis, interface it to a Raspberry Pi using an L298N H-bridge motor controller, and use Python code to bring the robot to life!
You can see me continue this project with wireless keyboard control in this video: • Raspberry Pi Robotics ...
This video builds on my tutorial: "Raspberry Pi Robotics #1: GPIO Control" -- • Raspberry Pi Robotics ...
Note that this tutorial will work with any Pi (1, 2,3 or Zero).
You can find the wiring diagrams, as well as links for the components used in my Raspberry Pi robotics videos here: explainingcomputers.com/rasp_p...
PLEASE NOTE THAT right at the bottom of the above page you will find important information about whether or not you need to connect GPIO pin 2 (5V) on your Pi to the 5V terminal on the L298N. With my L298N board I did not need to do this. But this will not always be the case.
More videos on computing and related topics can be found on my RU-vid channel at: / explainingcomputers
You may also enjoy my other channel at: / explainingthefuture

Наука

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

 

14 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 564   
@fahadahmed480
@fahadahmed480 4 года назад
trust me you can't find any better tutorial on getting into robotics with pi all across youtube till this date
@ExplainingComputers
@ExplainingComputers 4 года назад
Many thanks. :)
@muhammedshareef2611
@muhammedshareef2611 3 года назад
Till now😊
@superbros1690
@superbros1690 2 года назад
I agree it’s so difficult for my class project, kind of really sucks!!
@BloblDev
@BloblDev 2 года назад
@@muhammedshareef2611 yeah
@thomascott7425
@thomascott7425 7 лет назад
Mister Barnett, you do an excellent job of making the difficult to comprehend and making it quite easy too digest. You are a gifted instructor. Thank you for all of your videos.
@ExplainingComputers
@ExplainingComputers 7 лет назад
Many thanks.
@paulgriffin8566
@paulgriffin8566 9 лет назад
Chris, many thanks for taking the time to put this and the many other videos you have together. The RPi and good people such as yourself have helped rekindle a passion for technology I haven't really had since I purchased my Commodore 64 so many years ago.
@robertpendergast2620
@robertpendergast2620 8 лет назад
I hope you will do some more robotics. Your presentations are so clear.
@NickGamingxns
@NickGamingxns 6 лет назад
Robert pendergast r
@spharge
@spharge 7 лет назад
Excellent tutorial. Certainly one of the better ones I've seen on the Pi and motor controller boards.
@64_bit80
@64_bit80 4 года назад
you are the only coherent youtuber explaining how to use a raspberry pi. actual god
@JohnRaschedian
@JohnRaschedian 3 года назад
Invaluable videos. Learning what you learn in one of these videos would take you days and weeks of reading!
@TheStickofWar
@TheStickofWar 8 лет назад
Thanks for this, just started studying Computer Science Artificial Intelligence in Robotics and this video got me interested in order a Pi and some components to start toying around with in my spare time!
@Jozie88
@Jozie88 8 лет назад
I love the way you speak and teach. You're not too slow, and not too fast. Your voice is very easy and effortless to follow and you always explain everything in good detail without being boring. :) Ty so much!
@Jozie88
@Jozie88 8 лет назад
One (or two) questions! How much did it matter which GPIO pins I use for L298N motor controller? If I want to connect more stuff on my PI at the same time, like LED matrix (4 pins plus ground if I remember correctly) and ultrasonic distance sensor HC-SR04, do I run out of GPIO pins which I can use? I'm still a bit lost with those ^__^ thanks in advance.
@ExplainingComputers
@ExplainingComputers 8 лет назад
You can use any of the general GPIO inputs to connect to the motor controller -- look at about 5:36 in my GPIO Inputs video here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NAl-ULEattw.html to see which pins they are (there is a diagram, lower screen). You will run out of available pins eventually, but not I think with the devices you list and running the L298N. :)
@roshancheereth7540
@roshancheereth7540 9 лет назад
Christopher - This was one well made video - crisp, concise and value added - equally balanced for experts and novices. Thanks a bunch for helping me understand quite a bit about Raspberry Pi and how it can be applied! Keep doing this great work!
@MrBlacknass
@MrBlacknass 3 года назад
You are a GOD!!!!!! Thank tou so much!! 2021 and still nobody has a better tutorial. Of course now we are on Python 3.7 but still. The principles are the same!!
@bunny.bunbob
@bunny.bunbob 4 года назад
how can one person be so damn good at thinking from a noob's perspective? he basicly clears all the assumptions that have to be spoken out for my skill level.
@mtbevins
@mtbevins 8 лет назад
Thanks for the great videos. I really enjoy them. You are so clear and concise.
@deangtspecial6689
@deangtspecial6689 6 лет назад
I just discovered your channel via a comment in another channel. I am impressed a thousand fold with the presentation. I must say I wish I had you as an influence when growing up. I learned a lot from a single video (the previous one of this series) and it was my first one I have ever watched of yours. I have experimented with an Arduino, and own a kit. I was looking into the Pi as a friend said you can link them to hardware too using an IDE and special libraries, and was looking into chaining both. Had no idea how it worked as I do not own one yet. Now I need a Pi, badly! I will recommend you to anyone who wants to know more about it as you present well.
@ExplainingComputers
@ExplainingComputers 6 лет назад
Thanks for your kind and positive feedback. :)
@Umtree
@Umtree Год назад
Well paced, straight to the point. Awesome video.
@tnek1tnek
@tnek1tnek 9 лет назад
Very professional and informative. Thanks from this end of the pond.
@mike_vahemoubayed8099
@mike_vahemoubayed8099 3 года назад
Best Robotics and Python tutorials ever created!
@ExplainingComputers
@ExplainingComputers 3 года назад
Wow, thanks!
@MrVayga88
@MrVayga88 4 года назад
I hope you are still making these tutorials sir. You are such a great instructor. Thanks you very much.
@ExplainingComputers
@ExplainingComputers 4 года назад
I post a new video every Sunday. :)
@lgbonfim
@lgbonfim 5 лет назад
Great Job! I loved these vídeos about raspberry robotics!
@AngeloGi
@AngeloGi 10 лет назад
What an amazingly fun video! Thanks for that! Your presentation and production value is what makes it. Keep it up please!
@ExplainingComputers
@ExplainingComputers 10 лет назад
Many thanks! There will be more videos. :)
@keithhoughton4308
@keithhoughton4308 6 лет назад
Angelo G.
@caharkness
@caharkness 10 лет назад
Great videos! The video quality is phenomenal and you're straight to the point every time. If you do happen to try mounting everything on the motor body, please upload a video. Everyone's looking forward to that!
@spaceinvader4565
@spaceinvader4565 8 лет назад
im really enjoying your vidoes they are fairly clear and quite easy to understand, especially for someone young like me. ive showed my friends who are also 12 (like me) and are also enjoying your tutorials. Saving up for a raspbery pi CANT WAIT
@MrMoonpie001
@MrMoonpie001 10 лет назад
Wow! What a nice simple yet in depth discussion on robotics! It makes me wonder why it took so long for a company like Raspberry to immerge? The combination of the demonstration and the code has been a real treat. Thank you Chris for all you do and I look forward to the next generation of Pi and your next video! Moonpie
@knowledgeis5855
@knowledgeis5855 8 лет назад
Great vids. I just started programming Python recently. This has been a sleeping goal for way too long (over 10 years). I have found my first practical application with this series. Thanks.
@ExplainingComputers
@ExplainingComputers 8 лет назад
You may appreciate a video I am posting on 12 June all about using GPIO pins as inputs. It is a quite a long video and features a ton of Python coding that builds on what is in this video.
@jamestaylor5409
@jamestaylor5409 9 лет назад
Like those who posted before me - love the quality of the video and the presentation. Please do more! I would especially like more on the Zumo robot using a battery pack, WiFi connection, and then some input (camera, sonar, whatever).
@DestinationDub
@DestinationDub 8 лет назад
Thanks so much - very clear and well explained.
@user-rt3fy4gf6i
@user-rt3fy4gf6i 7 лет назад
Thanks for clear and very interesting videos about Raspberry. I will wait new video.
@boiii9793
@boiii9793 9 лет назад
urs are the most least confusing videos and the explanation is pretty good.hope to see the next video pretty soon.
@NickCornaglia
@NickCornaglia 5 лет назад
I really enjoy your videos. Very clear and entertaining. Thank you!
@ExplainingComputers
@ExplainingComputers 5 лет назад
Thanks.
@petabrain
@petabrain 10 лет назад
This is a very high quality video. I was very pleased to watch it fully, keep up the good work! :)
@beck4u2
@beck4u2 10 лет назад
Looking forward to the next video!
@darsonsilungwe8884
@darsonsilungwe8884 6 лет назад
Wow Thank you so much! Amazing presentation.
@langtupt
@langtupt 9 лет назад
Hello Chistopher, I enjoyed your video, thank you for sharing.
@juanmorel9533
@juanmorel9533 7 лет назад
Génial, les démonstrations sont précises et claires!
@pong301275cmu
@pong301275cmu 2 года назад
very nice tutorials, Love it thank you for your kind
@MekhiStafford
@MekhiStafford 8 лет назад
thanks for sharing this with us u really inspire me to keep trying to accomplish my dream of becoming a computer engineer
@JamesNortonJones
@JamesNortonJones 8 лет назад
Thanks for this. It got me up and running really quickly.
@ExplainingComputers
@ExplainingComputers 8 лет назад
+James Norton-Jones Excellent! :)
@Flowlance
@Flowlance 9 лет назад
Amazing! I need to order these parts... :D Really inspired by your video.
@ismailakbari
@ismailakbari 9 лет назад
Awesome. very simple and understanding
@AshanBhatoa
@AshanBhatoa 9 лет назад
This Video is very interesting plus I like robotics and this video told me how to control their motors.
@talhasiddiqui3074
@talhasiddiqui3074 9 лет назад
Wow what a brilliant video. Thanks for explaining
@markblake4584
@markblake4584 9 лет назад
You always do great videos
@theeasywayoutcampers6550
@theeasywayoutcampers6550 4 года назад
thank you for making this video.
@MasterGamingChicken
@MasterGamingChicken 9 лет назад
Great Tutorials and all videos! Thnx
@prokolu
@prokolu 9 лет назад
Great video, fantastically explained. Please, do one with stepper motors and joystick controlled motors. Thanks!
@asitaliano1
@asitaliano1 10 лет назад
A very professional and informative vid. We appreciate your instruction and effort. Keep up the great work.
@cuonglq8
@cuonglq8 8 лет назад
Thank you so much! I love your video.
@Safa-po3oc
@Safa-po3oc 8 лет назад
Fantastic video as always. I would love to see you develop this further as you said in your video with a camera and possibly wifi controls. Wishing you the best of luck with your videos and future Pi projects.
@ExplainingComputers
@ExplainingComputers 8 лет назад
+The Kount Taking this further is on my production list for early 2016. :)
@lemkil76
@lemkil76 9 лет назад
Great vid! Really inspirational!
@hilarylatham3917
@hilarylatham3917 9 лет назад
Brilliant! I'm hooked!
@krzysztofgawryluk4501
@krzysztofgawryluk4501 9 лет назад
Well explained. Good job.
@BushCampingTools
@BushCampingTools 7 лет назад
Great video!
@matteoprada5851
@matteoprada5851 6 лет назад
Grest work guy, you are the best😀
@JottyHB
@JottyHB 8 лет назад
Thanks for Your great videos! I am german but your videos are worth to remember all the english lessons at school 😃 I really would appreciate more robotics videos with the Zumo! May be You could give him some sensors? Thanks in advance!
@pourkin
@pourkin 9 лет назад
Excellent tutorial...thanks
@BlazinSD
@BlazinSD 8 лет назад
Great video, it's like listening to Michael Caine's Alfred talk to Batman.
@hassanrazakhanbiz
@hassanrazakhanbiz 9 лет назад
Nice video, very helpful for beginner, like me. Thanks for sharing it..
@davidprendergast6425
@davidprendergast6425 4 года назад
love this channel.👌👍
@hackernoobtutorials
@hackernoobtutorials 10 лет назад
You are the best
@robindow5742
@robindow5742 6 лет назад
hi christopher great project in fact i was so interested i bought a very cheap crab kingdom chassis and used your code and instructions works great am going to add line follower and echo location at some point and maybe even a robot arm keep up the good work
@ExplainingComputers
@ExplainingComputers 6 лет назад
Excellent -- thanks for letting me know about your success! :) This is what RU-vid is all about. Note that I have various follow-up videos, including a line follower: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Z5_8Va8QxnY.html
@mickashjr9424
@mickashjr9424 5 лет назад
Love this.
@anuragtejwani9233
@anuragtejwani9233 7 лет назад
Really good videos Tysm man
@vimalrajayyappan2023
@vimalrajayyappan2023 5 лет назад
Love you man
@ExplainingComputers
@ExplainingComputers 5 лет назад
Thanks -- will do!
@sidharthcs2110
@sidharthcs2110 7 лет назад
great explainer on RU-vid
@4nomades
@4nomades 9 лет назад
very nice!!!! congratulations!
@samseed666
@samseed666 9 лет назад
You are awesome Thank you.
@MrDemonshalo
@MrDemonshalo 9 лет назад
amazing series. Thank you. please do more!
@RedsGamingArcade
@RedsGamingArcade 9 лет назад
Yes, please do another video about inputs through the raspberry pi, then how to make it do an output off of the input!
@ExplainingComputers
@ExplainingComputers 9 лет назад
Reds Arcade I used a pack of 4 AA batteries to power the robot motors. I will do an output GPIO video at some point. :)
@jcgon_fpv7076
@jcgon_fpv7076 8 лет назад
very good tutorials¡¡
@garagebandguy7722
@garagebandguy7722 9 лет назад
very helpful video. 10/10
@DipanjanBiswasgoogle
@DipanjanBiswasgoogle 9 лет назад
Wao sir you're awesome at what you do.. Subscribed and waiting for next videos
@robertpendergast2620
@robertpendergast2620 8 лет назад
Very nice video.
@mohamedanaouch2322
@mohamedanaouch2322 7 лет назад
thanks you for all
@boowonder888
@boowonder888 8 лет назад
beautiful little motors! I recently found similar high quality 12v motors in an old vhs machine. No gearbox though. If I learn another language, it will be python. I knew some BASIC, HTML mAYBE it will help. Because the script got to be quite complicated in the end. Or maybe it just seemed that way because of all those loops.
@MicrobyteAlan
@MicrobyteAlan 4 года назад
Fun build
@GTAFUN93
@GTAFUN93 10 лет назад
Cool vid!
@artsofpixel
@artsofpixel 6 лет назад
Very good sir its goes to be more intresting
@MicroProjects
@MicroProjects 5 лет назад
very nicely done
@ExplainingComputers
@ExplainingComputers 5 лет назад
Thanks,
@westcountrybob2521
@westcountrybob2521 4 года назад
Thank goodness for this video. At last I realise I dont have to be a complete NERD to understand what is happening without being overwelmed with technical talk.
@agcreatortn
@agcreatortn 6 лет назад
Great video and tutorial. Very easy to follow. For anyone watching this video and building along with it please be aware of your hardware. In this video the presenter is using an older RPi with only 26 GPIO pins. The RPi 2 model b and the newer RPi 3 b and b+ broads have 40 GPIO pins. I had to change pin 7 to pin 12 for code to work properly for me. pin 7 was in an on state after boot on my board. You can see the state of each pin after boot from terminal ~$ gpio readall. I learned this the hard way. On my board some gpio pins are in an "on" "up" state. As stated above when looking at my table after running ~$ gpio readall bcm: 4, wPi: 7, name: gpio. 7, mode: in, v: 1, was causing issues for my code. I change to pin 12, gpio. 1 (v: 0, this was key for me) and code executed fine. There are ways to test your gpio's for failure as well. one being gpiotest. you will need the pigpio liabary installed. www.raspberrypi,org/forums/viewtopic.php?t=180505
@ExplainingComputers
@ExplainingComputers 6 лет назад
Thanks for this. There is no need to change the code or to us other pins with a new Pi (and indeed in follow-up videos I use a 40 GPIO pin Pi Zero with the same code). I strongly suspect that some of the pins on your Pi are damaged, and hence in a constant "up" state.
@agcreatortn
@agcreatortn 6 лет назад
I suspected this as well that i had damaged pins. I ran GPIOtest and they all passed. But I think your right, I think at least pin 7 for me is intermittently malfunctioning. I have a new RPi 3 b I just got over the weekend That I thought about testing. Anyways I think your videos are great for learning and fun builds. I am on zumo video 4 setting up ssh. I have a tank chassis that I am going to build following your other videos. I found a 5 in touch screen for the pi that runs off usb and hdmi and doesn't interfere with the gpio pins. I want to use this so I can lunch the code directly on the robot and expand its portability. I have question when using "curses", is there a way to only have the motors turn when holding down the directional keys and they stop when released?
@rerere115
@rerere115 8 лет назад
Ordered my Pi 2, can't wait to try this.
@ExplainingComputers
@ExplainingComputers 8 лет назад
+Sam “OfficialNerdsUnite” Lauer Excellent! And by the time you have, I will hopefully have made the follow-up videos I have been planning for ages!
@rerere115
@rerere115 8 лет назад
ExplainingComputers awesome I can't wait.
@robinder_
@robinder_ 8 лет назад
+ExplainingComputers Hey there, do these tutorials you are making also work on pi zero?
@ExplainingComputers
@ExplainingComputers 8 лет назад
+Videogame hacks Yes, everything here that does not require a Pi 2 will work on the Zero, although you would need to solder on some GPIO pins to do the robotics stuff, and also use a combined keyboard/mouse device -- or a USB hub -- as the Pi Zero has only one USB port.
@robinder_
@robinder_ 8 лет назад
+ExplainingComputers ok, thanks!
@tarunpai2121
@tarunpai2121 9 лет назад
Hey, firstly, I love your tutorials, they're very meticulously made and very well explained. I have a question. Is it possible to build the robot with any motor and bridge? or am I restricted to using the ones in your tutorial?
@abhijack.1036
@abhijack.1036 3 года назад
Sir my twin children who are in 7th grade learned from your video regarding python coding. Now they are explaining to others. Do you like to see their video? There in no better tutorial in the whole of internet than yours until today
@iwanowski8642
@iwanowski8642 5 лет назад
cheers mate!
@iqoptionmoneey658
@iqoptionmoneey658 8 лет назад
happy new year
@kc-bg5ku
@kc-bg5ku 4 года назад
amazing
@ppqp83
@ppqp83 7 лет назад
Excellent explanation, so straightforward! I was wondering if you could explain how to control 4 motors independently of each other (like for a drone or the Rimac sports car) instead of having just two motors. Also, would the Raspberry Pi have enough computing power to receive inputs (other than positive & negative acceleration, and direction) and do calculations upon them? I would very much like to increase the capabilities of a kit I have for a 4 motor robot, but both motors of each side are connected to the same output of a L298 thus acting as one motor on each side. Thank you in advance!
@sanupamu
@sanupamu 7 лет назад
Thanks sir for your nice presentation. Could you please make a video for UART.
@lieutenantmiller2039
@lieutenantmiller2039 5 лет назад
Fantastic video! I want to do the same project except using the Tamiya tracked chassis with dual motor gearbox. I made Tamiya tracked kit radio controlled a year or so ago but of course, that’s not a true robot.
@ExplainingComputers
@ExplainingComputers 5 лет назад
Thanks -- do checkout follow-up videos in this series: eg ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-XvOONPSoglY.html
@emanuelgute
@emanuelgute 9 лет назад
Keep it up! :)
@petarpetrovic8744
@petarpetrovic8744 5 лет назад
This is fun :-)
@haiaokuwa
@haiaokuwa 9 лет назад
Thank you
@maxteric7855
@maxteric7855 7 лет назад
I really love your videos! I have some question, is there a way to connect 6 motors without occupy a bunch of pins on the raspberry? And is it possible to control these motors wireless without them physically attached to the raspberry? Keep your work going!
@ahmadabdullah6608
@ahmadabdullah6608 7 лет назад
you video lectures are so clear and very informative....................... can you please share some book with me to learn raspberry pi ????
@ManofCulture
@ManofCulture 10 лет назад
Cool!
@serceband
@serceband 6 лет назад
I do not want to advertise so I won't put any links, but a lot of Pololu gear can be purchased from China (actual suppliers of Pololu) for a fraction of the price. My motors had arrived and I'm 99% sure they are the same thing.
@Arthur-ky1nc
@Arthur-ky1nc 5 лет назад
can you tell me which shops you mean pls?
@MrCharlypesc
@MrCharlypesc 3 года назад
same here, i already everything on china...i buy on aliexpress.
@madmarshman
@madmarshman 6 лет назад
@ExplainingComputers are the #2-56 screws and nuts supplied with the chassis the same size as M2 in the uk? Thanks for any help.
@sowrabhnayak135
@sowrabhnayak135 8 лет назад
Your videos are worth watching.. Could u help me out in interfacing Raspberry pi with Linux.. where in you connect rasp to a linux operating system and try some commands.. Thank you..
@RickHenderson
@RickHenderson 8 лет назад
I already have a Raspberry Pi and I've ordered a Runt Rover frame (the Whippersnapper). I want a Zumo as well, but they seem to only sell them now as Arduino bots. Maybe I should double check. Anyway, the new Zumo 32U4 looks awesome you should check them out Chris! I'll totally do your LED tutorial.
@marcelgalarneau8730
@marcelgalarneau8730 9 лет назад
hey great video i order all the parts and get my robot to move yesss
@shmonikk
@shmonikk 8 лет назад
nice!
Далее
Raspberry Pi Robotics #3: Keyboard Control
23:05
Просмотров 359 тыс.
skibidi toilet multiverse 039 (part 2)
08:58
Просмотров 4,5 млн
Raspberry Pi Devastator Robot #2
19:07
Просмотров 284 тыс.
The Petabyte Pi Project
22:27
Просмотров 2,2 млн
The new Raspberry Pi Pico W is just $6
7:56
Просмотров 432 тыс.
The coolest robot I've ever built!
19:40
Просмотров 4,5 млн
I built my own computer. by hand.
13:03
Просмотров 1,1 млн
World's worst video card? The exciting conclusion
24:23
The Freakishly Fast World of Robot Sumo
2:49
Просмотров 587 тыс.
Raspberry Pi Devastator Robot #3 : Camera
16:24
Просмотров 125 тыс.
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18