Category Archives: Linux

VoCore, Micropython, more Blinking

Lately I measured the maximum frequency I could get out of the VoCore by toggling a GPIO as fast as possible using various approaches. Today I wrote a simple Kernel module which allows me to set/clear a GPIO through IOCTL. Also I created a FFI binding to IOCTL for micropython and the usual test program […]

VoCore Arrived

Today my VoCore modules arrived from China (they are amazingly tiny). So time for a first LED blink right? Ok, I wanted to get things working quickly so I decided to go with the pre-installed OpenWrt and Python + sysfs. Unfortunately there is not Python on the device, and also the right package sources are […]

Operate Real Light From ComputerCraft

Recently I got notice about ComputerCraft, a Minecraft mod which is all about computers and programming in Minecraft. Each computer block could be connected to redstone in-/outputs, and is programmable in Lua. Today I installed the mod and played a little with it. The result is: I am now able to use a redstone switch […]

Linux Kernel Module to Control 434Mhz RC Outlets – Pi Version

Added a setup-script to cross-compile the Linux kenel module for the RC outlets for the Raspbarry Pi. To be able to cross-compile the module, in brief the following needs to be done: Install ARM cross-gcc On Ubuntu: sudo apt-get install gcc-arm-linux-gnueabi make ncurses-dev Get RasPi Kernel E.g. use Kernel from GIT: git clone https://github.com/raspberrypi/linux.git linux-raspberrypi […]

Tri-State Protocol of the Pollin (and other) 434MHz RC Switches

Made a overview of how the over-air protocol looks for the Pollin RC Switches (see previous article for more details). The length of the pulses is a multible of 350us. The wave-forms where captured with an OpenBench logic sniffer.

Linux Kernel Module to Control 434Mhz RC Outlets

Some time ago, I wrote about using an EDIMAX Smart Plug with Python. The EDIMAX has build in Wifi and runs its own web server. While this is convenient, it also makes the EDIMAX quiet expensive. Lately I got notice (thanks Eric), about very cheap 434MHz based plugs sold by Pollin for less then 10 […]

Linux Kernel Module Examples (on the Pi)

I uploaded the Kernel module examples I wrote some time ago to git. The project is setup in a way, that it will build the modules for the Pi as a target, but they should run on different platforms as well (if compiled the right way). The following examples are included: kmod-basic: Most basic Kernel […]

Debian (Headless) NAND Install on Cubieboard

Since flashing an image to the Cubieboard using the provided LiveSuite sucks so much (actually the only thing the Linux 32 bit version does is killing the contents of your NAND), I was looking for an other way to get a decent OS on the NAND of that board. By decent OS I mean Debian […]

MSP430 I2C Slave Example

Since none of the examples I found worked for me, I put together my own example which shows how to use the MSP430G2553 as an I2C slave. The MSP430 takes some simple commands. One for switching the build in LED (P1.0) on/off, one for reading the state of the build in button (P1.3). Also a […]

Measuring the Water-Level of a Cistern

To measure the water level of our cistern, I started to build a little cistern monitor based on a hacked TP-Link MR3020 router running OpenWrt and a SRF05 ultra sonic range finder. The software project mainly consists of a kernel module and a web service to access the data through a simple web-ui or by […]