Starting out with home automation

A friend of mine is in the middle of building his new apartment, and as he knows I have a bit of experience with home automation he asked me for some pointers. I started writing up some parts that I think he needs to address now while building it out to make his life easier. And then I thought if I do it in english, I can make a post out of it so here it goes.

My Homelab Setup

A couple of years ago I bought a pretty sweet computer from a friend of mine. It became my home server sitting below the TV in the living room. An i7-3770 with 16GB of RAM on a supermicro motherboard in a nice Zalman case. I threw a couple of HDDs I had laying around. Recently I’ve upped the RAM to 32GB. The configuration is now more or less maxed out. I could put a xeon processor and move to ECC ram but it would not bring me much.

Just bought a PinePhone

I’ve just bought a PinePhone. I’ve ordered the Brave Heart edition, as that one is the only version available at the moment. Currently it seems that the only difference with the “propper” version will be that it is not comming with a usable OS on it. This is where I would put the picture of my phone, If I had it here :-) I am not going to go through the specs, feel free to click the above link and look at them.

My Firefox setup

I had a problem with my firefox and I had to restart my firefox profile to be able to start it. Mleh, shit like this sometimes happens. Anyway, I used a generic chromium with just a uBlock origin plugin while trying to debug what was happening, and it came to me how different my UX in Firefox is. Night look I thought it would be interesting to do a writeup about which plugins I am using.

JTAG debugging ESP32 - huzzah32

I am currently working on a project using an ESP32. I really the way Espressif has set up the development tools, I’ll probably do a post about my thoughts about it. The serial port and logging is setup out of the box, so I’ve been using printfs to debug the code. There are a couple of problems with this approach, but one big advantage, it is easy and just works. The downsides are that for every time you want to look at a variable, you add a printf, you build the program and need to upload it to the board, and as it is uploaded through the bootloader operating at 115200baud it takes some time.

Xiaomi Desk LED Lamp with a FOSS firmware

I needed a lamp on my table. I needed some backlight when I am working on my computer, and I needed a strong worklight when I am soldering and working on electronics. I found Xiaomi LED wifi lamp in my home town, of all the places. And, actually, that was the cheapest place I was able to find it anywhere, including the Internet. I brought it home, and it was great.

CP2102 usb to serial outputing 4.5V

So, I’ve just had a new project programming a NRF52 and with almost all embedded projects it is great to have a way to easily debug some problems without setting up the whole debugging environment. Using the serial connection is usually how I do it, sometimes a LED is enough. Because of that I have a lot of USB to serial adapters. All of the ones I had had a USB A connector on it which made it hard to connect it to the development board, I had to have a extension cable or have the dongle hanging out directly on the laptop.

Building GNUK and updating your FST-01 fw

As GNUK documentation says “Gnuk is an implementation of USB cryptographic token for GNU Privacy Guard”. It allows you not to have your private key available on the system, but allow you to use it. There are two ways to update your firmware, to use the script in the repo to do it, if your gnuk is functional or use the programmer to flash the binary. Building the firmware To build the firmware we need to clone the repository and because a part of it is a submodule we also need to fetch that.