Tag Archives: programming

ESP8266 and MicroPython: first scripts

So I have MicroPython installed on an Adafruit Huzzah ESP8266 dev board. The next step is to get it to run something. MicroPython establishes a basic filesystem using the board’s flash memory. This is handy for storing configuration and data files. And it supports a directory structure. But there are two files in particular you need to get to grips… Read more »

AVR: Battling bizarre bugs

      No Comments on AVR: Battling bizarre bugs

Do you ever get the feeling that a compiler is acting weird just to mess with your head? That’s how it felt yesterday. I was tinkering with the code for my HexMonitor. This uses an ATMEGA328P microcontroller to read values in from an eight-bit data bus or a 16-bit address bus (selectable via a switch) and display them on a… Read more »

Debugging AVR ATMEGA code with Atmel Studio and ICE

One of the more challenging aspects of writing code for microcontrollers is not being able to liberally sprinkle your code with PRINT statements to show the state of variables and whatnot at particular moments. If you’re working with Arduino-type devices you can always fire up the Serial library and print stuff that way – back down the wire to a… Read more »

AVR basics: ports and direction registers

Pretty much the first thing anyone does with a microcontroller, whether it’s a naked AVR chip or something fancy like an Arduino, is flash an LED. This series is part of my learning process and I hope it will help others who, like me, are embarking on projects such as programming AVR chips. The way I learn things is to… Read more »

AVR basics: An introduction to AVR registers and macros

It’s occurred to me that I somewhat jumped the gun when I wrote a blog post a while back about interrupts on AVR ATMEGA microcontrollers. Maybe it would be useful to take a step back. This series is part of my learning process and I hope it will help others who, like me, are embarking on projects such as programming… Read more »

AVR basics: interrupts

      No Comments on AVR basics: interrupts

[As I may have mentioned somewhere, this blog is about my journey through the worlds of electronics, robotics and retro computing. I’m not an expert in any of these. In fact, I’m learning as I go, and this site is my way of sharing what I’ve learned. So this is the first post in yet another occasional series detailing my… Read more »

A little bit of an obsession

      No Comments on A little bit of an obsession

So I wrote this Python program to allow me to carry out certain kinds of calculations on binary numbers — you know, AND, OR, XOR and that kind of thing. It’s an absolutely essential tool for anyone who, you know, needs to NAND two 12-bit binary numbers. And happens to own a PiDP PDP-8 replica. Okay, so that’s a very… Read more »

Python on the PiDP

      No Comments on Python on the PiDP

I’m not really a C kind of person. And so when I finished building my PiDP kit, I immediately started thinking, ‘Wouldn’t it be nice to use all these switches and lights from Python?’ Because Python really is my kind of language. You can be properly expressive in it. And there’s not all that nasty business with make files. Fortunately,… Read more »