Category Archives: Arduino

Arduino MIDI Serial Interface – Part 1

MIDI (Musical Instrument Digital Interface) is a technical standard which describes the protocols and digital interface to control electronic music instruments, recording equipment, drum machines and lights. First published in 1981 the MIDI standard still remains the number 1 protocol possibly used by all manufacturers of music instruments today. I have for some time been […]

Modbus TCP/IP Basic Python Script – Part 2

Taking my previous Modbus Python Script further I wanted to extend my Python script to read multiple Modbus Registers from my 4-Noks Modbus TCP/IP Zigbee gateway. The following script asks the user to provide options such as Unit ID, Function Code and Register Address which are then used to construct the appropriate Modbus TCP/IP packet […]

Modbus TCP/IP Basic Python Script – Part 1

I have written a number of little scripts for my home automation projects, mostly in C++, Perl or Lua, however to date I have avoided writing any projects in Python. It would seem that Python is currently the latest fashion for Raspberry Pi and home automation projects so I thought I had better have a […]

Dumb Meters… monitoring with Arduino

Armed with the knowledge about how meters have a ‘pulse’, I was then able to start building a sensor and simple Arduino sketch (C++ code) to calculate my electricity consumption. Power v’s Energy Before I started, I needed to understand some basic terminology about electricity! I did not fully appreciate the difference between Power and […]

Dumb Meters… they have hearts too!

For the past year and a half I have habitually been recording my Gas and Electricity meter readings (my wife would probably say it was an obsession!). Each week I would clamber under the stairs armed with my iPhone flashlight, crawling through the dust I would read the digits from my old ‘dumb’ meters. I […]