![M Heidenreich](/img/default-banner.jpg)
- Видео 44
- Просмотров 438 080
M Heidenreich
Канада
Добавлен 10 июн 2020
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!
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!
How to Use RGB LEDs with Raspberry Pi and Python
This video demonstrates how to use RGBLEDs with Raspberry Pi GPIO and Python. I spend much of the tutorial explaining what RGBLEDs are and how to build a circuit for Raspberry Pi GPIO for both common cathode and common anode RGBLED types. This explanation is followed with a beginner explanation of Python code used with RGBLEDs with additional examples of more advanced projects.
Use the following command in Raspberry Pi OS Terminal to download all code from this tutorial:
git clone github.com/mheidenreich/rgb-primer
0:00 Intro
1:18 RGBLED Explained
3:06 Breadboard Circuit
3:38 Testing Python Program
5:42 Troubleshooting
7:27 Additional Python Examples
11:45 Wrap-Up
I really enjoy making RUclips vide...
Use the following command in Raspberry Pi OS Terminal to download all code from this tutorial:
git clone github.com/mheidenreich/rgb-primer
0:00 Intro
1:18 RGBLED Explained
3:06 Breadboard Circuit
3:38 Testing Python Program
5:42 Troubleshooting
7:27 Additional Python Examples
11:45 Wrap-Up
I really enjoy making RUclips vide...
Просмотров: 1 288
Видео
Raspberry Pi OS Bookworm, Networking Primer (Desktop & Headless), Windows Hotspot Connection
Просмотров 3,5 тыс.10 месяцев назад
This video demonstrates how to configure and maintain Wi-Fi settings for the latest Raspberry Pi OS system (Debian 12/Bookworm), in desktop and headless modes. Instructions are applicable to all Raspberry Pi versions that can run the latest Bookworm version of the OS, released in October 2023. If you are using the older Legacy Raspberry Pi OS (Debian 11/Bullseye), please see my other tutorial: ...
Python Programming with ChatGPT on Raspberry Pi (Part 2)
Просмотров 588Год назад
This video explores current ChatGPT capabilities (as of April 2023) as a tool to aid Python programming control of simple electronic components (LED and Button) for Raspberry Pi. 0:00 Intro 0:26 Prompt #1 incl. gpiozero 6:42 Successful Program #1 Generated 8:42 Prompt #2 (Incremental Process) 13:52 Successful Program #2 Generated 15:39 Wrap-Up I really enjoy making RUclips videos and I apprecia...
Python Programming with ChatGPT on Raspberry Pi (Part 1)
Просмотров 1,9 тыс.Год назад
This video explores current ChatGPT capabilities (as of April 2023) as a tool to aid Python programming control of simple electronic components (LED and Button) for Raspberry Pi. 0:00 Intro 0:58 Initial Prompt 2:02 Superuser Confusion 4:02 Initial Response Run 5:02 Supersuser Re-Visited 5:55 Second Prompt 6:50 Second Response Run 7:48 Third Prompt 8:50 Press vs. Hold Events 11:36 Program Re-Wri...
Remote Python Programming with VS Code and Rasberry Pi
Просмотров 10 тыс.Год назад
This tutorials shows how to install and configure Visual Studio Code for remote development in Python where VS Code runs on a Windows or MacOS PC, connecting remotely to a Raspberry Pi. In the video I go through the entire process of software installation, extension setup and basic practices, explaining all steps in detail, and, as a bonus, show how to configure a PC for password-less login int...
Linux Filename Substitution - Advanced
Просмотров 258Год назад
This video discusses advanced aspects of Linux shell globbing (wildcard filename matching) - regular filenames vs. directory names and recursive matches, using the find command. 0:00 Intro 0:41 Standard Globbing Challenges 1:50 Recursive Filename Matching Using find Command 5:03 Multiple Search Starting Points With find Command 5:58 Matching of regular Files vs. Directories With find Command 6:...
Linux Filename Substitution - Special Cases
Просмотров 357Год назад
This video discusses special cases in Linux shell (BASH) filename substitution (globbing). Specifically, it focuses on wildcard-matching hidden filenames and handling of filenames that start with a '-'. 0:00 Intro 0:30 Hidden Filenames 1:23 Matching Non-Hidden Filenames 2:36 Matching Hidden Filenames 6:05 Matching Filenames With dotglob BASH Option 8:34 Filenames Starting With '-' 13:50 Wrap-Up...
Raspberry Pi OS Legacy, Networking Primer (Headless Wi-Fi Config, wpa_supplicant.conf, hotspot)
Просмотров 10 тыс.2 года назад
October 2023 update New Raspberry Pi OS (code name Bookworm, Debian version 12), released in October 2023, made network configuration easier and wpa_supplicant.conf approach shown in this video is no longer relevant. You can still follow this video if using Raspberry Pi OS Bullseye (Debian version 11), which is now considered "Legacy". You can check your OS version using the following command: ...
Headless Raspberry Pi Setup (New Simpler/Easier Method) - Without Monitor, Keyboard/Mouse
Просмотров 59 тыс.2 года назад
October 23, 2023 Update Raspberry Pi Imager got a makeover, coinciding with Raspberry 5 release. The menu/interface has changed slightly, but general headless configuration and connection procedure shown in this video is valid, including when working with Raspberry Pi 5. Thanks for watching! This video demonstrates how to setup and connect to Raspberry Pi headless - without monitor, keyboard an...
How to Use Buttons with Raspberry Pi (Breadboard Tutorial, LED Control)
Просмотров 7 тыс.2 года назад
This video will teach beginner Raspberry Pi users how to use push buttons with a breadboard. I explain in detail how push buttons work, how you can use them to control a LED circuit, and demonstrate three ways to use buttons on a breadboard with Raspberry Pi GPIO. This tutorial is exclusively breadboard work. If you want to see coding examples for buttons with Raspberry Pi, please see my other ...
How to Use a Breadboard with Raspberry Pi 400, LED Control with Python gpiozero
Просмотров 7 тыс.2 года назад
This video demonstrates how to use a breadboard with Raspberry Pi 400. I demonstrate how to connect the breadboard to the Pi using a T-cobbler connector and a 40-wire ribbon cable. I also show how to construct a simple LED circuit and how to control it using using Python 3 with gpiozero library. Concepts shown here are applicable to any current Raspberry Pi model (400, 3A , 3B/3B , 4 and Zero) ...
Linux Filesystem Permissions - The Basics
Просмотров 1,2 тыс.2 года назад
This video discusses the basics of Linux filesystem permissions - what permissions are, how to change them and how permissions affect regular files for file owner and other users. 0:00 Intro 0:38 Permissions Explained 3:33 File Ownership and Group Association 4:38 Default Permissions on New Files 6:05 Changing Permissions Using Symbolic Method (chmod command) 10:54 Permission Recommendations fo...
Linux Filename Substitution Basics
Просмотров 1,8 тыс.2 года назад
This video discusses filename substitution using basic wildcard meta-characters such as the '?', '[]' and '*' in the Linux shell (BASH). 0:00 Intro 0:26 Filenames and Pathnames 1:30 Filename Substitution Concept Explained 2:21 The '?' Wildcard 5:10 The '[]' Character Class Wildcard 6:31 Failed Filename Substitutions 8:59 Quoting Wildcard Characters in Filenames 9:20 The 'failglob' Shell Option ...
Linux Filenames Explained
Просмотров 2 тыс.2 года назад
This is Part 6 of a video series that introduces beginners to the Linux command line. This video discusses file and directory naming conventions, special (meta) characters and quoting. 0:00 Intro 0:11 Filename Naming Conventions Under Linux 0:57 Spaces in Filenames 2:15 Quoting of Meta-Characters 6:37 Dashes in Filenames 10:03 Summary 11:10 The { } Meta-Characters 13:20 Wrap-Up I really enjoy m...
Linux File and Directory Management - Moving and Copying Files and Directories
Просмотров 2,1 тыс.2 года назад
This is Part 5 of a video series that introduces beginners to the Linux command line. This time I take a detailed look at the process of moving and copying files and directories. 0:00 Intro 0:20 Directory Concept Explained 2:10 Moving Files (mv Command) 6:50 Renaming Files 7:28 Overwriting Files Using the mv Command 8:41 Moving Directories 10:31 Overwriting Directories Using the mv Command 12:0...
Linux File and Directory Management - Efficiency and Best Practices
Просмотров 2,3 тыс.2 года назад
Linux File and Directory Management - Efficiency and Best Practices
Linux File and Directory Management - Creating and Removing Files and Directories
Просмотров 3,8 тыс.2 года назад
Linux File and Directory Management - Creating and Removing Files and Directories
Linux Filesystem Basics - Structure, Navigation, Absolute and Relative-To-Home Pathnames
Просмотров 2,7 тыс.2 года назад
Linux Filesystem Basics - Structure, Navigation, Absolute and Relative-To-Home Pathnames
Linux Command Line Basics - The Terminal, Basic Commands, Present Working Directory
Просмотров 4,4 тыс.2 года назад
Linux Command Line Basics - The Terminal, Basic Commands, Present Working Directory
Freenove Ultrasonic Raspberry Pi Starter Kit Unboxing (FNK0024)
Просмотров 2,1 тыс.2 года назад
Freenove Ultrasonic Raspberry Pi Starter Kit Unboxing (FNK0024)
Raspberry Pi Pico Basics with MicroPython (RP2040, machine library)
Просмотров 1,8 тыс.3 года назад
Raspberry Pi Pico Basics with MicroPython (RP2040, machine library)
Raspberry Pi Robotics: DC Motors and Servos (Python Tutorial with gpiozero)
Просмотров 7 тыс.3 года назад
Raspberry Pi Robotics: DC Motors and Servos (Python Tutorial with gpiozero)
Drift-Free Joystick with Raspberry Pi (Python, gpiozero, ADS7830 ADC)
Просмотров 12 тыс.3 года назад
Drift-Free Joystick with Raspberry Pi (Python, gpiozero, ADS7830 ADC)
Remote LED Control With Raspberry Pi, Python gpiozero/pigpiod (MCP3002 ADC + Potentiometer + Button)
Просмотров 3,3 тыс.3 года назад
Remote LED Control With Raspberry Pi, Python gpiozero/pigpiod (MCP3002 ADC Potentiometer Button)
Raspberry Pi Advanced Guide (wiringPi Tutorial, C Programming, GPIO Buttons, POSIX Multi-Threading)
Просмотров 8 тыс.3 года назад
Raspberry Pi Advanced Guide (wiringPi Tutorial, C Programming, GPIO Buttons, POSIX Multi-Threading)
Raspberry Pi Advanced Guide (wiringPi Tutorial, C Programming, GPIO Buttons, POSIX Multi-Threading)
Просмотров 6 тыс.3 года назад
Raspberry Pi Advanced Guide (wiringPi Tutorial, C Programming, GPIO Buttons, POSIX Multi-Threading)
Raspberry Pi Beginner Guide (wiringPi Tutorial for Linux BASH Shell and C, GPIO LED Blink)
Просмотров 24 тыс.3 года назад
Raspberry Pi Beginner Guide (wiringPi Tutorial for Linux BASH Shell and C, GPIO LED Blink)
Classic Snake Game - Intro (Watch First!)
Просмотров 5873 года назад
Classic Snake Game - Intro (Watch First!)
Classic Snake Game - Part 4 (Beginner Python Tutorial on Linux)
Просмотров 8613 года назад
Classic Snake Game - Part 4 (Beginner Python Tutorial on Linux)
Classic Snake Game - Part 3 (Beginner Python Tutorial on Linux)
Просмотров 1,3 тыс.3 года назад
Classic Snake Game - Part 3 (Beginner Python Tutorial on Linux)
You taught it perfectly, used this as a refresher. Thanks, I seriously appreciate it.
Very nice tutorial. Well done!
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?
Flashing power LED usually means insufficient power. Make sure to use a certified Raspberry Pi power supply, which will provide 5.1V at 2A+.
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...
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.
Thank you, best explained videos!
amazing 🙌
Nice, explanation...
Amazing tutorial ! Thank you so much !
Great video! Thank you
very useful, thanks!
It works perfectly! :D Thank you!
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.
Lovely
High mr Heidenreich, do you plan to make this tutorial in Python in the near future?
That tutorial was posted a while ago: ruclips.net/video/YICzRCAY73Y/видео.html
Thank you
What is the purpose of those to lines: signal(SIGTERM, safe_exit).. ?
This code handles safe program shutdown procedures, where GPIO ports are restored to default. I explain the why and how in a dedicated video: ruclips.net/video/Dx7rdrqJxgs/видео.html
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 !
Have a look at this video: ruclips.net/video/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.
Thank you for sharing this. How would I write the script to blink LED1 5 times, then LED2 3 times using GPIOZERO?
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
thanks for the video, got me up and running!
How to connect the raspberry pi to the PC. Ethernet, USB, wireless?
Wi-Fi connection is usually the way to go and I have a tutorial for that: ruclips.net/video/QjSn33jbzFM/видео.html
There ought to be a current limiting resistor, in case you accidentally set the pin as an output.
I disagree. Adding unnecessary resistors complicates the circuit and does not eliminate other countless mistakes you can make.
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.
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.
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?
Download the latest pre-built binary, transfer to your Pi using a USB memory stick, unzip and install: github.com/WiringPi/WiringPi
Thank you!
When I start the program it says: from rpi_lcd import LCD() ^ SyntaxError: invalid syntax Does anyone know why 😢😢
Take out the parentheses
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.
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 ?
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.
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
Fantastic playlist! Keep up the great work-I'm eagerly awaiting the next advanced playlist! Thank you!
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.
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?
Make sure there are no typos in your command. It may also be a temporary network issue, which could be fixed by a reboot.
WiringPi V3.0.1 has just been released with support foir the RPi 5
Great news!
thank you sir
This is phenomenal! Great Instructional!🎉🎉🎉
Perfect
Helpful, thanks
your videos is the best explanation for this thank you
sadly wiringPi no longer exists. the site is dead
The project has been picked up again and has been updated to work with Raspberry Pi 5.
Would this work on a 20 x 4 display?
It all depends on the protocol used by the display - try it if yours uses I2C.
Great explained! Thank you so much! Even the SSH issue perfectly and easy explained!
Thanks
I'm having an issue installing smbus which rpi_lcd depends on : "legacy-install-failure"
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"
I keep getting Permission Denied, even though my password is correct.😡I'll try reinstalling the image
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!
Thank you so much, just that global you put it there, really really kills ,e/
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. 💯
Excellent intoduction =) I just ordered a T-cobbler and i'm very excited to learn Python =)
Best help for the new network settings that I have found anywhere - brilliant
Great video!!! Thanks a lot
Thanks for the heads up. I’m gonna be diving into pi engineering and development. Coming from internet security & programming