Nixie Tube Clock with Seconds

Building a nixie-tube clock is a project that I wanted to do for ages. The clock was build around IN-12b Tubes (I got them for cheap from eBay) and the TPIC6B595 shift register. The schematic is pretty straightforward. The clock consists of 3 PCBs with 2 tubes each. Because of…

Wanderung Aiplspitz

Den Aiplspitz wollte ich schon länger besteigen, da ich ihn bereits bei diversen anderen Wanderungen sehen konnte. Er ist sicher einer der markantesten Gipfel der bayerischen Voralpen. Hier ist er vom Gindelalmschneid aus zu sehen: Die Tour ist sehr abwechslungsreich und führt sowohl durch den Wald, als auch über Wiesen.…

Unit Tests, Android Tests, and Code Coverage

Effective testing is one of the biggest challenges in the process of software engineering. Especially testing Android applications can be tricky because the code often calls Android specific methods which a normal unit-test cannot handle. In this article I want to describe the different types of Android tests and how…

Draw circle sector in Android

Today I had program a heading indicator for a Android map-view (osmdroid). My idea was to use a circle sector (similar to most map applications). After some experiments, I came up with the following code. It uses a Path and basic trigonometric functions: private fun Canvas.drawCircleSector( x: Float, y:…

Resize LVM Volume after changing disk size of VM

Today I realized that the root partition of one of my server-VMs was completely full which caused errors in various different services running on this VM. My Goal was to resize the root partition without rebooting the VM (because it was running some production code). The first step was to…

ESP8266 switch pin via MQTT

This is a simple code template to switch a pin of an ESP8266 microcontroller using MQTT. The example turns PIN D7 on if "1" was received at the "candle" MQTT topic. All other messages turn the pin off. #include <Arduino.h> #include <ESP8266WiFi.h> #include <…

DIY automated plant watering system

This spring I decided to grow herbs for cooking outside my kitchen window. However, as it turned out after a short time, regular watering is essential. After I got rid of the dried out (and/or drowned) plants, I decided to automate the watering process before trying again. Parts I…

Detect iPhone presence in Node-Red

Detecting the presence of an iOS device in the network can be challenging because iOS does not respond to ICMP ping messages. Fortunately, nmap can be used to check the host's availability. Command of the exec-node: nmap -sn 192.168.1.101 The function node is used to check if…