Home

Welcome to auctoris.co.uk

These are some of my most recent posts in chronological order. For more, checkout posts for all of my posts, or tags for posts by category.

Some time ago (11 years ago, in fact – all the way back in 2012), I wrote a blog post about how to control GPIO on a Raspberry Pi using sysfs and the /sys/class/gpio construct it provided. Well since then, time has passed, and in the way of all things, so has the “GPIO Sysfs Interface for Userspace” (as it’s formally known) – which has been deprecated. In fact it’s been depreciated since 2015 – but I (like a lot of other people, I suspect) didn’t notice.
This is just a quick post to share something that I learnt only very recently, whilst chatting with a wise Sensei, about how the continuity mode of most multimeters actually works. Continuity mode is perhaps one of the most used modes on a multimeter for many people. Simple, it lets you test for electrical continuity between any two points. It’s super useful, in trying to reverse engineer a circuit board you don’t have the schematics for; or for testing if joints like connectors or solder-joins are making a good connection… If there’s a complete circuit between the two points being probed, then a buzzer or beeper sounds; and if there isn’t then there’s silence.
A tranquil lakeside It’s mental health awareness week – and I wanted to write something on that topic. This is kind of difficult for me, as it’s not a topic I often speak openly about – but I live with chronic anxiety & depression. I was first diagnosed some years ago in 2012 – and making that first trip to the doctor’s was one of the hardest things that I’ve ever done.
Like so many other people, over the last few weeks of lockdown, I’ve been trying to use the extra time that I’m not spending commuting to work to learn some new skills that I’ve always meant to get around to learning. In particular, I been teaching myself ARM Assembly Language programming. I’ve always been more interested in the low-level side of computer programming – than I have been in applications. I’ve always (even as a child) wanted to know how the magic box that is the computer actually works.
I’ve not actually written anything here for quite some time (it turns out that doing a part-time PhD really eats into your electronics project time… Who’d’ve thought!); so I thought I’d take advantage of the current isolation and a few days off over the Bank Holiday, to catch-up with some blogging… The venerable NE555 timer IC was introduced in 1972; and due to its versatility is without doubt one of the most common integrated circuits ever made.
In this final part of the series I’m going to look at one further way we can use Boost.Python to help when using a C++ class within Python. In the previous part we built a wrapper for a C++ class, exposing a number of class methods to Python. However, in Python, it’s quite typical for a class to use properties as well as methods. So to begin – let’s take a moment to look at properties within the context of classes in Python.
Last time we looked at how to use Boost.Python to wrap a very simple piece of C++ code. This time we’re going to take that one step further along, and do the same thing for a more complex C++ example – which includes a C++ Class. For the purposes of this example – let us assume that we have a “legacy” C++ class (i.e. one that we’re not going to change): which looks something like this: