avatar

Bouni's blog

random bits and pieces

Site-to-Site Wireguard VPN between Fritzbox and Mikrotik

2026-05-08
I tried for quite some time to get a reliable and safe Site-to-Site VPN between two locations but never figured it out completely. Site A runs on a Mikrotik hAP ac as its router, Site B runs on a FRITZ!Box 7530 AX. Since RouterOS v7 Wireguard is supported as an official VPN solution, for the Fritzbox Wireguard is supported since FRITZ!OS 7.50. I wanted a real Site-to-Site VPN so that I can access devices on the other site from both sites.

Invoicing hacks

2026-05-06
At the annual Chaos communication congress, in this specific case the 39C3 a talk was given by Hajo Noerenberg and Severin von Wnuck-Lipinski called hacking wasching machines . In this talk Hajo showed how he made wasching machines among other home appliances manufactured by B/S/H smart, or to be more precise, integrate them into Home-Assistant . It was the best talk I have seen in a long time and as an owner of at least two BSH appliances (washing machine and a dryer) I was immediately on fire to get this into my machines as well. At the end of the talk Hajo said he could use help designing and manufacturing a custom PCB for this, as he only had a dev board setup.

Automating KiCAD with KiBot and Gitea Actions

2025-07-04
KiCAD is my favourite PCB design program. I use it for Hobby projects as well as in my day job. I even wrote a rather successful plugin called kicad-jlcpcb-tools for it that lets the user select parts from the JLCPCB catalog and assign them to the footprints. Furthermore it generates the fabrication data consisting of a zip with all Gerber files and the Excellon drill file as well as a BOM CSV file and a CPL CSV file. These three files can be uploaded to JLCPCBs website to get an instant quote for the PCB including assembly.

RaspberryPi Wallboard

2025-07-02
Back in 2017 I built two displays for my fire brigade that show alarm data in case of an alarm. These use a 40" Samsung TV + a RaspberryPi 3B. A friend already had a working solution , so I adapted his work. It is a minimal approach that uses a matchbox-window-manager + midori The displays worked fine for all the years but recently I wanted to upgrade the installed RaspberryPi OS from Stretch to Bookworm.

Attiny1616 and UPDI followup

2025-04-10
In my last post Attiny1616, PlatformIO and UPDI I descriped how I use UPDI to programm an Attiny1616 using platformio . Since then a few things happened and I thought its a good chance to write up my improvements. UPDI circuit šŸ”—I realized that it would come in handy if I could program my boards with no 24VDC supply connected to the borad, just the 5V from USB. So I put in a diode in order to supply the 5V from USB to the uC.

Attiny1616, PlatformIO and UPDI

2024-11-27
I recently started a small side project at work in which I was in need for a microcontroller. In almost every project I did in recent years I used a ESP32 out of convenience or need for wifi. However in this project Space was an issue, so huge module like that was not very appropriate. I just need a few I/O pins and maybe a serial port for debugging, that’s it.

Get OMRON 1S Servo drives working with Linuxcnc EtherCat

2024-09-20
I have access to a lot of EtherCat components, among them the brand new OMRON 1S series servo drives. Obviously I wanted to get them working in LinuxCNC but there were no drivers for them. There were drivers for the OMRON G5 series drives however. So I compared the PDOs used in that driver with the PDOs of the 1S series. Turns out they are identical šŸ¤“ I cloned the git repo of linuxcnc-ethercat and began to tinker around.

Barth Elektronik STG-850 Open Source programming

2024-09-17
I’m planning to use a Barth Elektronik STG-850 mini-PLC for a project. The main reason to pick this PLC was the size of just 93x45x15mm, the low price of 150€ (low for an industry grade PLC) and the claim to support ā€œOpen Source programmingā€ using the Arduino IDE. In the meantime that claim is no longer on their website and the manual for it is gone as well. There is a GitHub repo that was linked in that manual which provided the integration into the Arduino IDE. Unfortunately there was no activity since 2017 and the manual said a Arduino version 1.8.3 is needed.

LinuxCNC with EtherCat on a Beckhoff CX2040 [Part 2]

2024-09-05
In my previous post on this topic I successfully managed to get LinuxCNC with EtherCat running on a Beckhoff CX2040. That was over a year ago and since then I didn’t have the time to dig deeper into the matter. Until now, and a lot has changed in the meantime …

A new home server [part 1]

2023-12-11
Back in 2016 when we completed building our house I installed a home server in my basement networking rack which I always refer to as the ā€œopen woundā€ 😁 That’s because It is mounted on a laser cut sheet of zinc coated sheet metal that forms a rack mount shelf and looks hacky as hell. These pictures are from day 1 and some things have changed in the meantime.