Тёмный
No video :(

Raspberry Pi For Beginners: LED Connections, Bread-boards, and Programming 

stillborn86
Подписаться 2,1 тыс.
Просмотров 151 тыс.
50% 1

After seeing a couple of posts on Reddit asking for the proper way to connect LEDs to a microcontroller/microcomputer via GPIO, I decided to make this video.
This should guide you through how a breadboard is setup, how connections work for the Raspberry Pi, how LEDs work (generally), and how to create and execute a small bit of code to tie all of this together.
For reference, a sample LED blink code can be found here: bitbucket.org/...
A collection of Python scripting can also be cloned from my GIT repository, here: bitbucket.org/...

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

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 241   
@jtecmiami
@jtecmiami 8 лет назад
fundamentals have never been explained better I'm a pure noob and i could watch this all day I am learning my first RPI and you make me believe i can build my own board Thank you
@stillborn86
@stillborn86 8 лет назад
+jtecmiami Oh, you can! You'd be surprised at what you know already... you'll be a pro in no time, trust me.
@easy-stuffs
@easy-stuffs 8 лет назад
MAN! YOU ARE THE BEST!! I have been searching for a good tutorial but never found anything with such detail explanation. YOU ARE THE BEST TEACHER!! EXPECTING MORE TUTORIALS LIKE THIS! Please do a favor for beginners like us :)
@stillborn86
@stillborn86 8 лет назад
+Rafique Mohammed Thank you. I am trying to put out more videos, and I actually have several filmed, just not edited... School has just sneaked up on me, and I don't have the time to edit things every day. But I promise I'll get several out this summer.
@easy-stuffs
@easy-stuffs 8 лет назад
+stillborn86 Thank you :)
@joeverzino672
@joeverzino672 7 лет назад
Your video is ideal for beginners, especially your treatise of the test circuit board. That could be a video on its own. If I had my choice I would have you show a 555 timer, a flip flop and a logical AND circuit combining these. Excellent work!!!!
@javierfelipe
@javierfelipe 8 лет назад
Great video, I have no knowledge what so ever on coding nor on GPIOs and breadboards and I had my Pi collecting dust because I couldn't find any tutorial that could explain me how to do some simple wiring. This is the best "for beginners" video. Thank you some much, now I can get my son and I more involved with the Pi.
@stillborn86
@stillborn86 8 лет назад
+Javier Castellanos No, thank you for viewing and commenting! I'm trying to post periodical videos, but work and school kind of have me tied up right now, and I'm churning out videos on a slower pace than I'd like to... but they're coming.
@1993bech
@1993bech 8 лет назад
+stillborn86 Hi, do u have or know a video with a totourial for the raspberry pi 3 b+? ive heard the pins aint the same as on the older raspberry's and im in school where i need to get atleast 1 light to light when i push a button but im on dead water at the moment..
@stillborn86
@stillborn86 8 лет назад
bech 1200 First, according to the Pi Foundation (www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/), the GPIO are the same with all current versions of the Pi. This means that the B+, A+, Pi2, and Pi3 all have the same GPIO. The only differences are with the original PiA and PiB because they have less pins... but those pins are actually the same as what's incorporated in the later versions. Secondly, I have a couple of sketches for lighting LEDs in my python repo, in the description of my videos. I have a couple of videos up for that, but if you need help, I'll be more than happy to help you out.
@1993bech
@1993bech 8 лет назад
stillborn86 Thanks for your reply, ill be checking out your videos this week and hopefully make it work :-) im aiming to get 3 buttons for 3 diffrent leds that should light whenever a certain button is pressed but i am still a newbie at this :-)
@stillborn86
@stillborn86 8 лет назад
bech 1200 Well, if you can give me the details, I'll do my best to help you out.
@TuanBachVan
@TuanBachVan 8 лет назад
This's the best video explain how the board and register works. Thank you.
@keshavarora666
@keshavarora666 8 лет назад
you have pure teaching skills bro!!
@stillborn86
@stillborn86 8 лет назад
Thank you, very much!
@cynthialee7437
@cynthialee7437 8 лет назад
Was just about to write that!
@fv17782
@fv17782 8 лет назад
Thank you for this. Its always a treat to hear and watch clear explanations on how stuff works. Great job. Subscribed!
@stillborn86
@stillborn86 8 лет назад
Thank you! Glad you enjoyed it.
@absmienk9369
@absmienk9369 7 лет назад
Well done stillborn86. Very nice and clear demo. This will certainly encourage beginners to start their own experiments.
@freakindividual
@freakindividual 7 лет назад
Thank you x 100 times for explaining GPIO & board Most videos explain how to do it but not why.
@Lazerius68
@Lazerius68 8 лет назад
I'm just getting into RasPi, and this Vid was a ton of help at the basics! Thanks!
@SuperSally666
@SuperSally666 6 лет назад
That was the best computing tutorial I've seen in a long time!
@troozl6-947
@troozl6-947 Год назад
The introduction was very helpful, thanks!
@rnicholson430
@rnicholson430 8 лет назад
Sweet video stillborn86. This really gets me more interested in the breadboard. Thanks for the knowledge.
@gauravkarya
@gauravkarya 6 лет назад
This was crisp and clear.
@ankurv2
@ankurv2 8 лет назад
Thank you! Am a new user of RPi and breadboards, you've answered everything for a quick ramp up.
@myutube6422
@myutube6422 5 лет назад
Thanks for sharing your scripts. JUST beginning and it's fun with your help.
@xrz1138
@xrz1138 4 года назад
Thank you for taking the time. Hello to Reddit.
@samsoulee
@samsoulee 9 лет назад
Best tutorial ever !!!! Short precise, clear . Thx a lot !
@BigT1me_77
@BigT1me_77 Год назад
Thanks for your easy to follow explanations
@cgcanada88
@cgcanada88 9 лет назад
Very useful vid, especially for getting started with breadboards! Excellent description and view! Would you consider upgrading to 720p? Things would look even better! Keep up the good work!
@stillborn86
@stillborn86 9 лет назад
I *have* thought about it, but as a broke college student, I don't really have a lot of money to sink into new camera equipment. Also, I've chosen to not monetize my videos, for the sake of the audience... so...
@PALOMNYK
@PALOMNYK 7 лет назад
thanks for the informative tutorial. It cleared up a few things that other tutorials have left out.
@Wizartar
@Wizartar 4 года назад
this a great intro video to the breadboards
@adrianagape8472
@adrianagape8472 Год назад
Man how you research that beginner as very fit with all of your voice pronunciation and video tutorial so hot....
@andrewjulius548
@andrewjulius548 7 лет назад
thanks very much, appreciate ur effort on teaching step by step, i'm beginner at electronic things and found this very helpful.
@scottfirman
@scottfirman 7 лет назад
Way cheaper than Tena controls for a preprogrammed lighting package for lighting models. I have been against those rip off companys that take advantage of people by offering a lighting system that is way overpriced,just to make leds flash. Now with the available technology and guys like you,anyone can program their own led system for way less than those crooks. Thankyou.
@brianolson9345
@brianolson9345 8 лет назад
Thanks Mr. Breadboard. Nice video!
@Spideyy2099
@Spideyy2099 7 лет назад
Thank you tons! You have help strengthen my grasp of Electronic engineering!
@dougjustice5804
@dougjustice5804 7 лет назад
What a great video. Now I'm hungry to learn more.
@corywandrey2896
@corywandrey2896 5 лет назад
Great video. simple and to the point. thank you for the basic education on this very informative. I will be sharing this with my son so we can work together building stuff just like this. Thank you for taking the time to make this.
@TheAfreitag
@TheAfreitag 5 лет назад
This is a really well put together video. Thank you!
@dolphpun
@dolphpun 7 лет назад
Many thanks. I am a little more confident now. I understood circuits, but haven't had any hands on.
@codyrap95
@codyrap95 8 лет назад
Awesome video man, i learnt a lot from this video. You really have teaching skills and you also made it look so simple. Thank you and keep doing videos like this.
@MrIpenguin12
@MrIpenguin12 8 лет назад
Fantastic video! I've had zero experience with wiring and electric stuff, and this was a fantastic start. I also liked how you went over the T-cobbler as well. The only very minor criticism I had was the python code. A better way of writing the code would be something like: pins = [11, 12, 13, 15] while True: x, y = random.sample(pins, 2) #selects two unique elements from the pins list randomly ... etc Now you don't ever have to worry about getting a 14, or getting the same element twice. Also, the readability is a little bit better. Anyways, fantastic video. I'm definitely gonna use this as I attempt to wire my first LEDs.
@stillborn86
@stillborn86 8 лет назад
+ReckoningReckoner I appreciate the help with the Python code. Honestly, I hate Python, and wish it would just go away. It's just the most volatile code I have ever seen, and that makes things difficult for its users... including Google. But I'm always looking for ways to improve my code, and I'll give your suggestions a shot.
@Nightrailer
@Nightrailer 7 лет назад
The red stripe on the ribbon cable indicates pin 1.
@jyhwang137
@jyhwang137 8 лет назад
best toothpick teacher i have ever seen. lol Great Video
@munozrick
@munozrick 9 лет назад
Excellent explanations. Thanks.
@ricardoalves7514
@ricardoalves7514 7 лет назад
Excellent video and a excellent tutorial for a beginner like me... Thank you :)
@bobtony6036
@bobtony6036 6 лет назад
can you explain further why the resistor is on cathode side? wouldn't power go through led first and burn it out?
@joebagazinski8074
@joebagazinski8074 7 лет назад
Great video. I didn't know how to hook up the ribbon and fried my first pi
@plouf1969
@plouf1969 5 лет назад
Out of curiosity, is there no way to only use one resistor instead of 4? I am thinking, instead of connecting the cathode of the leds with a resistor that goes to the ground, you could connect the cathodes to some other place, and then bring a resistor from there to the ground? Would that work?
@wonderwondertwins
@wonderwondertwins 4 года назад
thanks for the info, very interesting to see hwo this works.
@CXNLunix
@CXNLunix Год назад
TNice tutorials video really helped! Thank you ❤
@Maudio303
@Maudio303 8 лет назад
Very good learning video! Thx a lot. Now i have to find this bread-board with canakit in germany :D
@joshuanathan5328
@joshuanathan5328 8 лет назад
Awesome tut. Thank you
@crystalstudioswebdesign
@crystalstudioswebdesign 8 лет назад
This is clearest explanation i have found about breadboards and leds. Thanks. What is the equivalent of that TBoard for the Pi 3? and what 's it's official name so I can buy one in store?
@stillborn86
@stillborn86 8 лет назад
+The Confident Shopper I believe that the breakout boards are exactly the same between the B+, A+, Pi2, and Pi3. I don't own a Pi3, but I believe the GPIO is exactly the same layout. Because of this, you can buy any 40-pin breakout board, and it'll work for any of the above models. The only reason that the original PiA and PiB aren't included (and why I "broke them off" in the video) is because they have fewer pins. The layout for these fewer pins is the same for their analog on future Pi revisions, it's just that the future models added pins. So, again, as long as you get a 40-pin breakout board, you'll be fine.
@Sebi0043
@Sebi0043 7 лет назад
Very informative! I learned a lot, thank you so much!
@WavesofHealing-jz2ef
@WavesofHealing-jz2ef 8 лет назад
Super awesome dude! Thanks for dumming it down for me
@sanupamu
@sanupamu 7 лет назад
I haven't​ any WiFi dongle. how could I blink led?. I want to blink LED when pi is powered​ up. Means pi is powered up and led start blinking. What is the programming process??
@that1pothead
@that1pothead 8 лет назад
Great video, Just the intro I needed!
@stillborn86
@stillborn86 8 лет назад
+that1pothead Thank you! Glad it helped!
@gtpicommerce
@gtpicommerce 8 лет назад
thank you for explaining this so well
@thegamerdouble575
@thegamerdouble575 7 лет назад
I'm struggling a bit here because I don't have a tboard and I don't know how to make this work. Could you help me,
@SkunkHound0027
@SkunkHound0027 7 лет назад
Great video. Just Amazoned a tee extender. Is the current flow generally positive to negative or does it not matter if the resister is down stream? Subscribed!
@gotbletu
@gotbletu 8 лет назад
Now i can build an army of robots and rule the world
@easy-stuffs
@easy-stuffs 8 лет назад
+gotbletu same feeling :P
@derboss66
@derboss66 8 лет назад
Lol
@falnixvalencroth
@falnixvalencroth 6 лет назад
Dr. Steel... sounds like yo would like him
@josephkreifelsii6596
@josephkreifelsii6596 6 лет назад
Sorry. I will build anti-robots to defend the world against yours. The government will offer me a 85 million dollar contract.
@jsprite123
@jsprite123 6 лет назад
Skynet had to begin somewhere...
@pauledunn
@pauledunn 7 лет назад
Infinite amount of current, _in theory_. One of my Engineering Professors was OCD about that.
@stillborn86
@stillborn86 7 лет назад
And he's right... there's technically no such thing as infinite current. There's going to always be resistance in the wires, breadboard, and even the power source since it's not ideal. But the purpose of saying "infinite current" is to teach Ohm's Law and to get the point across that you will undoubtedly overamp your diode without an inline resistor.
@ticktock8751
@ticktock8751 4 года назад
Hi I like to know how i can get a LED to turn on when the Pi4 is on and fade in and out with PWM pin. and do this all the time when the Pi4 is on, (maybe 2 or 3 LEDs) and when i shut down the Pi4, the LED will turn off, so i know when the Pi4 has been shut down. I am setting up a VPN node in my home run on solar power and using a buck converter out put at 5.150v dc in to the Pi4 5v Pin 4 and Ground pin 6. with a 1 amp fuse, a 1 tb HDD on the USB 3.0 port. that has a 12 v power HUB.
@tanishq8940
@tanishq8940 6 лет назад
Thanks man very useful
@loloman2906
@loloman2906 7 лет назад
Very helpful tutorial, learned a lot! Thanks!
@Chicagoman36
@Chicagoman36 7 лет назад
I have a Rasberry Pi 3 just had a question on Board you maybe able to answer or someone else.. The Question is on the board says Run there's 2 empty Slots.. What are empty slots for an I add LED light or something there? Anyone know what those slots are for? can I add something in those 2 empty slots? I want add LED light on board if i can!! Thanks
@dibarimix
@dibarimix 7 лет назад
How can I turn on a led when connecting a USB device to raspberry pi 3?
@mindcontrol7648
@mindcontrol7648 Год назад
made it into an arp using the default soft envelope generator and a bunch or other weird stuff I didn’t even know existed. Called it pants
@nirzachar
@nirzachar 7 лет назад
excellent video! Many thanks!
@eleongo
@eleongo 8 лет назад
Hi, I just bought Raspberry Pi 3 and I'm absolutely new to this kind of thing. So my very first question is: Are Raspberry Pi 2 and 3 are completely the same when it comes to programming? I'm using it for my final year project and not sure whether advisable to use guide or tutorial that are published to internet during the time when Raspberry Pi 2 widely used.
@stillborn86
@stillborn86 8 лет назад
More or less, yes. I can't say that it's COMPLETELY the same, but for a beginner, yes it is. The Pi3 has a 64-bit processor and a built-in WiFi module... this can change some things. But the GPIO are all the same, and Python is the same, regardless if you're on a Pi2, Pi3, or something that's not an rPi.
@scyther1141
@scyther1141 8 лет назад
So I dont understand where the power is coming from to light the LEDs. I see that some GPIO pins are 5v and 3.3 v but none of them are connected. Unless the signal sent through the gpio pins is enough to light the led?
@stillborn86
@stillborn86 8 лет назад
Your assumption is correct. The "signal" that the GPIO pin sends to the LED is a +3.3V output. So, when you turn the GPIO "on," it sends +3.3V through the pin. And, when you turn the GPIO "off," it turns that voltage down to 0V. So, all you need to do is send that positive power to the positive end of the LED, and send the cathode of the LED to the ground, and you'll have a working LED in no time.
@HUMDUDE
@HUMDUDE 8 лет назад
Thanks for the video. Great explanation!
@SwissAmbush
@SwissAmbush 7 лет назад
If I SSH into the pi from say the mac terminal- how does it know what programming language I am using?
@AgeingBoyPsychic
@AgeingBoyPsychic 4 года назад
I seem to be the only person in the world whose vertical lanes are - + - + when in the correct orientation, I have to use it upside to not get confused! 🙃
@MrAaJames
@MrAaJames 8 лет назад
Thanks for the video!! Works great! Completely new to coding and the Raspberry Pi. Simple question: How do I stop the program and turn the LEDs off? When I exit the program, the LEDs lit at the moment i exit remain lit.
@MrAaJames
@MrAaJames 8 лет назад
+Aaron Rolen Sorry, let me clarify. I didn't run blink.py from the terminal. I ran it straight from Python on my Pi, so the ctrl + c advise in the comments below doesn't stop it. I'm sure there is a simple answer, I just have no idea what I'm doing.
@stillborn86
@stillborn86 8 лет назад
+Aaron Rolen Are you running it in the Python IDE or are you running it as a command? If you're running it in the Python IDE, you've either double-clicked the Python icon (upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/2000px-Python-logo-notext.svg.png) or you've typed `python` into the terminal by itself, and received something that looks like this: i.sli.mg/911FV1.png If you're running it as a command, you've typed something into your Terminal window, either on a computer connected to the Pi or a Terminal on the Pi itself, like I did in the video. If you're running the IDE, then the answer is that it cannot be done. The IDE runs commands one line at a time, and you're going to have to run `GPIO.cleanup()` in order to clean up your GPIO statuses. I can go into more detail about this, if you want... If you're running the program, like I did in my video, and you're using the code I provided a link to in the description, the GPIO should turn off automatically once the sketch is exited with `Cmd+C`.
@MrAaJames
@MrAaJames 8 лет назад
Thanks for the quick response. I was running on IDLE at the time, but I ended up figuring it out in both IDLE and command. To stop through IDLE, I just created another short program telling all GPIOs to stop. Then I started running it on command. I was having issues accessing the program through command because I wasn't in the correct directory. Once I figured that out, it was smooth sailing. Shows you how new I am. Anyways, thanks a lot! I subscribed. I look forward to future videos.
@stillborn86
@stillborn86 8 лет назад
Aaron Rolen Yeah, IDLE is the Python IDE, and it's highly recommended that IDLE not be used for anything except for debugging code. It's not coherent for actually running scripts as it works on a line-by-line basis. If you're going to be scripting for your rPi, you should be using the Terminal and a text editor (such as nano or vim -- vim being my personal favorite, although it has a pretty high learning curve). This assures that you have root (sudo) access and are running full sketches instead of individual lines of code, as you would through IDLE.
@nialljamesbuckley
@nialljamesbuckley 8 лет назад
outstanding video - thanks! very helpful
@kylehofmeister6906
@kylehofmeister6906 5 лет назад
Say I plug in 1 keyboard into the usb port, can I output the inputs from said keyboard out the remaining 3 usb ports???
@Alapozo
@Alapozo 8 лет назад
Nice vid!
@adamjensen6376
@adamjensen6376 7 лет назад
Hi there I have a question here maybe you can help me could you use the GPIO as a activity indicator
@larrypriest5789
@larrypriest5789 7 лет назад
red wire on ribbon is pin one
@FE59FE59
@FE59FE59 8 лет назад
16m still not bored :p awesome video, I learned much from this video, thank you!
@phoema80
@phoema80 9 лет назад
thank you very much for the video!!! you helped me a lot!
@proshaydavloger6762
@proshaydavloger6762 5 лет назад
Now I understood wat to do, i am not good English I use autocorrect
@NeiRauniSantos
@NeiRauniSantos 9 лет назад
Very informative video.. Thank you very much!
@JorgeAstah
@JorgeAstah 6 лет назад
thank you so much
@fishasses
@fishasses 6 лет назад
does it matter what GPIO i put the wire in?
@MrThebathtub
@MrThebathtub 8 лет назад
Hi, I'm a college student doing a senior mechanical engineering project where an electric dryer is being converted to use solar thermal heat. I need to monitor humidity, temperature, RPM, and time all simultaneously on a touchscreen display as well as control system on/off. Would the Raspberry Pi be a good choice? Or should I look to the Arduino instead? Ideally I'd like if whatever I used could calculate efficiency after all the data from the completed drying cycle was recorded. Controlling/monitoring everything on a smartphone would be even better. Thanks!
@stillborn86
@stillborn86 8 лет назад
+TastyPear You're asking a lot from such a small piece of hardware... there are companies that have a hard time doing all of that with their dedicated, custom hardware. If I had to say, without doing any formal calculations, the Pi would be better than the Arduino simply due to the limited memory in the Arduino. I have a video I'm currently editing where I use a 1-wire system for a temperature sensing unit. It's not perfect, but it's a pretty good ball park temperature that only needs one wire. I'm not sure if the sensor will survive the extreme temperatures of a dryer, but it's worth a look. Time would be a matter of how accurate you want that to be. Both the Pi and Arduino have a pretty decent system clock, but they're not perfect. If you want perfect time keeping, you'll need some sort of RTC module... meaning using up more GPIO pins. The system clock on the Pi is a LITTLE better than the system clock on the Arduino. I haven't played with humidity or RPM monitoring... but a touch screen is also going to use multiple GPIO. I foresee you running out of GPIO if you're not paying careful attention to what you're doing. __________ Finally, I've dabbled in solar power before, and you're going to need a LOT of solar power to run the wattage a standard household dryer is going to need. They require a TON of power to convert both into heat as well as raw mechanical energy... then you're talking about running a Pi, touchscreen, and multiple sensors... You're either going to need a BIG solar panel to even run it for a few minutes, or you're going to need a BIG battery that's been charging for a LONG time... again, just doing some quick mental math, no hard numbers here.
@MrThebathtub
@MrThebathtub 8 лет назад
+stillborn86 I just wrote out a lengthy reply and chrome crashed... Basically, I need something that can display a simple GUI. One that shows humidity, temperature, and a timer. I've taken an instrumentation course where we used DAQ cards that took readings at a hundredth of a second for thirty seconds. I was kind of hoping the Pi could take one reading every minute for a forty minute cycle, even if it couldn't process the data I imagine I could export it in simple DOS column format (excel)? The dryer is not powered by solar electricity, instead the heat source is done through solar panels preheating a tank of water that heats a water-air heat exchanger at the inlet of the drum. There is also a air-air heat exchanger which preheats the incoming air from the leaving air. There are regulations that prevent you from circulating your dryer air and this air-air heat exchanger works around that because the incoming and outgoing air dont come in contact. This was a concept myself and a group showed an annual savings of ~$200, done using cheap sheet metal and duct tape. Now since we have funding we're redoing the project using higher quality materials and there's a push to have more "2016" features. I wonder if an old iPad would work.
@stillborn86
@stillborn86 8 лет назад
TastyPear Oh, yeah! The Pi would absolutely work with a GUI interface, and even a touch platform. You may have to do a little personal coding to your desktop environment and/or program that's monitoring your processes... but it's entirely possible. It's literally a small Linux computer, so anything you can get running on a Linux box should be cross-compatible. An iPad would also work, but I would imagine would be more difficult to work with. Due to its closed architecture, writing the program you'd need would be more difficult than the open architecture of the Pi.
@cgcanada88
@cgcanada88 9 лет назад
Could you link the pinout schematic? Looks pretty good...
@stillborn86
@stillborn86 9 лет назад
I have a couple of them posted here: github.com/stillborn86/python
@neura2943
@neura2943 8 лет назад
On the bread-board. If I touch both + and - together would it short circuit?
@stillborn86
@stillborn86 8 лет назад
+Neura Essentially, yes. It'll cause an overamperage situation, which will burn out the incorporated pins, and potentially your entire CPU.
@rayallen144
@rayallen144 9 лет назад
Can you briefly explain why you don't use the 5v + pin, I have seen videos that do and some that don't. Would it work if you used one of the other ground or does it need to the 5v ground.
@stillborn86
@stillborn86 9 лет назад
This is a good question, and I was just about to post a video explaining GPIO pins... But, to answer your question here: I don't use a 5v+ pin? O_o I use pins 11, 12, 13, & 15... all of which output 5v+ when turned on (HIGH). I also use the ground rail, which is set next to the 5v+ rail. If that's what you're asking about, you can honestly use ANY ground since they tie into the same ground in the board. That's why, when you see that larger board, with the 555 timer, you can see four jumpers spanning the bottom of the board. That's tying all three of the v+ columns together, and tying all of the ground columns together. Again, you can use any of the grounds you want, I just used the column since it was easier and more accessible from where I was on the board.
@rayallen144
@rayallen144 9 лет назад
I see, look forward to the video, Thanks for the reply.
@abbottsplace8080
@abbottsplace8080 7 лет назад
thanks.....I liked that! more more! I would like to learn how to forward/reverse a small electric dc motor with speed control...just for a learning experience.
@stillborn86
@stillborn86 7 лет назад
Thank you, very much! I'm trying to get a playlist together, but it's taking a LONG time to edit... Well, DC motors usually only turn one way, with the rPi since you can only supply positive voltage. Be careful with motors, as you can overamp the circuit and fry your hardware. I'd recommend getting a motor shield, or a relay designed for DC motors, and doing a LOT of research into small circuitry.
@abbottsplace8080
@abbottsplace8080 7 лет назад
Thanks for replying! I thought all dc motors were reversable simply by reversing the polarity and yes use relays for sure. Living and learning here! You rock.
@stillborn86
@stillborn86 7 лет назад
No, they're not all reversible. Some are, some can be reprogrammed to reverse, some have to be "rewired" to reverse, and some will never be reversible. Usually, cheap DC motors are one-directional, only. And, as a beginner, the mid-range ones will be, too... I don't mean to offend you with that one, there's just a LOT that goes into manipulating those things. But I'm sure you'll get there, and you'll probably surpass me, eventually.
@abbottsplace8080
@abbottsplace8080 7 лет назад
Thanks for all of that. No offense taken. You seem to be a real great guy. :)
@zerocel
@zerocel 7 лет назад
Hi, nice tutorial. I am new to this, I went to buy some leds and resistors but don't know which ones ? the resistors 220 ohms but how much watts? and the Leds what size? Thanks
@stillborn86
@stillborn86 7 лет назад
Honestly, it matters, but not too much. The people at the Raspberry Pi Foundation were really smart about their SBC system, and made it adaptable for a wide range of hardware. But, if you want to whittle the mathematics down, you just need to use Ohm's Law: V=IR. We know that the rPi GPIO puts out 3.3V, and that gives you everything else you need. You can use whatever LED and resistor values you want, just remember that a diode usually has about a 0.7V drop across it. If you want to find what size resistor you need, grab an LED and find it's operating current... then divide the 3.3V by that current to find the necessary resistor: (3.3/i) = R If you have a resistor and want to find the proper current/LED for that resistor, you just do it the other way around... divide the 3.3V output by the resistor value to find the operating current for the LED you need to choose: (3.3/R) = i As an engineer, you're usually going to use the first scenario, have an LED with an operating current, then need to find the resistance value to match that LED.
@ochanamirja599
@ochanamirja599 6 лет назад
i need that GPIO pin conncetor
@vikasrb7753
@vikasrb7753 8 лет назад
Bro please tell me how to learn programming in Raspberry pi...I am good at c-programming...
@FixMyCamera
@FixMyCamera 8 лет назад
Any ideas on a all included starter kit. I know nothing about the Raspberry and would like to buy a kit that has everything to begin learning including Python programming, etc.. Would I need to learn Linux?
@stillborn86
@stillborn86 8 лет назад
It's good to have a basic understanding about how Linux works, and how to navigate around in Linux... especially if you're running in "headless" mode (without a monitor, over SSH). But, if you're using a keyboard, mouse, and monitor on your rPi, and you've installed Raspbian, you can use the GUI to become familiar with it the way you've become familiar with Windows/OSX. It's also a good idea to learn VIM, as it's a built-in text editor, for Linux command line, which many professionals will suggest. It offers some powerful tools, but there is a steep learning curve. If you can get those two basics down, you'll do just fine.
@MarinatedPasta
@MarinatedPasta 7 лет назад
can i plug an old computer mobo speaker straight into the pi and just pulse out to the positive pin or whatever to make it play noise? also Fantastic tutorial
@stillborn86
@stillborn86 7 лет назад
Marinated Pasta I'm not sure what a Mobo speaker is, but you should be able to plug speakers into the GPIO. The only thing you'll have to remember is that they're low voltage (3.3V) and low amperage, so you'll need some sort of transistor/MOSFET system if the speaker requires a lot of power.
@MarinatedPasta
@MarinatedPasta 7 лет назад
the speakers that plug into the front panel connectors and beep when the computer posts like this one: www.ebay.com/itm/like/252465865564?lpid=82&chn=ps&ul_noapp=true also ty so much for responding i got my pi3 for christmas and cant wait to play with it ^v^
@stillborn86
@stillborn86 7 лет назад
It looks like that'll run off of the rPi voltage, but I can't be 100% sure, given the lack of details in your link. I'd assume it's a low voltage/amperage device, and should be drivable by the rPi.
@MarinatedPasta
@MarinatedPasta 7 лет назад
thank you :)
@crawfordpatten4509
@crawfordpatten4509 7 лет назад
what kind of LED did you use?
@callumleask1053
@callumleask1053 8 лет назад
I'm completely new to these things, so I'm currently ordering some different components for my pi, including breadboard, wires, LEDs, e.t.c, but they are taking a LONG time to arrive, so in the meantime, is there anyway to make simple versions of the cables used in this video? (complete noon BTW)
@stillborn86
@stillborn86 8 лет назад
Any single-core copper wire can be used, as long as it's 22 AWG. Anything bigger, or smaller, will not fit into a breadboard well. Single-core wire would probably be more manageable for you, since you don't have the "needle" ends to crimp onto a multi-threaded core... but it'll be harder to manipulate. What I mean by that is, a threaded core will have multiple threads of several smaller gauge wires in the insulation, which makes the wire more flexible and easier to manipulate. A single-core wire doesn't have those "threads" (as it's a single-core of copper) and will be stiffer. The problem with having a multi-threaded core means that you need to crimp those ends on your wires to make them work with a breadboard. The advantage of a single-core wire is that you don't need those crimped ends.
@callumleask1053
@callumleask1053 8 лет назад
+stillborn86 Thanks dude, off to get some wire :D
@KevinxDoll
@KevinxDoll 8 лет назад
damn. such a well made video.
@josephkreifelsii6596
@josephkreifelsii6596 6 лет назад
The break out (T) board acts weird...
@manupadrino
@manupadrino 7 лет назад
How are you sending the software from your laptop to the raspberry?
@stillborn86
@stillborn86 7 лет назад
The Python sketch is in my GIT repo, and I just cloned it into my rPi. I then use SSH to connect to the rPi, and implement the sketch via my terminal. I am actually planning on making a video on this, but it's part of a larger playlist, building the rPi from the beginning.
@danielcabanas6343
@danielcabanas6343 7 лет назад
What if I do not have the USB internet thing? How do I connect my raspberry to my wifi?
@stillborn86
@stillborn86 7 лет назад
Well, if you have a rPi3, then you already have a WiFi module built-in with your system. Otherwise, you'll need to use the Ethernet port to connect to your router, directly. If you have an rPi that doesn't have an Ethernet port or the built-in WiFi module (Zero, A+, or A), then you're going to have to buy a USB WiFi dongle like I have in my video... otherwise, there's no way to connect it to the network without some soldering and wiring/hacking.
@danielcabanas6343
@danielcabanas6343 7 лет назад
stillborn86 I have a rP3 so that's not a problem anymore. Now, I have a question once I run the code it gives me an error: IndentationError : expected an indented block. How can I avoid this? Thanks for taking your time
@danielcabanas6343
@danielcabanas6343 7 лет назад
stillborn86 nevermind I found out what was the error. Once again, thanks for this video it's really helpful. :)
@paparoach7921
@paparoach7921 9 лет назад
Nice job...
@stillborn86
@stillborn86 9 лет назад
Thanks, man. I feel like I just *touched* on many topics without REALLY explaining any of them... I kind of want to make another video where I delve into each aspect a little deeper with better explanation.
@Spideyy2099
@Spideyy2099 7 лет назад
What style of Linux do you use for your PI? Is it text based only?
@stillborn86
@stillborn86 7 лет назад
Currently, I am using Arch on my rPi's, and yes, I keep it in the command line, only. The rPi isn't powerful enough to run a GUI while doing what I want to do with it, and SSH doesn't play well with an X11 server. So, in short: yes, I'm using text-based only, with Arch Linux... but it doesn't really matter which distro you're using, or how you interface with the rPi, as long as you can work with it, and learn from it.
@Imsatyanarayana
@Imsatyanarayana 8 лет назад
Explanation is super. You entered commands in terminal right, is it, in raspian OS ? Can you please explain how to connect HDMI to HDMI cable to my laptop ?? How to dump the program ?
@stillborn86
@stillborn86 8 лет назад
You cannot connect the HDMI on the rPi to the HDMI on your laptop. They're both output-only, and it will not work. There are multiple ways of connecting to your rPi, and I'm in the process of making a video series, encompassing several different options...
@Imsatyanarayana
@Imsatyanarayana 8 лет назад
+stillborn86 Thank you very much for your quick reply. Request :Please make it as soon as possible.
@stillborn86
@stillborn86 8 лет назад
Satyanarayana Dhangeti I'm trying, there's just so many options that it's easiest to make them into multiple videos. That, plus being sick, and school starting back up has slowed me down, considerably.
@khizargaming5809
@khizargaming5809 5 лет назад
how are you using raspberry pi on ur laptop plz someone reply plz plz plz thank you
@stillborn86
@stillborn86 5 лет назад
It's been a while, but I believe I'm using SSH to connect to it over my local network.
@nikolai157
@nikolai157 Год назад
I want to start making soft as a hobby , but everytNice tutorialng is so overwhelming and I still feel lost when attempting to make soft.
@farhadnoori8546
@farhadnoori8546 9 лет назад
nice explanation
@stillborn86
@stillborn86 9 лет назад
+Farhad Noori Thank you! I know that getting started was the hardest part for me, and if I can make that easier for people, why not, right?
@Tudorgeable
@Tudorgeable 8 лет назад
+stillborn86 I love you for this! I hope you can continue to make higher quality (audio-wise) videos on RPi.
@stillborn86
@stillborn86 8 лет назад
Tudorgeable I wish I could... but I record everything on my phone, as it's the only thing I can afford as a student. I'm looking into getting a better recording setup, but it's all so expensive, and I don't monetize my videos.
@Tudorgeable
@Tudorgeable 8 лет назад
stillborn86 Considering many people use adblock, ads wouldn't be an inconvenience to most, and since you're a poor student, why not monetize? Everybody does it and your content is actually useful (most let's players just monetize terrible effortless thoughtless content in my opinion, why not balance it out?)
@stillborn86
@stillborn86 8 лет назад
Tudorgeable Eh... I've always been of the mindset that I shouldn't monetize something which everyone should freely have. Most people, when they come to my videos, are already frustrated and distracted/confused. The last thing they need is an ad for the next Fantastic4 movie distracting them, or taking up their time. Also, I don't get enough views to really make a difference. I don't think it would benefit me enough, and it would ultimately inconvenience others... and that's not what I'm about. I want to help people, not inconvenience them... even if it's only a small percentage who don't use ad blockers.
Далее
Fun with Transistors
24:33
Просмотров 208 тыс.
The Petabyte Pi Project
22:27
Просмотров 2,2 млн
Blinking LED Raspberry Pi Tutorial
12:32
Просмотров 26 тыс.
Control ANY COMPUTER with these Pi KVMs!
17:46
Просмотров 819 тыс.
Intro to Raspberry Pi GPIO
17:48
Просмотров 78 тыс.
Raspberry Pi 5: The Game Changer? Discover What's New!
14:01
Hacking a weird TV censoring device
20:59
Просмотров 3 млн
Your USB-C Cable probably SUCKS! Sooo is that Bad?
10:54