Raspberry pi with Python for Robotics 1 - Supplies Needed

  Переглядів 187,765

sentdex

sentdex

10 років тому

Basic Raspberry Pi Robot Car Playlist: • Raspberry pi with Pyth...
Welcome to my robotics basics with Python and the Raspberry Pi. In this series, we will be building a simple four-wheeled car. We will learn how to power and control motors, as well as program the GPIO pins to do what we need them to.
The beginnings of this series will be geared for the absolute noob in python and robotics, and will gradually progress.
Some of the supplies:
Frame/wheels that I bought:
These two together:
www.sainsmart.com/sainsmart-4w...
www.sainsmart.com/sainsmart-l2...
Or...
www.sainsmart.com/sainsmart-un...
Also the wifi dongle:
www.amazon.com/gp/product/B003...
seaofbtc.com
sentdex.com
hkinsley.com
/ sentdex
Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6

КОМЕНТАРІ: 141
@ChrisColeArcher
@ChrisColeArcher 5 років тому
would be awesome if you had a sequential playlist of these builds. A 1 playlist in order for a build would be amazing. Also thanks for all your work!
@MinecraftEpicPlayer
@MinecraftEpicPlayer 8 років тому
import robot Done.
@sentdex
@sentdex 8 років тому
MinecraftEpicPlayer Works great, thumbs up so others can see!
@hridoyahmed2120
@hridoyahmed2120 5 років тому
I am the 50 no. liker
@kidrobotmaker
@kidrobotmaker 8 років тому
will be watching the series later seems interesting!
@ericjurotich9078
@ericjurotich9078 10 років тому
Very cool, looking forward to this. Thanks!
@martinkaspar5095
@martinkaspar5095 5 років тому
wow - fantastic - loooks great
@hpalm051269
@hpalm051269 7 років тому
Can I use the RPI 3, do you have your PI connected to a different power source then the battery pack in robotics 2
@hundle98
@hundle98 6 років тому
Hey would I still be able to follow along with the pi 3? Or would the code be somewhat different
@caponeptune
@caponeptune 9 років тому
Are there any other motors I could purchase to use instead of using the kits? Would a micro metal gear motor 50:1 fit inside the chassis and fit into the tires? I am really interested in starting this project but with a stronger motor so it can run a bit better. Also is I use a b+ Raspberry Pi would there be any changes I would have to make? Thank you.
@hashroot3732
@hashroot3732 6 років тому
Which camera will you be using, a USB one or the camera module for Pi? If you'll be using module, which one? The NoIR one or the other one? Please reply..
@mathewsmith733
@mathewsmith733 7 років тому
Can you put a camera on the robot? this is pretty cool, thinking of getting into Raspberry Pi.
@brandonious0969
@brandonious0969 9 років тому
Sorry if you've already answered this somewhere, but can you post a link to the motors and wheels you bought for this kit? I see the links for the wires, frame, hbridge etc, but not the motors. Thanks!
@aussielaw4173
@aussielaw4173 8 років тому
Sorry if you have answered this or cannot do this but can you do more advanced stuff like robot arms , and quadroter?
@jassmin15
@jassmin15 8 років тому
hi , i want to ask you about the reference of the H-bridge and the motor
@jamesharris6062
@jamesharris6062 8 років тому
Hi thank for the camera software on one of your other video work very well RPi- Web is it easy to stream to to your phone outside your home network. I have done this with a bird box with motionpie software .
@adamel-kadi5179
@adamel-kadi5179 7 років тому
Please help, I need to know exactly what type of wire did you use.
@rixus7238
@rixus7238 7 років тому
Can I use a single 9V battery to power the motors?
@utkarshshukla231
@utkarshshukla231 3 роки тому
made my lock-down productive.
@solved5928
@solved5928 3 роки тому
Can you do this project on a raspberry pi 4
@utkarshshukla231
@utkarshshukla231 3 роки тому
@@solved5928 yes i made the complete live streaming bot on raspberry pi4 it works awesome.
@solved5928
@solved5928 3 роки тому
Thanks are the GPIO pins the same?
@solved5928
@solved5928 3 роки тому
Also do you need to use a battery pack for 4 batteries
@solved5928
@solved5928 3 роки тому
But mainly are the GPIO pins the same
@kjvashist
@kjvashist 8 років тому
Hi, can I use 4 Rechargeable Li-ion Batteries 3.7v 5000mAh 18650 for this robot. I wan to keep it lightweight.
@bobyau8755
@bobyau8755 2 роки тому
Can the L298N you used in the video able to handle 4 motors with 4 AA battery?
@ASL1000ify
@ASL1000ify 9 років тому
Command for GPIO pins?
@medinatolegenova492
@medinatolegenova492 9 років тому
hi, i have a question about setup raspberry pi with wifi(headless). i want to setup RPI headless with wifi, i connect my tp link wifi adapter to wifi but it doesnot work on raspberry pi. please help
@wenguo6353
@wenguo6353 5 років тому
is it possible to control multi cars simultaneously?
@arjunpudu799
@arjunpudu799 6 років тому
Raspberry pi and arduino interfacing tutorial needed
@solved5928
@solved5928 3 роки тому
Can you run this project on a pi 4 Amazing video
@STEFAN9484
@STEFAN9484 3 роки тому
Can you make new guides for 2021 ? I am learning now Java and the front end (JS,html,css,react) , but after I finish next year I want to learn python to get into programming robots.
@Omarbg95
@Omarbg95 3 роки тому
So your saying that i learned robotics the Hard way using arduino? :D
@bretthopenwasser2267
@bretthopenwasser2267 7 років тому
Do you recommend any other videos to help me, self learn robotics and code, before I start this series of videos? I know very little of robotics and code at this time.
@sentdex
@sentdex 7 років тому
I think this video can be done without any understanding of robotics going into it. You should be fine, but you can also look things up along the way.
@bryanwesterveld5287
@bryanwesterveld5287 8 років тому
Because the RPi B v2 (512mb) only has 1 pwm you can't control the speed of dc motors, right?
@adamel-kadi5179
@adamel-kadi5179 7 років тому
I hope you answer me quick. Can you send me an exact description of the raspberry pi you used? like I mean 4 or 3 ... Please
@mitinmahto9305
@mitinmahto9305 7 років тому
How to connect the edimax in raspberry pi Plz tell me sir
@HarryB-pe4di
@HarryB-pe4di 3 роки тому
where did you get the motor control board?
@Brandutchmen
@Brandutchmen 8 років тому
Will it work with a l293d?
@NecessaryFacts369
@NecessaryFacts369 3 роки тому
Please please tell me.... What is the use of Python programs like... for i in range(0,10): if I=50: print("something") Please please please tell me.....what is its use in making robots....?
@TheInternetFan
@TheInternetFan 7 років тому
Hello Harrison, I stumbled upon your channel while looking for python tutorials. I was wondering how you first got into python programming. Are you self-taught?
@sentdex
@sentdex 7 років тому
Yep, self taught. That's why my standards are so bad :P I first got into programming and python when I wanted to do natural language processing. The main method at the time, and still to this day, is to use Python+NLTK, so that's where it all started.
@TheInternetFan
@TheInternetFan 7 років тому
It's amazing to see how many different projects you were able to accomplish with Python. Congrats!
@Khaltazar
@Khaltazar 9 років тому
You didn't include link for the power supply for the Raspberry Pi.
@seamusmalta
@seamusmalta 9 років тому
Hi, thanks for this! I tried looking for some of the jumper cables and other cables you used for the GPIO connections - any chance you can give us a link to those? Thanks!
@sentdex
@sentdex 9 років тому
ebay or amazon is probably your best bet. Just get female-female and some male-female jumpers. FF: www.amazon.com/Female-Solderless-Flexible-Breadboard-Jumper/dp/B00D7SCMZ8/ref=sr_1_1?ie=UTF8&qid=1409530161&sr=8-1&keywords=female+to+female+jumper+wires MF: www.amazon.com/Phantom-YoYo-dupont-cable-female/dp/B00A6SOGC4/ref=sr_1_1?ie=UTF8&qid=1409530124&sr=8-1&keywords=male+to+female+jumper
@seamusmalta
@seamusmalta 9 років тому
Awesome, thanks.
@anasgopee7414
@anasgopee7414 9 років тому
hi ! , you should make a tutorial on how to get live video while controlling the robot.....
@sentdex
@sentdex 9 років тому
Already did that: ukposts.info/have/v-deo/gpqBp41kbnyGz5s.html. You can add the video feed in at any point in this series.
@anasgopee7414
@anasgopee7414 9 років тому
Thnx :)
@MrKingpimp22
@MrKingpimp22 9 років тому
"cut off the male part" ouch
@sentdex
@sentdex 9 років тому
You do what you gotta do in times of need.
@williamhall5893
@williamhall5893 6 років тому
Nothing wrong with hacking your parts/wires. Nothing should be sacred for a maker. Do what works, always.
@abhishekjain7065
@abhishekjain7065 8 років тому
how u connected the raspberry pi to your computer
@ayushagarwal7631
@ayushagarwal7631 2 роки тому
Does this work with the raspberry pi 4b?
@johnstreety642
@johnstreety642 6 років тому
Will you please give us a link for the raspberry pi power supply? I think it was called anchor 3000
@sentdex
@sentdex 6 років тому
This is exactly what I used: www.amazon.com/gp/product/B005X1Y7I2/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B005X1Y7I2&linkCode=as2&tag=pythonpr-20&linkId=MCJY6LAWSHUDHGBD Other parts/supplies can be found: pythonprogramming.net/raspberry-pi-car-supplies/?completed=/gpio-raspberry-pi-car-intro/
@johnstreety642
@johnstreety642 6 років тому
sentdex Thanks for replying. I realized it was basically a cell phone back up battery, after the fact. I am using your videos to teach my middle schoolers and I python and Raspberry Pi robotics.
@cybersauresrex5338
@cybersauresrex5338 9 років тому
I am in love with the raspberry pi, I was very smart when I was younger and bought a a Model B because it looked cool. Now it is 4 years old. I still remember when the Model A came out :D
@basheerkolathekkat821
@basheerkolathekkat821 5 років тому
Could you make a robot using raspberry pi 3
@haynesjr34
@haynesjr34 6 років тому
Hi, I hope your day is going well! I am very interested in learning about a line following robot. Not sure if you have done it but it would be great if you did! I am sponsoring a technology summer program for kids and I am sure they would love to do this! Could you possibly share your ideas, code, and project details! I would really appreciate it so much. The kids would be happy!
@travisl6654
@travisl6654 9 років тому
Does anyone know if i can use a very big external battery pack that has 2 usb outports to supply power to both the Pi and the Bridge/motor? I will have to get a USB to VCC GND converter but i really don't want to have to worry about 2 separate power supplies.
@ronaldmcdonald9939
@ronaldmcdonald9939 9 років тому
If its the correct voltage and has enough power (milli-amps) then it should be fine. I run mine off micro-usb phone/tablet chargers, though i prefer a tablet one. What i use is the charger from a Samsung Galaxy Tab 3 (5 volts, 2 amps) which is perfect, so if you can get something around that range (must be at 5 volts) then yeah.
@frillneckedlizard8529
@frillneckedlizard8529 8 років тому
nice blue snowball in the background
@frillneckedlizard8529
@frillneckedlizard8529 8 років тому
+emile i've got one too
@lomashsisodia1972
@lomashsisodia1972 5 років тому
can it work in arduino
@lorenzothapliyal6951
@lorenzothapliyal6951 9 років тому
In this series are you running the RPI headless?
@sentdex
@sentdex 9 років тому
Yes.
@lorenzothapliyal6951
@lorenzothapliyal6951 9 років тому
sentdex do you have a tutorial on how to do that?
@malihatabassum7138
@malihatabassum7138 5 років тому
whats the models of your raspberry pi?
@sentdex
@sentdex 9 років тому
Brandon Wunderle I put links in the description. I was able to find them on ebay as well at the time. Fairly popular cheap motor. Just search "raspberry pi motor" on ebay. Here's an example i just found: www.ebay.com/itm/Intelligent-Car-Gear-Motor-Robot-Gear-Motor-TT-Motor-for-Arduino-Raspberry-pi-/390806214459?pt=LH_DefaultDomain_0&hash=item5afddd973b
@verainsardana
@verainsardana 8 років тому
+sentdex ur noob
@sentdex
@sentdex 8 років тому
+verainsardana no doubt about that.
@rixus7238
@rixus7238 7 років тому
Can I use a single 9V battery?
@Anthony-ry8lo
@Anthony-ry8lo 9 років тому
Can you please tell me what the name of the battery pack you are using is called I can not seem to find witch video you talked about it in.
@sentdex
@sentdex 9 років тому
The kit I have came with the battery pack. That said, it is pretty standard. It just houses some AA batteries and has a pos and neg connection. You could probably just search for AA battery pack RC car or something like that to find some.
@Anthony-ry8lo
@Anthony-ry8lo 9 років тому
sentdex I miss understood, i thought you had a rechargeable pack. can you tell me where you got the kit? thank you.
@sentdex
@sentdex 9 років тому
anthonydangelo Ah, yeah I have one of those on this car as well. AA batteries power the motors, and the recharge-able pack is for the pi. That's an Ankur portable cellphone charger. Bought it on Amazon.
@sentdex
@sentdex 9 років тому
anthonydangelo Also, forgot to mention, the links to the car kit are in the description.
@Anthony-ry8lo
@Anthony-ry8lo 9 років тому
sentdex Thanks man, got it! best regards
@princeibrahim1
@princeibrahim1 7 років тому
+sentdex can you help me with my project ? I want to build self balancing robot using only raspberry pi without arduino...
@naturalcauses1695
@naturalcauses1695 4 роки тому
how do i add 4 or 6 motors??
@StoneyPlague101
@StoneyPlague101 9 років тому
What are you using that PiCluster for?
@sentdex
@sentdex 9 років тому
Algo trading bitcoin. Not so much for the processing as it is for the low power consumption and long lasting backup power as a result.
@anujasilva74
@anujasilva74 6 років тому
How. To. Install. GPIO
@GrabaPL
@GrabaPL 8 років тому
This battery pack - it has to be 6 pack, or I could use 8 pack? What I will have to change if I will use 8 pack?
@sentdex
@sentdex 8 років тому
+GrabaPL No difference.
@GrabaPL
@GrabaPL 8 років тому
+sentdex Great, thanks! Awesome YT channel, all best:)
@ZodiacZubeda21
@ZodiacZubeda21 9 років тому
If the raspberry pi has only two USB ports, and they are occupied by the keyboard and mouse, how do you use the dongle?
@sentdex
@sentdex 9 років тому
See my other comment to you. Eventually, if you want desktop, you will use XRDP to remote desktop in. Otherwise, you will use SSH. In either case, this leaves both USB ports open, which is where the edimax dongle goes in one.
@CamMoVlogs
@CamMoVlogs 9 років тому
How about the camera on car ? which one is good ?
@sentdex
@sentdex 9 років тому
Phúc Hưng Nguyễn We add one, and we end up using the Raspberry Pi camera module.
@fernandoberra5852
@fernandoberra5852 9 років тому
I was using my raspberry pi B+ with a 9V battery and about 6-7 hours and the motors started going slower, they doesn't have the same speed as before, I think is because it drained the battery, is that possible the 9V battery got drained so fast?, and what can I do to prevent that with other batteries? Thanks
@sentdex
@sentdex 9 років тому
Yes, that's most likely because you are lower on battery power. You can always try another 9v and see if there's a substantial difference. 6-7 hours on a single 9v isn't really out of the ordinary to be a max.
@fernandoberra5852
@fernandoberra5852 9 років тому
OK, thanks, I will try with another battery but I think I will get a rechargeables batteries for my RPi
@richardbaker5548
@richardbaker5548 9 років тому
we run from 6 x AA batteries in a holder pack producing 7.2V and the run time is much longer than we got from a 9V smoke alarm type battery
@Robots4Sale
@Robots4Sale 9 років тому
Fernando Berra 9 volt has low capacity. the AAA, AA, C and D are all 1.5volt but the bigger ones have more capacity.
@dabunnisher29
@dabunnisher29 Рік тому
The motors are very weak. Can anybody link motors like the ones in the video, but are a lot stronger? Thank you in advance.
@Robots4Sale
@Robots4Sale 9 років тому
want to help me make some bots?
@adrianjason13
@adrianjason13 7 років тому
Any good sites you guys recommend to buy an H-Bridge and other robots parts mentioned in this video?
@sangrasmey1053
@sangrasmey1053 9 років тому
Can u write down the components of this robot, because my english is not quite good?
@sentdex
@sentdex 9 років тому
Here is the list: pythonprogramming.net/raspberry-pi-car-supplies/
@sangrasmey1053
@sangrasmey1053 9 років тому
Thank bro!
@tronikcustoms9736
@tronikcustoms9736 9 років тому
Where is the coding for the raspberry pi ?
@RenzoIsHereYT
@RenzoIsHereYT 7 років тому
I wanna learn how to make AI using python so it can clean my room for me so my mom and dad can stop bothering me :(
@helloworld7313
@helloworld7313 6 років тому
haha good idea
@supermanboy1255
@supermanboy1255 6 років тому
AyToNiic I want to make a crab like robot that sorts things for scientific analysis.
@scaprod558
@scaprod558 5 років тому
Get a RadioShack Armatron ,put it on wheels and make it self-driving using a raspberry pi.
@seyyed6905
@seyyed6905 5 років тому
I Can Help You
@hiwotyirgu8099
@hiwotyirgu8099 8 років тому
You have a RASPBERRY PI SUPERCOMPUTER!!!???
@charliecurione1557
@charliecurione1557 8 років тому
can you use a rasberry pi 2?
@sentdex
@sentdex 8 років тому
+Chuck C Yes, the GPIO layout of the first pins is the same.
@basbomb2018
@basbomb2018 5 років тому
I'm surprised the battery pack didn't explode from the ragtag bunch of batteries
@thebrotaku7156
@thebrotaku7156 8 років тому
wouldn't it be cheaper to just take apart a cheapo rc car and take the motors and receivers and stuff?
@evanberry1732
@evanberry1732 8 років тому
yes
@tonytenbreock8546
@tonytenbreock8546 4 роки тому
good series in its time but raspberry pi 4 features built-in wi-fi and bluetooth. All pis seem to include it.At least revise the Notes about the video.
@bucketman5138
@bucketman5138 5 років тому
im watching this with my raspberry pi
@MinecraftEpicPlayer
@MinecraftEpicPlayer 8 років тому
import soul import self-awareness
@sentdex
@sentdex 8 років тому
MinecraftEpicPlayer import singularity
@MinecraftEpicPlayer
@MinecraftEpicPlayer 8 років тому
sentdex import paradox ruined it all
@Rohit-ce9ih
@Rohit-ce9ih 8 років тому
I don't understand the true and false part
@justswedish
@justswedish 4 роки тому
thanks man with corona
@solved5928
@solved5928 3 роки тому
Anyone Help?
@alangoyan3140
@alangoyan3140 9 років тому
ebay is an trolling site
@solved5928
@solved5928 3 роки тому
HELP
@abijo5052
@abijo5052 8 років тому
Male to male- NOT FEMALE TO FEMALE
@sentdex
@sentdex 8 років тому
+Rumbly Dragoon nowadays, the lines are so blurred. Might as well try to just find gender-neutral jumper wires and leave the politically correct-ness behind
Raspberry pi with Python for Robotics 2 - Motor Control
15:22
sentdex
Переглядів 170 тис.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Переглядів 3,2 млн
ВИРУСНЫЕ ВИДЕО / Мусорка 😂
00:34
Светлый Voiceover
Переглядів 7 млн
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Zach of All Trades
Переглядів 22 тис.
Raspberry Pi Robotics #1: GPIO Control
15:38
ExplainingComputers
Переглядів 845 тис.
Raspberry Pi Explained in 100 Seconds
2:08
Fireship
Переглядів 901 тис.
Raspberry Pi Robotics #3: Keyboard Control
23:05
ExplainingComputers
Переглядів 358 тис.
COOLEST INVENTIONS THAT WILL BLOW YOUR MIND
16:07
FuturisticTech
Переглядів 5 тис.
Remote Python Programming with VS Code and Rasberry Pi
10:40
M Heidenreich
Переглядів 6 тис.
МАМА ГЕРОЙ😍❤️ #shorts
0:46
Сасик
Переглядів 1,2 млн
Решила отменить свадьбу…💍
0:38
Надежда Бондарева
Переглядів 1,1 млн
рыбалка сазан
0:43
🔥РАЗВЛЕЧЕНИЯ 🔥У НАС РЫБАЛКА
Переглядів 5 млн
Это было легко! Оживили и Отдаем BMW владельцу!
1:40:26
ИЛЬДАР АВТО-ПОДБОР
Переглядів 3,3 млн
Abonnez-vous #calisthenic #fitness #workout
0:13
Ms1k2
Переглядів 6 млн
Їжа Закарпаття. Великий Гід.
1:0:29
Мiша Кацурiн
Переглядів 455 тис.