The Raspberry Pi is just powerful enough to run lightweight YOLO11 object detection models in real-time. This makes it ideal for edge AI applications that act on visual data from the world around them. In this video, we'll walk through the process of setting up Ultralytics YOLO11 models to run on the Raspberry Pi with a custom Python script. The video also gives an example of a "smart lamp" program that shows how to use Raspberry Pi GPIO to turn on a lamp when a person is detected sitting on the couch. A written version of this tutorial is available on my website at https://www.ejtech.io/learn/yolo-on-raspberry-pi . *** Links mentioned in video *** Learn how to train a custom YOLO detection model: https://youtu.be/r0RspiLG260 YOLO speed and accuracy comparison on the Raspberry Pi: https://youtu.be/_WKS4E9SmkA Smart lamp example instructions and code: https://github.com/EdjeElectronics/Train-and-Deploy-YOLO-Models/tree/main/examples/toggle_pi_gpio Train and Deploy YOLO Models repository on GitHub: https://github.com/EdjeElectronics/Train-and-Deploy-YOLO-Models/tree/main *** Amazon Associate links *** Raspberry Pi 5 8GB with basic kit: https://amzn.to/3Qo4wrX Logitech c920 USB camera I used in this video: https://amzn.to/40Q6PK7 Raspberry Pi Picamera Module 3: https://amzn.to/3PXfggn IoT AC Power Relay for safely turning devices on and off: https://amzn.to/3WJASk8 Note: This power relay only works with 120V wall outlets. If you are in a country that uses 240V (such as in Europe or India), you will need to find a similar relay that supports up to 240V. *** Chapters *** 0:00 - Introduction 1:03 - Install Ultralytics 3:25 - Set up YOLO11 Model 5:28 - Run Inference 7:26 - Smart Lamp Example 8:37 - Conclusion ------------------------------------------- Music Acknowledgements ------------------------------------------- (Blue Wednesday is awesome, if you like Lo-Fi definitely check out his music!) Music provided by Chillhop Music Blue Wednesday, Shopan - Home Court https://chll.to/4001b39d