For literally years, I’ve wanted to start a project using a 32×32 RGB matrix, however they have been prohibitively expensive for some time. Granted you can still pay a fortune for them but I managed to pick this one up for £18 at Pimoroni, which isn’t cheap but still affordable… I no longer had an…
Category: Uncategorized
Raspberry PI 4 – initial thoughts
I’ve had a Pi4 (4GB) for a few weeks now and overall I have to say I am really quite impressed! and for a curmudgeon like me that’s saying something… (bonus video at the end of the post…!) The first thing to discuss is temperature, while for the first week I was using the Pi…
PoolArray – C array tracking
A pattern I have found myself using a number of times is a pool array, you can just use an array, and simply scan over it when you need to find an unused item, however that can be a little inefficient, another strategy could be to use a linked link and allocate and free individual…
cLogicFun – sub circuits
Its common with logic circuits to have a number of similar groups of logic elements, for example a counter can be made from a number of master slave flip flops. Rather than recreate this part of the circuit multiple times, create a circuit and assign in input and output pins, these are then used when…
cLogicFun – signal propagation through labels
I’ve implemented two new nodes in cLogicFun, a source label and a destination label. It’s not uncommon to see the same signal introduced at numerous different points in a circuit. This means for common signals that are needed in many places you don’t need to route wires all over the circuit. They have a special…
cLogicFun – building virtual logic circuits
For a little while now I’ve been working on cLogicFun, and while its far from perfect and definitely a work in progress you can do quite a bit with it. There are a number of examples provided but first lets take a look at the different “nodes” you can add to your circuit. AND, OR,…
cLogicFun (coming soon)
After I found that porting cLogicToy from Java to C, meant a much improved simulation algorithm, I was inspired to break out of the grid paradigm and try something with nodes and wires as you see from the screenshot… How hard can it be ? I thought, having a bunch of nodes and wires. Well…
cLogicToy
I was looking to update a Java app I’d written and with all the changes recently with Java (modules and a bewildering array of stuff) I decided it would probably be easier just to rewrite it in C. The result actually works much better, I previously used an event based system, that I wasn’t entirely…
C and Physics – hinge2 Vehicle
After our previous demo featuring falling bodies, we’re now tackling something much more interesting and potentially useful, vehicles. The hinge2 joint if you look at the manuals diagram, looks like it was made solely with vehicles in mind, it’s just begging to be used! Let’s dive right into the additions to the collision callback By…
C and Physics – Falling bodies
Last time although we didn’t actually do any physics, a simple renderer was introduced that has given us a foundation to build upon, you should review this previous post and have a good look at its code before continuing here. Speaking of code as usual there is more code available to accompany this post (link…