A simple C++ library to drive a stepper motor using the Raspberry Pi

About two years ago I wrote a simple C++ class to drive a small stepper motor using the Raspberry Pi. Recently I’ve done the last change to the code. In this post I will try to describe in a simple way how to use the library, also with the help of some examples. Hardware requirements ...

Written by Cristiano

Secure webcam streaming with mjpg-streamer and stunnel

Last week I was trying to understand how to establish a secure connection with a webcam streaming server. The idea was to setup a kind of small homemade surveillance system to be used when I’m away. I knew of mjpg-streamer and I used it years ago, but I’ve never tried to encrypt the communication channel ...

Written by Cristiano

A way to extract the playback time from mpg123

In the last period I was working on a project concerning UPnP. In particular I was developing a “smart speaker”, a wireless speaker which plays mp3 files by streaming them from a NAS (UPnP media server). The code is written in Java and leans to mpg123, a real time CLI MPEG audio player/decoder. The hardware ...

Written by Cristiano