blog

How Hatzel saved my Gameboy

#blog #howto #gameboy #gaming #retro

I own a classic Nintendo Gameboy, a device that hit the consumer market 32 years ago. I was born one year before that. Of course a few more years passed until I got a Gameboy myself. I played Super Mario Land, Tetris and later Zelda: Links Awakening and (of course) Pokemon. Then the device was replaced by various other consoles and PCs over the next decades. Two years ago I rediscovered it and somehow, after all these years, I felt the desire to relive that time in which I sat down to play those games.

 

How to run PostgreSQL on Docker

#blog #howto #docker #postgresql #database #sql #devops

In this how to I will show how to setup a PostgreSQL server on docker, including how to persist data outside of the container, and also how to run PGAdmin in a container as well. In this example I asume that you’ve already got Docker running on your server, if not, set this up first. Install PostgreSQL By default the PostgreSQL container is configured to save its data to /var/lib/postgresql/data inside of the container.

 

How to use a IR photodiode on an Arduino to meassure IR light

#blog #howto #arduino #arduino nano #photodiode #infrared #electronics #programming #iot #microcontroller

Most tutorials I’ve found so far are about 3-pin photodiodes. These are meant to recieve digital IR signals from TV remotes or similar devices. The 2-pin diodes can be used to simply meassure the available IR light. So you could use this to build a distance sensor, if you add a IR LED emitter and then meassure the reflected light, or to meassure the IR light emitted by a natural or artificial light source.

 

Arduino Nano IoT accelerometer data to pitch and roll

#blog #howto #arduino #arduino nano #accelerometer #c++ #electronics #programming #iot #microcontroller

The Arduino Nano 33 IoT comes with a built-in 3-axis acceleromteter. This sensor meassures values for x, y and z acceleration between -1 and 1. If we want to know the actual position in which the sensor is, we need to know it’s rotation on two axis, pitch and roll, in dregress. This two angles could be used then later on to control two servos which rotate an object exactly the same way the sensor is rotated.

 

How to enable RaspberryPi Camera module on Ubuntu

#blog #howto #raspberrypi #camera #ubuntu

I’m running the official Ubuntu for RaspberryPi on a RaspberryPi 4 and wanted to use the RaspberryPi Camera Module. The thing is, this is not as simple as it is on Raspian. So here are the steps you have to perform to use the Camera Module on Ubuntu. Activate Module First of all connect the Camera Module to your RaspberryPi like you always would and boot it up. Next you have to add the magic setting “start_x=1” to your /boot/config.

 

RaspbeeryPi Pico Temperature Light and Logger

#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller

On a rainy sunday afternoon I found out that the RaspbeeryPi Pico fits perfectly into a 35mm film box if you cut a little hole for the USB port into the lid. Since my box was a semi-transparent white box, I decided to add some LEDs and build a little temperature sensor, that indicates the current temperature range using either a blue, green, orange or red LED. Build I connected the power pin (long side) of each LED to a GPIO port (green = Pin4, blue = Pin5, orange = Pin3, red = Pin2), of course with a 220 ohm resistor in between, and all the short sides to GND.

 

How to develop on a RaspberryPi Pico using Micropython

#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller

A few days ago I got two brand new RaspberryPi Pico Boards and so it is time to build something using this new toy. So let’s talk about what it actually is, how to setup a MicroPython development environment and also build a simple example project to make sure everything works as expected. This one is not like the others I won’t go to much into the specs of this board, since you can read them for yourself here, instead I will focus here on two specific things that set’s this Pi appart from others like it.

 

Automatically sync local folder with remote ftp

#blog #howto #scripting #bash #ftp #automation

As I’ve already mentioned in my article about how this website was built, this website get’s updated every night automatically with content I wrote the day before. To do so I use a cronjob and a little script that get’s the latests version of this website from Github, builds it and then uploads it via ftp. Since mirroring a local directory with a remote ftp directory is a pretty common task, I thought it would make sense to write about how I did it.

 

How this website was built

#blog #webdevelopment #hugo #static site generator

This whole website does not use a traditional CMS. It is 100% statically generated using Hugo. Hugo is a static site generator, which allows me to write new pages as simple and portable Markdown files and then generate the whole website based on the template I wrote for this. No JavaScript, no cookies, no tracking As you might have noticed, this website does not set any cookies, it does not have any social media share buttons or integrations, there is not even a single lineof JavaScript.