What is the purpose of those to lines: signal(SIGTERM, safe_exit).. ?
@m.heidenreichДень тому
This code handles safe program shutdown procedures, where GPIO ports are restored to default. I explain the why and how in a dedicated video: ukposts.info/have/v-deo/fKhoppqpqICpyKc.html
@h.linnea39222 дні тому
I’m just looking for a simple tutorial where you talk about connecting jumper wires in the first place. I’m trying to get my 12 year old daughter into coding and programming. We keep buying extra stuff because we don’t have what we need. Yikes !
@m.heidenreichДень тому
Have a look at this video: ukposts.info/have/v-deo/b36rlpCYj2t-onU.html I demonstrate there how to connect LEDs to Raspberry Pi GPIO. As far as electronics components go, I recommend Freenove kits on Amazon.
@ravenBXNY10 днів тому
Thank you for sharing this. How would I write the script to blink LED1 5 times, then LED2 3 times using GPIOZERO?
@m.heidenreich6 днів тому
LED blink method has an "n" parameter, allowing you to specify how many times to blink instead of infinite: gpiozero.readthedocs.io/en/stable/api_output.html#led
@mrg3dit200212 днів тому
thanks for the video, got me up and running!
@attilalenart86522 дні тому
How to connect the raspberry pi to the PC. Ethernet, USB, wireless?
@m.heidenreich22 дні тому
Wi-Fi connection is usually the way to go and I have a tutorial for that: ukposts.info/have/v-deo/iZqEomlqoZirp4E.html
@TooSlowTube25 днів тому
There ought to be a current limiting resistor, in case you accidentally set the pin as an output.
@m.heidenreich25 днів тому
I disagree. Adding unnecessary resistors complicates the circuit and does not eliminate other countless mistakes you can make.
@TooSlowTube25 днів тому
The problem is you are not limiting the current through the pin if it's accidentally set as an output. I explained, more but it just got deleted by YT.
@m.heidenreich25 днів тому
You can also accidentally connect 5V to GPIO or short 3.3V to GND etc. There is always an element of damage risk when you work with Pi headers directly. My suggestion is to keep circuits as simple as possible.
@TooSlowTubeМісяць тому
Thanks. What's the process to download wiringPi on a PC then copy it to the Pi's microSD card to install it, instead of having the Pi online?
@m.heidenreichМісяць тому
Download the latest pre-built binary, transfer to your Pi using a USB memory stick, unzip and install: github.com/WiringPi/WiringPi
@johnvincentjimar4157Місяць тому
Thank you!
@milanvoska8599Місяць тому
When I start the program it says: from rpi_lcd import LCD() ^ SyntaxError: invalid syntax Does anyone know why 😢😢
@m.heidenreichМісяць тому
Take out the parentheses
@speakertoanimalsМісяць тому
Another great video. Thank you. I've worked thru (and learned a lot from) your LCD1602, gpiozero, 3-pin button, and HC-SR04 vids -- both on the electronics side, and from your excellent python code.
@ton04Місяць тому
What if i connected the wrong way into my rasbarry pi by mistake, is it over for me? Is my rasbarry pi dameged or it’s less likely ?
@m.heidenreichМісяць тому
I assume that you are referring to reversing the ribbon on one side. This by itself will not damage the Pi until you build your circuit. Generally, damage occurs when 3.3V (or a GPIO port set to OUT mode) is shorted to GND, or if you short GND with 3.3V straight up. Also, you can cause damage by connecting 5V to any other pins.
@Compuscience-Python-Prog-ExpsМісяць тому
I don't know if you do remember me. But you were my very first Rasp Pi teachers on here, when I first got the Pi 4. I hope you can remember me. If you ever see what I did in three short years. It's because of you and the way you explained things in the way that you did. I soaked it right up. Please see what you had taught me. Thank you, I'm pretty sure you will thank yourself. From just one of your followers. Joe
@essamkhattab2156Місяць тому
Fantastic playlist! Keep up the great work-I'm eagerly awaiting the next advanced playlist! Thank you!
@TheSupertecnology2 місяці тому
I use OctoPi distribution in my RP4b. This is e x a c t l y the tutorial an explanations I've been looking for like a week. Not only from the security standpoint of being able to add a new network with an encrypted passkey, but taking into consideration countermeasures if anything went south. Thanks so much for such a simple yet insightful explanation and step by step guide. Really can't mess it up, and I'm a complete novice when it comes to Debian and Linux in general.
@jordanjung5502 місяці тому
Thank you for your video. When I try to download the lcd package, it keeps retrying but in the end it doesn't download. I have i2c enabled. What should I do if I want to use the rip_lcd library?
@m.heidenreich2 місяці тому
Make sure there are no typos in your command. It may also be a temporary network issue, which could be fixed by a reboot.
@davidleckie24312 місяці тому
WiringPi V3.0.1 has just been released with support foir the RPi 5
@m.heidenreich2 місяці тому
Great news!
@Vaios19812 місяці тому
thank you sir
@drawingsinmixedmedia51762 місяці тому
This is phenomenal! Great Instructional!🎉🎉🎉
@DariushTasdighi2 місяці тому
Perfect
@ayenewyihune2 місяці тому
Helpful, thanks
@carbonide12902 місяці тому
your videos is the best explanation for this thank you
@256k_2 місяці тому
sadly wiringPi no longer exists. the site is dead
@m.heidenreich2 місяці тому
The project has been picked up again and has been updated to work with Raspberry Pi 5.
@hardwireHD223 місяці тому
Would this work on a 20 x 4 display?
@m.heidenreich2 місяці тому
It all depends on the protocol used by the display - try it if yours uses I2C.
@hansratzingerselbstandiger97863 місяці тому
Great explained! Thank you so much! Even the SSH issue perfectly and easy explained!
@Steve1d3 місяці тому
Thanks
@hydroturd3 місяці тому
I'm having an issue installing smbus which rpi_lcd depends on : "legacy-install-failure"
@m.heidenreich2 місяці тому
Have you tried adding '--break-system-packages' to your pip3 install command? Current Raspberry Pi OS version changed how Python packages are handled, so this is a workaround to install Python packages the "old way"
@vitorpolovanick3 місяці тому
I keep getting Permission Denied, even though my password is correct.😡I'll try reinstalling the image
@nb82803 місяці тому
As this code is in its own module, any constants (led1, led2) should be declared ahead of a function where they're used (go_blink). This makes understanding scope a little easier for beginners, IMO. My only beef -- thanks for the tutorial!
@igoutta3 місяці тому
Thank you so much, just that global you put it there, really really kills ,e/
@batchrocketproject47203 місяці тому
Thanks. This is the best walk-through of headless setup I've seen. I particularly appreciate the points of caution you raise along the way, without tortuous digressions. 💯
@mariaviklund45463 місяці тому
Excellent intoduction =) I just ordered a T-cobbler and i'm very excited to learn Python =)
@JZHarrison4 місяці тому
Best help for the new network settings that I have found anywhere - brilliant
@definitesquare4 місяці тому
Great video!!! Thanks a lot
@kylemartinez31394 місяці тому
Thanks for the heads up. I’m gonna be diving into pi engineering and development. Coming from internet security & programming
@user-il2ih9bm7s5 місяців тому
Such a nicely explained video. thank you sir. for the feature part I have currently added the speed increase as snake eats the food but there more speed moving in y-axis compared to x-axis, I know that this due to rectangular text box. The Y dimension of box is greater so from our perspective snake looks faster but is is moving 1 box unit as X direction. Can you share some idea how to control the speed in Y direction.
@m.heidenreich5 місяців тому
This is the charm of the game. Making constant speed across both axes would be very difficult, since at any given time different parts of the snake can be moving in multiple directions. Also handling turns would be very tricky, especially in food locations. I am glad you enjoyed the tutorial!
@suelengiordani30685 місяців тому
this playlist saved my research. Thank you.
@kayriexii5 місяців тому
thank you for the video ! But i cant ping or access raspberrypi.local. but i can access via raspi local ip address. meaning that hostname doesnt link with the ip. How should I do?
@m.heidenreich5 місяців тому
This is typically a setting issue with your PC. I suggest searching the Web for a solution specific to your operating system.
@HungNguyen-gl2xt5 місяців тому
I'm concerned that SDA and SCL can only handle 3,3V signal but the LCD operation is 5V, so it will return the signal back with 5V. Thus, it may damage your raspberry Pi.
@m.heidenreich5 місяців тому
In this scenario Raspberry Pi is the controller and it operates the bus at 3.3V. The display is only a receiver and it does not return any signal to the Pi. The setup works because this particular LCD happens to be compatible with a 3.3V control signal.
@fondueeundof33515 місяців тому
So much substance in such a short video!!
@SciFiChatterMike5 місяців тому
You know that's exactly what I thought but I couldn't get it to work right you made it possible so I thanks it makes a lot more sense
@MrKbtor26 місяців тому
I kinda figured out a lot of what you said on my own but I know this will help someone else starting out who finds this. It would've helped me. Did pick up a few good tips and confirmations. Thanks for this video. ❤
@A_zhuo6216 місяців тому
Very clear instructional video
@tumbley15576 місяців тому
if i installed the full raspberry pi OS with desktop and UI, will i need to do any extra steps or is it the same thing? and what if i need to use the raspberry pi outside my home, how can i connect it to my laptop then? thanks for the tutorial
@m.heidenreich6 місяців тому
Installation procedure is the same for graphical version of the OS. You can configure your Pi with multiple Wi-Fi networks afterwards. If you are a Windows user you can use your laptop's mobile hotspot with your Pi.
@shecterelectric4326 місяців тому
Best explained videos Ive seen on raspberry topics. Thank you very much mate.
@m.heidenreich6 місяців тому
Wow, thanks!
@jdiggz79236 місяців тому
This actually got me unstuck. Thank you!
@sycake72997 місяців тому
nobody leave a comment. But i am so thankful for you tutorial
@m.heidenreich7 місяців тому
Thank you! I am glad you found it helpful!
@biancafioretti99427 місяців тому
I've been facing problems with my project for weeks and your video solved it in seconds! If I want to use the same button on multiple screens to activate different functions, would I get the GPIO conflict error like what happens with the RPi.GPIO library?
@m.heidenreich7 місяців тому
You should not have conflicts with gpiozero as long as you implement/use your buttons correctly. Unfortunately RPi.GPIO makes button usage very difficult and this is why I do not recommend it.
@tjeanneret7 місяців тому
Thank you a lot, you made my day ! I am very happy to see the Hello message on my tiny display, this is the first time that my Raspberry gets out of its silicon ;-D Your explanations are clear, precise and concise. Perfect.