This is an introduction to using sensors on the Raspberry Pi in Python. It includes detailed examples showing how to use an ultrasonic distance sensor and an IMU which stands for inertial measurement unit. IMUs contain an accelerometer and gyroscope, and are useful for anything that involves motion including many robotics and home automation projects which I plan to do in future videos. Written Guide: https://phazertech.com/tutorials/rpi-gpio.html Raspberry Pi & SBC Playlist: https://www.youtube.com/playlist?list=PLlLR7EXXYZ0bZl0azi5-OelwdpHxFYX5G Practical Electronics & Circuits 101 playlist: https://youtube.com/playlist?list=PLlLR7EXXYZ0YcMaDjlh_1T-_dr_zAZpFM&si=RtpQ4EEvT2swVO0A Purchase the HC-SR04 distance sensor: https://amzn.to/3zaWflE Purchase the GY-521 MPU-6050 IMU: https://amzn.to/3REdP7Z Purchase the VL53L0X laser distance sensor: https://amzn.to/3Y5YVvj Purchase a Raspberry Pi on Amazon Raspberry Pi 5 8GB: https://amzn.to/4gb1ceq Raspberry Pi 5 4GB: https://amzn.to/4igE404 Raspberry Pi 4 Model B 4GB: https://amzn.to/4252Xnr Raspberry Pi 3 Model B+: https://amzn.to/424PegC Raspberry Pi Zero 2 W: https://amzn.to/3UQhmSD Raspberry Pi Zero WH: https://amzn.to/4aZLlNU These are affiliate links where I earn a small commission for purchases at no extra cost to you. This is the easiest way to help the channel, thank you! Amazon: https://amzn.to/484HUnU Website: https://phazertech.com/ Donations Buy me a coffee: https://www.buymeacoffee.com/phazertech Chapters 00:00 Intro 01:02 Distance sensor & gpiozero library 04:06 Connecting distance sensor to the Pi 05:27 Running example code for distance sensor 07:49 Alternative laser distance sensor 08:34 Inertial Measurement Unit (IMU) 10:39 Understanding linear acceleration & gyroscope data 14:10 Enabling I2C bus & connecting MPU-6050 to the Pi 17:39 Running example code for MPU-6050 IMU 24:59 Connecting additional sensors to I2C 26:14 Outro

AI Benchmarks June 2026 update - RX 9060 XT vs RTX 3060
377 views

Slopsmith - Open Source Copy of Rocksmith
808 views

Build Guide - DIY Sound Reactive LED Controller Kit
128 views

Reacting To LTT Linux Challenge Failures, “Linux Evangelists”, & Negativity In The Community
2.3K views

YOLO Object Detection Auto Tracking Pan Tilt Camera
614 views

Bazzite vs CachyOS vs Windows 11 - Quad-core CPU Benchmarks
15.0K views