Welcome back! I want to write about a specific challenge that popped up while upgrading my Raspberry Pi setup. Specifically, running the Picamera2 module inside a Docker container on Debian Trixie with Python 3.13. While the library works great natively, combining it with containerization introduces some versioning headaches. The stock Debian repositories often ship older versions of libcamera that lack the necessary Raspberry Pi camera pipeline support. Additionally, there are missing dependencies like the KMS module for Python that aren’t available in standard repos. In this post, I will explain how to configure a custom Docker image to bridge these gaps using system-wide packages and specific environment variables. We’ll cover setting up apt sources, handling library versions, and ensuring the container can actually detect your camera hardware without errors. This setup allows for separation of code while still accessing hardware related stuff.
Continue readingTag Archives: Python
Is HTTPS Really Safe? Unveiling the Risks Behind Secure Connections

The internet has become an integral part of our lives, and with that comes a growing concern about online security. You’ve likely noticed the padlock icon in your browser’s address bar when visiting websites – this signifies an HTTPS connection. But how safe is it really? This blog post delves into what HTTPS is, why it exists, and explores some surprising vulnerabilities that can arise even with seemingly secure connections.
Continue readingStreaming images and video using the Raspberry Pi Camera module

Sometimes streaming video might not be as straightforward as it might seem to be. In this blog, I will walk you through some ideas on how to stream video using Raspberry Pi Camera module and some Python libraries. Different techniques focussing around picamera module will be investigated along with some front-end code to facilitate reception via a web browser.
Continue readingRaspberry Pi throughout winter and how to make it warm

During the summertime, I have created and assembled a monitoring station based on Raspberry Pi and Raspberry Pi Camera module. The main purpose of this monitoring station was a video survivable system with some digital outputs to control the lights. The overall device is based on the Raspberry Pi 4 that sits inside a tight casing with the power supply module and the relay module. I do not want to write much about how it was built, but a bit more about how it is being maintained plus how it works during winter when temperatures are starting to go below zero.
Continue readingRemoteLab goes open source

Finally, it is there! The RemoteLab platform is open source and is available on Github. Want to get a link and learn what is new? Continue reading!
Continue readingQuadrature encoders with Raspberry Pi Pico PIO

When you want to control a DC motor, there are two ways in which this could be approached. It can be controlled (a closed-loop approach) or simply driven (an open-loop approach). The open loop approach is the easiest one since it does not relay on any addition knowledge about the system or the motor itself. The control process is straightforward. You send the control signal and hope that the DC motor will rotate at the desired speed. However, in many situations, it is insufficient. For example, when a car goes uphill, it requires more torque, so the power output needs to be adjusted. In the end, the same control signal will not give the same results as the environment changes.
In this post the main emphasis is put on quadrature encoders. The quadrature encoder is a sensor mounted next to motor which allows to measure how fast the shaft is turning. Going further, the usual implementation of the quadrature encoder sensor counts how many times the state has changed. However, before going into details, let us focus first on quadrature encoders and how they work.
Continue readingRemoteLab a distributed Hardware-as-a-Service

This blog will be a little bit different from what I usually write about but not entirely. I am very proud of the results of what I did and I would like to share them with you. It is not a secret that I work at Wrocław University of Science and Technology. Apart from my research duties, I also run classes with my students. However, we should start the story from the beginning, that is, in the year 2019. At the dawn of 2019 we had COVID-19 outbreak. It did a lot of change in our lives and daily duties which still ought to be carried out. From the perspective of my university there were a lot of challenges. The lectures could be moved to the digital world pretty easily; however, project or laboratory classes were not that easy to move. They strongly depend on human-to-human interaction, and additionally when you work with hardware, it is even more challenging. What I did and what I will describe below was a way to respond to these difficulties. It involves a lot of hardware and not a small dose of software development.
Continue readingLoRa driver for Raspberry Pi with Python wrapper

Here you will find my recent contribution to LoRa drivers. This post describes the LoRa driver for a Raspberry Pi SBC (Single Board Computer). Additionally, a wrapper written in Python is available making it very easy to use and prototype. Raspberry Pi gets more and more attention. Adding LoRa communication enables it to communicate with IoT devices such as remote thermometers, soil moisture sensors and many more others. You can find HAT boards thatoffer a LoRa module. Here, I describe how to connect and how to use a low-cost LoRa RFM95W module. This particular module comes with different frequency options. However, this post describes the one which uses 868 MHz frequency.
Continue readingReset router with Python script and Raspberry Pi
Recently, I have written an article Automatic router reboot device with Arduino where I have presented a simple Arduino–based solution to reset router periodically. Since this is not the best idea to reset it, even if it does not require resetting, I have applied purely software–based solution. As the title says I have used a Python script which runs on Raspberry Pi connected to a local network.
Face detection with OpenCV and Python on RaspberryPi
Many articles here and there describe how to use OpenCV on Raspberry Pi. However, most of them are about setting up the environment by hand — meaning compiling OpenCV from sources. There are two main disadvantages to this approach. Firstly, you have to spend some time to compile it. On Raspberry Pi 3 it takes quite some time, and not mentioning the earlier versions of this mini PC. Secondly, maintaining up–to–date version requires additional time. Still, you can go for middle ground — cross–compilation that requires less time but you have to set up the environment properly. Having above in mind I will introduce you to the OpenCV with Python interface installed from pre–compiled packages. If I have your attention keep reading 😉
IPython Notebook server on Raspberry Pi
IPython Notebook is a great Matlab-like/Mathematica-like thing. You can write and run scripts written in python by using a web browser only. This post describes how to set up IPython Notebook server.


