Electronics / Coding VM

My new electronics / programming virtual machine. I tried a number of desktop environments for Ubuntu including Unity, Gnome, Cinnamon, Xfce and LXDE. The manner in which Unity and Gnome (the latter being almost unusable without extensive customisation) arrange their menu systems is very annoying. Xfce felt just a little … “Electronics / Coding VM”

Read More

Math-timising

Part of a project I’m working on requires converting from a time string (hhmmss) to a single integer of seconds. My first approach was to multiply each character individually. void gps_import(void) { unsigned char c; c = gps[0] – 48; utc = c * 36000; c = gps[1] – 48; … “Math-timising”

Read More

AVR Makefile

BIN = project OBJ = main.o one.o two.o MCU ?= atmega328 LFUSE ?= 0xFF HFUSE ?= 0xDE EFUSE ?= 0x05 DIRSOURCE ?= src DIRBUILD ?= build DIRBIN ?= bin PROG ?= atmelice_isp PORT ?= usb BAUD ?= PREFIX = avr- CC = $(PREFIX)gcc OBJCOPY = $(PREFIX)objcopy OBJDUMP = $(PREFIX)objdump SIZE … “AVR Makefile”

Read More

Altronics PC Birdies

Second kit from Altronics, ‘PC Birdies.’ With my lesson learnt from last time I started with the short components and worked my way up. Two microprocessors is an odd design choice, they have to do this complicated synchronisation thing between them and they both have watchdog timers running and really… … “Altronics PC Birdies”

Read More