Raspberry Pi GPIO Interrupts Tutorial

In this tutorial I’ll teach you how to use GPIO interrupts on your Raspberry Pi, thanks to the RPi.GPIO library. You’ll see: Why and when you need interrupts. How to use interrupts in your programs. 3 working examples to practice on different situations. This tutorial works on Raspberry Pi 4 (and earlier, 3B, 3B+), with … Read more

Setup Raspberry Pi Hardware Permissions

Raspberry Pi hardware permissions can be quite tricky. So, you are using hardware functionalities with your Raspberry Pi 4 (or 3B, 3B+), and always getting errors such as “Permission denied”? This might be the case if you use I2C, SPI, UART, or simply the GPIOs on the Pi, with a user that isn’t root. In … Read more

Introduction to WiringPi (for Raspberry Pi)

WiringPi is a Cpp library for Raspberry Pi. With this library you can use many of the functionalities provided by the GPIO header: digital pins, SPI, I2C, UART, etc. Although there are many Python libraries for Raspberry Pi GPIOs, Cpp is quite a bit behind. Fortunately, there is WiringPi. In this post you’ll install WiringPi, … Read more