LED Cube


I’ve seen many LED cube projects pop up on relevant blogs (HackaDay and MAKE blog to name two) and wanted to make my own but it never reached the top of my todo list until I recently started playing with the WS2812 RGB LEDs (more commonly known to some as NeoPixels). These delightful LEDs come in wonderfully small packages (I’m using the 5050 surface mount ones but I believe they are also available as through-hole 5mm LEDs). I made a spinning dodecahedron out of milled PCBs which was adorned with such LEDs (read about that here) and when I took delivery of the bare WS2812B LEDs, which only have four contacts (power, ground, data in and data out) I realised I could free-form them in a series of columns to create a cube. I expect this has probably been done before but as I was due to give a workshop on Controlling LEDs with Arduino I thought this would make an ideal example.

Click Continue Reading for details.

Continue reading

Quick Arduino LED Clock

In two weeks I’ll be giving a workshop on Controlling LEDs with Arduino, where I hope to present ways in which the Arduino can be used to control lots of LEDs though charlieplexing, IC controllers (such as the MAX7219 used for the clock face) and addressable LEDs such as the WS2812 (a strip of 24 such LEDs illuminates the seconds and hour position from the back of this clock).

The clock was thrown together with what I had kicking around. The body comes from an old IKEA clock (I’d bought it for the movement which went into a CNC cut LP clock) with four 8×8 LED matrices controlled by MAX7219s. Behind that a strip of NeoPixels / WS2812 LEDs provides the seconds (red band) and hour position (blue pixel).

The code could do with some work. It is based on the TimeSerial example provided with the Time library and as such it needs to connect to a PC to set the time. I’ve ordered a Real Time Clock (RTC) to aid in removing that dependancy. I might implement some sort of minute hand on the RGB LEDs, perhaps by lighting a few in another colour (and blending the colours as I have done when the second hand reaches the hour hand). The clock could be programmed to display a rainbow or larson scanner effect when the clock strikes an hour. I might add a Light Dependant Resistor (LDR) to adjust the brightness of the LEDs to match ambient light levels.

Finishing off the face with something which will replace the scrap of cardboard used to hold the LED matrices in place is about all I expect to do with this.

HDMIPi Stand


I backed the kickstarter for HDMIPi, a 9″ LCD designed for use with the Raspberry Pi. It didn’t take long to assemble thanks to a good video walk-through and although I had some teething troubles with a dry joint on the micro-USB power socket (fixed by reflowing the solder with hot air from a desoldering station) I have been reinvigorated in my interest in the Raspberry Pi. The first thing I needed to do with the HDMIPi was to build a stand for it. I had elected for the black acrylic styling and since I happen to have some offcuts of 3mm black acrylic I was able to laser cut a matching stand at MAKLab.
Continue reading

A Good Days Polargraphing

I first learned of polargraphing from either OllyR on Letsmakerobots.com or from seeing Sandy at the Edinburgh Mini Maker Faire in 2013. When I recently realised that I had the necessary parts (minus a few of the cheaper components) to follow in the footsteps of Sandy’s Polargraph.co.uk build I downloaded the files and 3d printed some sprockets (on MAKLab’s Ultimaker2) and laser cut motor mounts (my own design). Today I finished that all off by making a crude pen gondola (clear CD, cardboard tube and screws/nuts/washers).

Gondola and Super Goat

The first print was of a vector produced by one of the MAKLab volunteers (I didn’t have anything prepared and was busy setting up the polargraph so it fell on the volunteers to produce a vector drawing).

MAKLab M on Polargraph

Proven to be working the next logical step was to draw the MAKLab logo. In this picture you can see the two stepper motors mounted to the drawing board (acrylic mounts clamp to the board) and the Arduino and Motor Driver Shield are zip tied to the top. My laptop is on the right running the processing sketch, turning the vector drawings into gcode and sending them to the Arduino.

Spirograph on Polargraph

I downloaded SVG Spirograph (it was the first link for my google search) and promptly produced a spirograph (ideal for this setup since I don’t have a servo installed to lift the pen off the page). It was mesmerising to watch and drew some attention. I think it would be cool to add a “Spirograph of the Day” which automatically generates a new spirograph and draws them each day (same spirograph drawn all day whenever the paper is replaced and a button on a laptop pressed).

Time lapse of the plotter in action. Unfortunately I forgot to take a photo of the finished spirograph.

EDIT: Added a servo to lift the pen off the page and got a photo including the finished spirograph from the previous Saturday.

Spirograph and Pen Lift Servo

Produced another Spirograph, This one looked better part-way through but looks messy now. Timelapse at the end of this post shows it turn from good to great to messy.

Saturday Spirograph

We wanted to try drawing a picture so I selected a photo from my flickr vectorised in Inkscape and loaded into the Polargraph software. The result was great.

Polargraph Penguin

Time lapse of this Saturdays drawings:

Minishift from Arachnid Labs

While at this year’s Maker Faire UK I picked up a Minishift kit from Arachnid Labs. I had previously bought their circuit pattern cards which I make use of when teaching the Intro to Arduino workshop. I soldered up the kit in the evening I got back from Newcastle using the instructional videos (a few non-intuitive elements such as orientation of the LED array and remembering to put the screws in before the LED array). I struck an obstacle when I tried to install and use Arachnid Labs’ Python example and not having much experience with Python I’m clutching at straws trying to get it working.


Falling at the first hurdle. On Windows 7 I tried using pip found in the Scripts folder within my Python 2.7.3 installation to install minishift-python but it spat back ImportError: No module named resource.

In hunting for a solution I found that I hadn’t added C:\Python27\ to the Windows Environment Variable %PATH% and while I was correcting that I added %PYTHONPATH%.

https://docs.python.org/2/library/resource.html states that the resource library is for UNIX platforms. I got this far and having seen this on a few google results decided that perhaps this isn’t Windows compatible.



Moving to Ubuntu on my old laptop I followed the Arachnid Labs instructions but couldn’t get the daemon running nor could I use the python example program to directly write text to the display.

ImportError: No module named hidUbuntu Screenshot

I had a go at installing cython in order to install hidapi (can’t find the link that inspired me to try that route) but my abilities with linux are rather limited and I hit some roadblocks I couldn’t get past.

Trying python -m minishift.minishiftd -d 32 appeared to pass (no feedback to the contrary) but when I use curl -G http://localhost:8000/set –data-urlencode “text=Test” it responded with curl: (7) couldn’t connect to host.


I was able to test that the minishift itself works by connecting it to an Arduino (without the USB to SPI adapter) and running the test code provided by Gregory Fenton on his blog labby.co.uk. With this success I went on to reuse portions of Arduino code I’d used with a MAX7219 LED array to scroll some text (only to find that Gregory had gone on to do something similar and post it on his blog).

MAKLab Move Shop

New MAKLAB Studio

On Monday 7th March 2014 MAKLab opened it’s doors at their new premises in Charing Cross. They started off in Gallery 1 of The Lighthouse and after nearly 2 years in that space decided it was time to move. With a sterling effort from staff and volunteers the move was completed in only 2 weeks. This included ripping up floor tiles and laying a reclaimed gym floor, paining the studio and moving in the equipment. There are a few jobs left, putting finishing touches here and there, but as our first Saturday approaches I think they’ve settled in nicely.

The shop is located in the Charing Cross Mansions at the foot of Sauchiehall Street overlooking the busy junction with the M8 motorway running by and major road arteries stretching off into the West End, up to Maryhill and down to the Kingston Bridge.

While I’ve been down often to help out I’ve yet to get some photos of the work that has been done. A fellow MAKLab volunteer has a photoset available on Flickr if you’re keen to take a sneak peek but I highly recommend you pay us a visit.