Linux  Filename Substitution Basics
15:55
Linux Filenames Explained
13:50
2 роки тому
КОМЕНТАРІ
@blacksky1974
@blacksky1974 2 дні тому
What is the purpose of those to lines: signal(SIGTERM, safe_exit).. ?
@m.heidenreich
@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.linnea3922
@h.linnea3922 2 дні тому
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
@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.
@ravenBXNY
@ravenBXNY 10 днів тому
Thank you for sharing this. How would I write the script to blink LED1 5 times, then LED2 3 times using GPIOZERO?
@m.heidenreich
@m.heidenreich 6 днів тому
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
@mrg3dit2002
@mrg3dit2002 12 днів тому
thanks for the video, got me up and running!
@attilalenart865
@attilalenart865 22 дні тому
How to connect the raspberry pi to the PC. Ethernet, USB, wireless?
@m.heidenreich
@m.heidenreich 22 дні тому
Wi-Fi connection is usually the way to go and I have a tutorial for that: ukposts.info/have/v-deo/iZqEomlqoZirp4E.html
@TooSlowTube
@TooSlowTube 25 днів тому
There ought to be a current limiting resistor, in case you accidentally set the pin as an output.
@m.heidenreich
@m.heidenreich 25 днів тому
I disagree. Adding unnecessary resistors complicates the circuit and does not eliminate other countless mistakes you can make.
@TooSlowTube
@TooSlowTube 25 днів тому
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.heidenreich
@m.heidenreich 25 днів тому
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
@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
@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
@johnvincentjimar4157 Місяць тому
Thank you!
@milanvoska8599
@milanvoska8599 Місяць тому
When I start the program it says: from rpi_lcd import LCD() ^ SyntaxError: invalid syntax Does anyone know why 😢😢
@m.heidenreich
@m.heidenreich Місяць тому
Take out the parentheses
@speakertoanimals
@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
@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
@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
@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
@essamkhattab2156 Місяць тому
Fantastic playlist! Keep up the great work-I'm eagerly awaiting the next advanced playlist! Thank you!
@TheSupertecnology
@TheSupertecnology 2 місяці тому
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.
@jordanjung550
@jordanjung550 2 місяці тому
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.heidenreich
@m.heidenreich 2 місяці тому
Make sure there are no typos in your command. It may also be a temporary network issue, which could be fixed by a reboot.
@davidleckie2431
@davidleckie2431 2 місяці тому
WiringPi V3.0.1 has just been released with support foir the RPi 5
@m.heidenreich
@m.heidenreich 2 місяці тому
Great news!
@Vaios1981
@Vaios1981 2 місяці тому
thank you sir
@drawingsinmixedmedia5176
@drawingsinmixedmedia5176 2 місяці тому
This is phenomenal! Great Instructional!🎉🎉🎉
@DariushTasdighi
@DariushTasdighi 2 місяці тому
Perfect
@ayenewyihune
@ayenewyihune 2 місяці тому
Helpful, thanks
@carbonide1290
@carbonide1290 2 місяці тому
your videos is the best explanation for this thank you
@256k_
@256k_ 2 місяці тому
sadly wiringPi no longer exists. the site is dead
@m.heidenreich
@m.heidenreich 2 місяці тому
The project has been picked up again and has been updated to work with Raspberry Pi 5.
@hardwireHD22
@hardwireHD22 3 місяці тому
Would this work on a 20 x 4 display?
@m.heidenreich
@m.heidenreich 2 місяці тому
It all depends on the protocol used by the display - try it if yours uses I2C.
@hansratzingerselbstandiger9786
@hansratzingerselbstandiger9786 3 місяці тому
Great explained! Thank you so much! Even the SSH issue perfectly and easy explained!
@Steve1d
@Steve1d 3 місяці тому
Thanks
@hydroturd
@hydroturd 3 місяці тому
I'm having an issue installing smbus which rpi_lcd depends on : "legacy-install-failure"
@m.heidenreich
@m.heidenreich 2 місяці тому
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"
@vitorpolovanick
@vitorpolovanick 3 місяці тому
I keep getting Permission Denied, even though my password is correct.😡I'll try reinstalling the image
@nb8280
@nb8280 3 місяці тому
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!
@igoutta
@igoutta 3 місяці тому
Thank you so much, just that global you put it there, really really kills ,e/
@batchrocketproject4720
@batchrocketproject4720 3 місяці тому
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. 💯
@mariaviklund4546
@mariaviklund4546 3 місяці тому
Excellent intoduction =) I just ordered a T-cobbler and i'm very excited to learn Python =)
@JZHarrison
@JZHarrison 4 місяці тому
Best help for the new network settings that I have found anywhere - brilliant
@definitesquare
@definitesquare 4 місяці тому
Great video!!! Thanks a lot
@kylemartinez3139
@kylemartinez3139 4 місяці тому
Thanks for the heads up. I’m gonna be diving into pi engineering and development. Coming from internet security & programming
@user-il2ih9bm7s
@user-il2ih9bm7s 5 місяців тому
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.heidenreich
@m.heidenreich 5 місяців тому
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!
@suelengiordani3068
@suelengiordani3068 5 місяців тому
this playlist saved my research. Thank you.
@kayriexii
@kayriexii 5 місяців тому
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.heidenreich
@m.heidenreich 5 місяців тому
This is typically a setting issue with your PC. I suggest searching the Web for a solution specific to your operating system.
@HungNguyen-gl2xt
@HungNguyen-gl2xt 5 місяців тому
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.heidenreich
@m.heidenreich 5 місяців тому
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.
@fondueeundof3351
@fondueeundof3351 5 місяців тому
So much substance in such a short video!!
@SciFiChatterMike
@SciFiChatterMike 5 місяців тому
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
@MrKbtor2
@MrKbtor2 6 місяців тому
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_zhuo621
@A_zhuo621 6 місяців тому
Very clear instructional video
@tumbley1557
@tumbley1557 6 місяців тому
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.heidenreich
@m.heidenreich 6 місяців тому
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.
@shecterelectric432
@shecterelectric432 6 місяців тому
Best explained videos Ive seen on raspberry topics. Thank you very much mate.
@m.heidenreich
@m.heidenreich 6 місяців тому
Wow, thanks!
@jdiggz7923
@jdiggz7923 6 місяців тому
This actually got me unstuck. Thank you!
@sycake7299
@sycake7299 7 місяців тому
nobody leave a comment. But i am so thankful for you tutorial
@m.heidenreich
@m.heidenreich 7 місяців тому
Thank you! I am glad you found it helpful!
@biancafioretti9942
@biancafioretti9942 7 місяців тому
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.heidenreich
@m.heidenreich 7 місяців тому
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.
@tjeanneret
@tjeanneret 7 місяців тому
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.
@matt-on5yl
@matt-on5yl 7 місяців тому
single handedly teaching me headless computing <3