Welcome! I’m your host, Ahmed Hefnawi =)

“Allah is the Light of Heavens and Earth. The example of His light is like a cavity [lantern] within which there is a lamp, the lamp is within glass, the glass as if it were a pearly [white] star. The lamp is lit from [the oil of] a blessed olive tree, neither of the East nor of the West, whose oil would almost glow even if untouched by fire. Light upon light. Allah guides to His light whom He wills. And Allah presents examples for the people, and Allah is Knowing of all things.”

— Qur’an: Surat An-Noor (#24), Ayat #35 (click for Tafsir)


I make stuff and love to share it with everyone. The plan for this blog is to document my notes and observations from embedded and web development projects for anyone interested — including the future me.


Check my other website dedicated to amateur radio (ham radio) experiments: M0TTZ.UK.


📢 Follow me on X @hefnawi_ and reach out with your feedback and thoughts.

How to Program Yaesu FT-4X Handheld Radio using CHIRP on Linux

This post was cloned to my other website dedicated to amateur radio (ham radio); M0TTZ.UK Prologue Yaesu FT-4X is a very interesting handheld radio that is not very expensive (~ £65) and I believe is a good starting point compared to my previous Baofeng UV-5R Plus radio. I suggest you read the article by QRPblog in the references below for an in-depth review of FT-4X (also some comparison against Baofeng UV-5Rs). ...

3 August 2020 · 9 min · Ahmed Hefnawi

Detect SARS-CoV-2 virus using Near-infrared spectroscopy

This work is still-in-progress; originally started on 25 March, 2020. And, interestingly gained some interest during that time on-wards. This work is NOT affiliated with any group, organisation or team. The HackADay project page. Prologue Near-infrared spectroscopy (NIRS) is nothing new. However, it’s a relatively new method deployed in the field of virology. It has been successfully used before to identify HIV-1 and Influenza virus. In addition, it doesn’t require any reagents, enzymes or test kits that take at least an hour to perform the test like the PCR (Polymerase chain reaction) or RT-PCR (Reverse transcription polymerase chain reaction) and in most cases 2+ hours. ...

30 March 2020 · 5 min · Ahmed Hefnawi

STM32 ARM-GCC Toolchain w/ GPIO_EXTI example

Prologue I have always wanted to build with an ARM MCU, STM32 was on top of my to-learn list. Happily, not so long ago a respected colleague lent me an STM32 Nucleo board to play with, as usual, it stayed in its box for a while and then I started learning about the STM32 MCU and the toolchain and the capabilities of that great MCU. ...

26 February 2020 · 5 min · Ahmed Hefnawi

Teensy LC: HID USB Keyboard

This project is part of the Teensy LC Challenge Teensy Project 002: HID USB Keyboard Checkout the source code on Github. Teensy Setup The environment setup section is common to all the Teensy LC projects, so I created a single post with the required instructions to set up the Arduino IDE, Teensy Loader application, Teensyduino and Linux udev rules. If you have not setup your Teensy LC yet, please go to the complete setup guide ...

18 February 2020 · 2 min · Ahmed Hefnawi
Custom-Built Isothermal Calorimeter Internal View

Custom-Built Isothermal Heat Conduction Calorimeter

Prologue A Heat Conduction Isothermal Calorimeter is used to determine the heat flow rate of a specific process or reaction, in my case, it is designed to measure the heat rate of hydration of cement in the field of Civil Engineering and Materials Science. The purpose of this custom-built Isothermal Calorimeter is to undertake the ASTM C1702 Standard Test Method for Measurement of Heat of Hydration of Hydraulic Cementitious Materials Using Isothermal Conduction Calorimetry. ...

23 November 2019 · 8 min · Ahmed Hefnawi

Disco: Erlang/Python MapReduce #2

Please check Part 1 here if you have not already. Part 2: The Payload (Python Jobs) Preparing the Data (files) Disco Distributed Filesystem (DDFS) is a great low-level component of Disco. DDFS is designed with huge data in mind, so it made more sense to use it in my experiment as opposed to any other type of storage, for example, HDFS. Moreover, we can even store job results in DDFS, which we are going to do below. ...

19 October 2019 · 6 min · Ahmed Hefnawi