Тёмный
M Heidenreich
M Heidenreich
M Heidenreich
Подписаться
Welcome to my channel!

I have a broad interest in Information Technology and I have been teaching it at the post-secondary level in Toronto, Canada for over 20 years. My current focus is around Raspberry Pi and Python programming and this is what my channel is mainly devoted to.

New videos will be posted regularly. Please subscribe as I grow my new channel. Your comments and suggestions are very valuable to me as I learn how to make it better.Thanks!
Linux  Filename Substitution Basics
15:55
2 года назад
Linux Filenames Explained
13:50
2 года назад
Комментарии
@510109
@510109 2 дня назад
Complements on a VERY good tutorial - sincerely appreciated. I consider your presentation to be amongst the BEST I have watched and as a result have subscribed to your channel. Keep up the good work and looking forward to viewing any other of your tutorials relevant to my needs in the future.
@tumieengineering5908
@tumieengineering5908 23 дня назад
This is awesome! The new library is simple and easy to use. Love the event features. I have a problem with my button triggering multiple times with one press randomly. Is there a way to ignore multiple button presses within a specified time?
@m.heidenreich
@m.heidenreich 9 дней назад
Button class has a "bounce_time" property - set it to an appropriate value to counteract bounce.
@BallyBoy95
@BallyBoy95 Месяц назад
You taught it perfectly, used this as a refresher. Thanks, I seriously appreciate it.
@jayweaver5574
@jayweaver5574 Месяц назад
Very nice tutorial. Well done!
@gwzapo
@gwzapo Месяц назад
I realize this post is months after the vid was released. I have a new pi 5. Is the red led supposed to stay on where there is power? I'm using the ac plugin with USB c. The USB c connection to the pi is lousy. It doesn't take much to come loose. However when I power up, the red light comes on, then goes off. The green light does flash and then stays on steady. I can ping the IP address of the device as shown in my home wifi router app. I cannot ping the hostname, which is default...I cannot successfully run putty or run the ssh command either. Do I have a faulty pi?
@m.heidenreich
@m.heidenreich 26 дней назад
Flashing power LED usually means insufficient power. Make sure to use a certified Raspberry Pi power supply, which will provide 5.1V at 2A+.
@SteveRodriguez-s3h
@SteveRodriguez-s3h 2 месяца назад
I'm a bit surprised that the Raspberry Pi manufactures made it possible to connect the ribbon incorrectly even though the ribbon connector has the key notch. But anyway, this was good info. For those of you who care, and I know THAT includes ALL of you ;) : notice that the ribbon has a red wire or stripe at one end (sometimes a different color) , THAT is pin #1 of the connector and is important to know...
@m.heidenreich
@m.heidenreich 26 дней назад
Good point but not all ribbons have this red stripe or they may be entirely rainbow-coloured. It is also possible to make the connection backwards on both ends and it will work, but the red stripe will be pin #40 then.
@victormironescu
@victormironescu 2 месяца назад
Thank you, best explained videos!
@viral.vr2
@viral.vr2 2 месяца назад
amazing 🙌
@fabersoaks4975
@fabersoaks4975 2 месяца назад
Nice, explanation...
@rusikarhireev
@rusikarhireev 2 месяца назад
Amazing tutorial ! Thank you so much !
@krstft
@krstft 3 месяца назад
Great video! Thank you
@MrKbtor2
@MrKbtor2 3 месяца назад
very useful, thanks!
@leti324
@leti324 4 месяца назад
It works perfectly! :D Thank you!
@speakertoanimals
@speakertoanimals 4 месяца назад
I really like (and I've used) your breadboard-placement suggestions. I view your advice to be "structured wiring optimization." Your wirings do so much to avoid "spaghetti wiring" (that's a coding callback to the goto days.) Thank you.
@kosielemmer
@kosielemmer 4 месяца назад
Lovely
@jorisdenengenieur1239
@jorisdenengenieur1239 4 месяца назад
High mr Heidenreich, do you plan to make this tutorial in Python in the near future?
@m.heidenreich
@m.heidenreich 4 месяца назад
That tutorial was posted a while ago: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YICzRCAY73Y.html
@oshadhaedirisinghe1455
@oshadhaedirisinghe1455 5 месяцев назад
Thank you
@blacksky1974
@blacksky1974 5 месяцев назад
What is the purpose of those to lines: signal(SIGTERM, safe_exit).. ?
@m.heidenreich
@m.heidenreich 5 месяцев назад
This code handles safe program shutdown procedures, where GPIO ports are restored to default. I explain the why and how in a dedicated video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Dx7rdrqJxgs.html
@HillaryLinnea
@HillaryLinnea 5 месяцев назад
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 5 месяцев назад
Have a look at this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7NzbZaX5MAA.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 5 месяцев назад
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 5 месяцев назад
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 5 месяцев назад
thanks for the video, got me up and running!
@attilalenart865
@attilalenart865 5 месяцев назад
How to connect the raspberry pi to the PC. Ethernet, USB, wireless?
@m.heidenreich
@m.heidenreich 5 месяцев назад
Wi-Fi connection is usually the way to go and I have a tutorial for that: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QjSn33jbzFM.html
@TooSlowTube
@TooSlowTube 6 месяцев назад
There ought to be a current limiting resistor, in case you accidentally set the pin as an output.
@m.heidenreich
@m.heidenreich 6 месяцев назад
I disagree. Adding unnecessary resistors complicates the circuit and does not eliminate other countless mistakes you can make.
@TooSlowTube
@TooSlowTube 6 месяцев назад
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 6 месяцев назад
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 6 месяцев назад
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 6 месяцев назад
Download the latest pre-built binary, transfer to your Pi using a USB memory stick, unzip and install: github.com/WiringPi/WiringPi
@johnvincentjimar4157
@johnvincentjimar4157 6 месяцев назад
Thank you!
@milanvoska8599
@milanvoska8599 6 месяцев назад
When I start the program it says: from rpi_lcd import LCD() ^ SyntaxError: invalid syntax Does anyone know why 😢😢
@m.heidenreich
@m.heidenreich 6 месяцев назад
Take out the parentheses
@speakertoanimals
@speakertoanimals 6 месяцев назад
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.
@Zz00__t
@Zz00__t 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
Fantastic playlist! Keep up the great work-I'm eagerly awaiting the next advanced playlist! Thank you!
@TheSupertecnology
@TheSupertecnology 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
WiringPi V3.0.1 has just been released with support foir the RPi 5
@m.heidenreich
@m.heidenreich 7 месяцев назад
Great news!
@Vaios1981
@Vaios1981 7 месяцев назад
thank you sir
@drawingsinmixedmedia5176
@drawingsinmixedmedia5176 7 месяцев назад
This is phenomenal! Great Instructional!🎉🎉🎉
@DariushTasdighi
@DariushTasdighi 7 месяцев назад
Perfect
@ayenewyihune
@ayenewyihune 7 месяцев назад
Helpful, thanks
@carbonide1290
@carbonide1290 7 месяцев назад
your videos is the best explanation for this thank you
@256k_
@256k_ 8 месяцев назад
sadly wiringPi no longer exists. the site is dead
@m.heidenreich
@m.heidenreich 7 месяцев назад
The project has been picked up again and has been updated to work with Raspberry Pi 5.
@hardwireHD22
@hardwireHD22 8 месяцев назад
Would this work on a 20 x 4 display?
@m.heidenreich
@m.heidenreich 8 месяцев назад
It all depends on the protocol used by the display - try it if yours uses I2C.
@hansratzingerselbstandiger9786
@hansratzingerselbstandiger9786 8 месяцев назад
Great explained! Thank you so much! Even the SSH issue perfectly and easy explained!
@Steve1d
@Steve1d 8 месяцев назад
Thanks
@hydroturd
@hydroturd 8 месяцев назад
I'm having an issue installing smbus which rpi_lcd depends on : "legacy-install-failure"
@m.heidenreich
@m.heidenreich 7 месяцев назад
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 8 месяцев назад
I keep getting Permission Denied, even though my password is correct.😡I'll try reinstalling the image
@nb8280
@nb8280 8 месяцев назад
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 9 месяцев назад
Thank you so much, just that global you put it there, really really kills ,e/
@batchrocketproject4720
@batchrocketproject4720 9 месяцев назад
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 9 месяцев назад
Excellent intoduction =) I just ordered a T-cobbler and i'm very excited to learn Python =)
@JZHarrison
@JZHarrison 9 месяцев назад
Best help for the new network settings that I have found anywhere - brilliant