Blog on Home http://jaseg.de/blog/ Recent content in Blog on Home Hugo en-us Jan Sebastian Götte Sun, 29 Jun 2025 23:42:00 +0100 Getting the .ipynb Notebook File Location From a Running Jupyter Lab Notebook http://jaseg.de/blog/jupyterlab-notebook-file-oneliner/ Sun, 29 Jun 2025 23:42:00 +0100 http://jaseg.de/blog/jupyterlab-notebook-file-oneliner/ <div class="document"> <p>If you need to get the path of the ipynb file in a running #Jupyter notebook, this one-liner will do the trick. It seems chatgpt is confused, and a bunch of other approaches on the web look fragile and/or unnecessarily complex to me.</p> </div> 8seg Technical Overview http://jaseg.de/blog/8seg/ Tue, 26 Dec 2023 15:26:00 +0100 http://jaseg.de/blog/8seg/ <div class="document"> <p>8seg is a large-scale LED light art installation that displays text on a 1.5 meter high, 30 meter wide 8-segment display made from cheap LED tape.</p> </div> Ubiquiti EdgeRouter on Deutsche Telekom GPON Fiber http://jaseg.de/blog/telekom-gpon-sfp/ Mon, 21 Feb 2022 20:00:00 +0100 http://jaseg.de/blog/telekom-gpon-sfp/ <div class="document"> <p>Short tutorial on getting a Deutsche Telekom GPON internet connection running using a SFP ONU unit in an Ubiquiti EdgeRouter.</p> </div> New Paper on Inertial Hardware Security Modules http://jaseg.de/blog/ihsm-worlds-first-diy-hsm/ Tue, 23 Nov 2021 23:42:20 +0100 http://jaseg.de/blog/ihsm-worlds-first-diy-hsm/ <div class="document"> <p>Paper announcement: We have published a paper on how you can DIY a tamper-sensing hardware security module from any single-board computer using a moving tamper-sensing mesh made from cheap PCBs.</p> </div> Kicad Mesh Plugin http://jaseg.de/blog/kicad-mesh-plugin/ Tue, 18 Aug 2020 13:15:39 +0200 http://jaseg.de/blog/kicad-mesh-plugin/ <div class="document"> <p>I wrote a little KiCad plugin that you can use to create security meshes, heaters and other things where you need one or more traces cover the entire surface of a PCB. The plugin supports arbitrary PCB shapes, cutouts, and can route around existing footprints and traces on the PCB.</p> </div> Private Contact Discovery http://jaseg.de/blog/private-contact-discovery/ Sat, 22 Jun 2019 10:30:00 +0800 http://jaseg.de/blog/private-contact-discovery/ <div class="document"> <p>I gave a short introduction into Private Contact Discovery protocols at our university workgroup.</p> </div> Hardware Security Module Basics http://jaseg.de/blog/hsm-basics/ Fri, 17 May 2019 15:29:20 +0800 http://jaseg.de/blog/hsm-basics/ <div class="document"> <p>I gave a short introduction into Hardware Security Modules at our university workgroup, including an overview on interesting research directions.</p> </div> How to talk to your microcontroller over serial http://jaseg.de/blog/serial-protocols/ Sat, 19 May 2018 08:09:46 +0200 http://jaseg.de/blog/serial-protocols/ <div class="document"> <p>Scroll to the end for the <a class="reference internal" href="#conclusion">TL;DR</a>.</p> <p>In this article I will give an overview on the protocols spoken on serial ports, highlighting common pitfalls. I will summarize some points on how to design a serial protocol that is simple to implement and works reliably even under error conditions.</p> <p>If you have done low-level microcontroller firmware you will regularly have had to stuff some data up a serial port to another microcontroller or to a computer. In the age of USB, an old-school serial port is still the simplest and quickest way to get communication to a control computer up and running. Integrating a ten thousand-line USB stack into your firmware and writing the necessary low-level drivers on the host side might take days. Poking a few registers to set up your UART to talk to an external hardware USB to serial converter is a matter of minutes.</p></div> Thor's Hammer http://jaseg.de/blog/thors-hammer/ Thu, 03 May 2018 11:59:37 +0200 http://jaseg.de/blog/thors-hammer/ <div class="document"> <p>In case you were having an inferiority complex because your friends' IBM Model M keyboards are so much louder than the shitty rubber dome freebie you got with your pc... Here's the solution: Thor's Hammer, a simple typing cadence enhancer for <a class="reference external" href="https://en.wikipedia.org/wiki/PS/2_port">PS/2</a> keyboards.</p> <figure data-pagefind-ignore> <video controls loop> <source src="video/thors_hammer.mov" type="video/h264"> <source src="video/thors_hammer.webm" type="video/webm"> Your browser does not support the HTML5 video tag. </video> <figcaption>A demonstration of the completed project. <a href="video/thors_hammer.mov">h264 download</a> / <a href="video/thors_hammer.webm">webm download</a> </figcaption> </figure><p>The connects to the keyboard's PS/2 clock line and briefly actuates a large solenoid on each key press. An interesting fact about PS/2 is that the clock line is only active as long as either the host computer or the input device actually want to send data. In case of a keyboard that's the case when a key is pressed or when the host changes the keyboard's LED state, otherwise the clock line is silent. We ignore the LED activity for now as it's generally coupled to key presses. By just triggering an NE555 configured as astable flipflop we can stretch each train of clock pulses to a pulse a few tens of milliseconds long that is enough to actuate the solenoid.</p></div> 32-Channel LED tape driver http://jaseg.de/blog/multichannel-led-driver/ Wed, 02 May 2018 11:31:14 +0200 http://jaseg.de/blog/multichannel-led-driver/ <div class="document"> <p>Together, a friend and I outfitted the small staircase at Berlin's Chaos Computer Club with nice, shiny RGB-WW LED tape for ambient lighting. For this installation, I made a 32-channel LED driver that achieves high dynamic range on all 32 channels using a cheap microcontroller by using Binary Code Modulation.</p> </div> Wifi Led Driver http://jaseg.de/blog/wifi-led-driver/ Wed, 02 May 2018 11:31:03 +0200 http://jaseg.de/blog/wifi-led-driver/ <div class="document"> <p>After the multichannel LED driver was completed, I was just getting used to controlling LEDs at 14-bit resolution. I liked the board we designed in this project, but at 32 channels it was a bit large for most use cases. Sometimes I just want to pop a piece of LED tape or two somewhere, but I don't need a full 32 channels of control. I ended up thinking that a smaller version of the 32-channel driver that didn't require a separate control computer would be handy. So I sat down and designed a variant of the design with only 8 channels instead of 32 and an on-board ESP8266 module instead of the <a href="#system-message-1"><span class="problematic" id="problematic-1">RS485_</span></a> transceiver for WiFi connectivity.</p> <div class="system-messages section"> <h2>Docutils System Messages</h2> <div class="system-message" id="system-message-1"> <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;stdin&gt;</tt>, line 1); <em><a href="#problematic-1">backlink</a></em></p> Unknown target name: &quot;rs485&quot;.</div> </div> </div> LED Characterization http://jaseg.de/blog/led-characterization/ Wed, 02 May 2018 11:18:38 +0200 http://jaseg.de/blog/led-characterization/ <div class="document"> <p>Recently, I have been working on a <a href="#system-message-1"><span class="problematic" id="problematic-1">`small driver`_</span></a> for ambient lighting using 12V LED strips like you can get inexpensively from China. I wanted to be able to just throw one of these somewhere, stick down some LED tape, hook it up to a small transformer and be able to control it through Wifi. When I was writing the firmware, I noticed that when fading between different colors, the colors look <em>all wrong</em>! This observation led me down a rabbit hole of color perception and LED peculiarities.</p> <div class="system-messages section"> <h2>Docutils System Messages</h2> <div class="system-message" id="system-message-1"> <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;stdin&gt;</tt>, line 1); <em><a href="#problematic-1">backlink</a></em></p> Unknown target name: &quot;small driver&quot;.</div> </div> </div>