Hack Hitchin

Dates for your diary

May 2nd, 2017

Just a quick update this time.

Our build nights for May will be on the:
As usual, these will be held from 7:30pm in the pavilion on Ransom’s Rec, off Nightingale Road.

The social night is going to be on the 9th. This will be in The Vic, at the end of Bancroft, from 7:30pm.

Progress with the Bancroft toilet block is slow and steady. There is a fair amount of grunt work, as well as more specialised jobs to get done. If you’d like to get involved with the renovation process and think you have skills we could utilise, please get in touch. The sooner we can make this our permanent home, the better.

Posted in General | No Comments »

Making a Hackspace, part 1

April 4th, 2017

On March 14th 2017 Hitchin Hackspace celebrated its fifth birthday. For most of the last five years, we’ve met once a week in a hired room, but the limitations of that, such as only being able to work on things on a Monday evening, having very limited space for tools and equipment, and not being able to store projects, were becoming a problem. However, just over a month before the celebrations, we got an early birthday present: the keys to our very own space. Not that it was ready for us to walk in and start Hackspacing. It needs a bit of work doing first. In fact, it was a bit of a toilet.


Plan of building

Current building layout

In late 2007, North Herts District Council closed up the public toilets on Bancroft, a road in Hitchin running from the pub where we hold our social evening, to the town centre. A few years later, a large mural was placed over the front, in an attempt to make it look less like an abandoned toilet. Some time later, we expressed an interest in using the building, and finally, after an epic set of bureaucracy, we have a 5 year lease on the building.

So what do you do with an abandoned public toilet? How do you turn it into a Hackspace?

Blue mural

The mural covering the front of the building

Opening the door

Mark and Dave attempting to break and enter

Open door

Success! We have since made this more secure

The first thing we did was have a good look around. Our lease started on February 9th, but it took a few more days to ge the keys to the padlocks which would allow us to enter. Reasoning that we couldn’t get into trouble for “breaking and entering” into our own building, we managed to bypass past the padlocks (priority number 1, improve security) to inspect what we’d agreed to look after for 5 years.

The most obvious problem was that after being abandoned for almost an entire decade, the back of the building was in danger of being engulfed by triffids ivy and other plants, while the roof was covered in a thick layer of moss, twigs and decomposing leaves.

Overgrown building exterior

Mark and Dave removing plants from the rear of the building.

It soon became apparent that these plants were doing more than just looking a mess; they were damaging the roof too. It had leaked in a few places, with some rotten roof beams the unwelcome result (priority number 2, clear off the plants).

Rotten beam

Rotten beam

Other than the roof, the rest of the building was thankfully free of damp. It was also pleasingly free of rats, insects (other than the million* spiders who made working in the loft a thoroughly revolting task), feral cats, foxes and people, although we did find evidence (in the form of beer bottles, fag packets, a pair of trainers, a removable car stereo faceplate and some classic pornography) that someone had been squatting in the loft before the building was closed.

If you’re that person, I’m afraid we threw your stuff in the bin. Even the porn. Sorry about that.

Also making an early trip to the bin were the accumulated leaves and litter which had blown or otherwise found their way into the building.

There was mains water to the building, at least as far as the stop tap, and electricity, but that got no further than the main fuse, which had been removed. The electrics were grubby and rusty in places. There are no doors; back when it was a toilet, the building was secured at night with iron gates, more recently the board which hosts the mural has doubled as an added layer of security against intruders. The windows are in poor condition, most are damaged or broken and some of the frames are rotten.

So what have we been up to in the last two months?

Well, we’ve had a smashing time. Most of the cubicle walls have been removed to open the space up. The gents’ walls are brick-built, and were dismantled with extreme prejudice by Rich, Alex and Paul. The majority of the ladies’ side walls were a sort of concrete slab reinforced with metal, which turned out to be impossible to shift. They too were broken into smaller chunks for removal.

Toilet cubicles

Before (gents)

Toilet cubicles

Before (ladies)

Pile of bricks and rubble

After (gents)

Open space with rubble

After (ladies)

The disabled toilet cubicles on each side are still in place, until we can decide how we want the new space to be laid out. We’ll need a toilet, and it’s almost certain that it will be in one of those cubicles**

For the same reason, although we’ve stripped out the contents of the cistern room in the middle of the building (toilet cisterns and their associated plumbing, mostly), we’ve left the plumbing for the disabled toilets, until we decide which one we’re keeping and whether we need to replace it.

Cistern room

Before (cistern room)

Plumbing removed

After (cistern room)

The exterior of the building is now a lot cleaner. The ivy has been pulled away from the walls and roof, and the moss and decomposing plants removed. The last few stubborn bits of ivy will hopefully succumb to a good pressure washing.

Building, minus plants

Noticably fewer plants on the outside of the building

Removing moss from the roof

Alex removing the moss

Removing plants from the rear of the building

Andy clearing plants

The plumbing has been mostly cut off from the water main, leaving just a couple of sinks for handwashing. We quickly discovered that the plumbing had become entirely disconnected from the water main; it seems that the stop tap had “fallen off” where it met the pipe from the loft which distributed water around the building. After reconnecting the pipe and stop tap, it also turned out that although the pipes were lagged (and warmed by trace heat tape, but this is no help when the electricity is disconnected…), at least two pipes had burst. And that’s just in the small amount of pipework we reconnected.

Burst pipe

“Oh fiddlesticks”, or similar words to that effect

We contacted the water company to arrange billing. They can’t locate any records of our building. Sadly, we suspect this doesn’t mean we’ll get free water.

On the subject of electricity, Dave had not one, but two electrician friends who were willing to come and help us sort out the power. Special thanks to David Hill who spent a long Sunday afternoon removing the rotten old fusebox and replacing it with a modern, safe consumer unit and isolator switch. Finally, just before the end of March, the power company came out and replaced the ratty old meter with a smart (in every sense) new one. They also fitted an isolator switch which can isolate our isolator switch, for some reason we’re not entirely clear about. At the moment, the only thing wired in is a double socket next to the fusebox, as the rest of the wiring needs to be checked, but it has allowed us to grind away some troublesome metalwork which was posing a trip hazard.

Old meter and fusebox

Before (electricity)

New consumer unit being fitted

During (electricity)

New meter and consumer unit

After (electricity)

So what’s next?

Submit plans for the interior to the council. We’re obliged by our lease to run our ideas past the local council, at least when it comes to knocking holes in their building. We’ll probably end up taking out one central wall to open up the cistern room, and putting a doorway through the other wall. The question is which wall, which represents the biggest challenge we have faced to date:

Get a group of hackers to agree on a layout. Tricky. Proposals here

Strip out the remaining toilet plumbing. There are still water tanks in the loft, sinks where sinks aren’t needed, a water heater which appears to have rusted through, two urinals and their plumbing, and at least one cistern which needs to be removed. Not to mention 8-9 stainless steel toilets in need of a new home, and a number of connections to the sewer which need to be permanently filled.

Knock down the remaining walls which need to be removed. Make a doorway between the two sides of the building.

Fix the roof. This is a big one, and other than a brief word of advice (“rafterectomy”) from a structural engineer who has seen some photos, we’ve not done much to address it yet

Get rid of some waste. We’re accumulating a signficant pile of brick, tiles, cement, plumbing, electrical junk, fixtures and fittings, and so on, to dispose of. Hippo Waste (the company which makes and collects those yellow waste bags) have kindly donated a Hipposkip bag (and collection thereof) to us under their Grants Up For Grabs scheme. Hopefully we’ll be able to fill this up soon and have it taken away.

Can I help?

Yes, please! We particularly need people who can fix the roof, or knock down a wall without taking the whole building with it, or advise on structural matters, or help seal the drains. We’ll also need to remove at least one skip’s worth of bricks at some point. On the materials side, we need paint, plumbing materials, new wiring and trunking, doors, windows, and lots of other things. If you can help, or know of some grants we can apply for (or would like to make one yourself), we’d love to hear from you.

* May only have been a few hundred, mostly dead, but that doesn’t make it any less unenjoyable
** Yes, we’ll build the walls so they reach the ceiling…

Posted in The Facilities | No Comments »

Monthly recap and dates for you diary

April 2nd, 2017

The last couple of months have been very busy for the members of Hitchin Hackspace. Not only were members meeting twice weekly to finish our robot for Pi Wars, but we have also (after an arduous 2.5 years) been given access to the abandoned toilet block on Bancroft.


We’ve already spent many weekends there, tidying, repairing and planning what will be our very own bricks and mortar Hackspace and though we’re still a way off being ready to move in permanently, we’re eager to get there. These are exciting times.


On the 14th of March we celebrated our 5th Birthday. What started as three strangers meeting in The Vic for the first time has turned into a most excellent community with many members who love to make and have fun doing it as a group. We had a good turn out of members old and new, and there was even the traditional Hackspace birthday cheesecake.




The Pi Wars team have spent today at the Cambridge Computer Laboratory for the first day of competition – school teams. They’ve been having a lot of fun meeting the other teams and even had a VIP guest bighak commander – Dr Lucy Rogers, a judge on BBC Robot Wars and the head judge for Pi Wars.

Our team will be competing tomorrow and we are all keen to find out how well they they do.


Dates for your diary

Our weekly Build Nights for April:

  • 3rd
  • 10th
  • 17th
  • 24th

These events will be held in the pavilion on Ransom’s Rec between 7:30pm-10:00pm. Everyone is welcome to come along and see what our group get up to. You can bring a project along if you’d like, or just pop in for a chat. New people are always welcome and we enjoy seeing what projects they may bring.

Our social is on the 11th. This will be held, as always, in The Victoria at the end of Bancroft. This is an informal event and again, everybody is welcome. We start arriving from 7:30pm and it usually goes on until 11:00pm.

We hope you can make it to some of these events and if you know anyone that might be interested, bring them along. The more the merrier!



Posted in BigHak, General, Pi Wars, Raspberry Pi, The Facilities | No Comments »

Piwars 3.0 Deadline Looms

March 28th, 2017

The final few days are here!

Obviously all competitors will have completely finished their robots and will have dialed in the settings to perfectly tune each task to run a peak performance….yer right.

Last year we ran so close to the deadline that we were not just tweaking challenge code on the competition day, we were completely writing some challenges from scratch. This year we made a conscious effort to start early so that wouldn’t be required. So far that hasn’t gone exactly to plan. We started early, for sure, but got bogged down in the details and minutia that little things like getting a robot driving early on and thus allow for driving practice seemed to fall by the wayside.

In fairness, last year we went all out in the last 2 weeks. So much so that it caused a few “issues” with home lives, requiring the use of many, many ‘browny points’. This year has been a definite improvement. So far we have managed to not need the last mad dash effort, but it’s going to be close still.

We have made the strip board version of the breadboard electronics. It’s pretty simple as it is mostly just I2C pins with a small amount of magic components that make our lovely laser sensors work beautifully. The soldered board being significantly smaller than the breadboard, which will make the bot a little neater.

We’ve been playing with LED’s. This was one simple test to make TITO2 “shine” above the rest. As it’s not part of the basic challenge, we’ve left it a little late. However, Brian has come up with some “bright” ideas…really sorry, could’t resist.

Over the last few days/hours we have got the line following sensor working and mostly coded up to work. Big improvement from last year as we wrote that challenge off near the end. It’s taken quite some research to get a sensor that can read the laminated sample provided. With some testing, playing, research and purchasing power, we now have a sensor board that, although doesn’t work directly with the Raspberry Pi, does via an arduino nano. It’s a bit annoying as if it wasn’t for this, the only real electronic device other than ESC’s was the Pi Zero W. But, it’s only on the sensor mount, and the sensor was a bit of a pain to get information/code samples from the manufacturer that I’m still classing it as a win. I should stress, although the sensor picks up the printed line on the vinyl print, the readings are much closer to white than the black electrical tape readings. It may still prove in tougher testing to be less reliable.

Anyway, I hope you all are progressing well. There maybe one or two more posts before the deadline, depending on time, energy and sleep requirements.


Posted in Pi Wars Old | No Comments »

Piwars 3.0 ‘T Minus’ Countdown Continues

March 25th, 2017

Starting to feel the time pressure a little now…

TITO 2 has progressed from early prototype into a the early stages of final bot. This means that the laser cut chassis has been altered to include all known mounting points for the electronics as well as shaped for the b-e-a-utiful 3D printed clam shell bodywork.

What this has meant is that the motors, battery, wiring harness, pi, connected sensors and all other items have been meticulously and carefully transferred from the prototype to the release candidate chassis. The result of that is the motors are now obviously backwards, the left distance sensor is now the front…well, you can see where I’m going. The motors being wired backwards was actually a blessing in disguise as it wasn’t noticed till then that RC mode was driving backwards (sad face).

So, RC mode now correctly drives forwards, but our autonomous modes all flip out. It should be a simple matter of code changes, but it’s all time that we know we have little of.

I2C OLED screen

The team are working tirelessly to get the robot ‘fighting fit’, so Paul has taken the I2C circuit design and strip board away to solder up a proper (non breadboard) I2C connector/extender for all the I2C sensors and screens that all need to connect to the single set of 4 pins on the Pi. Martin, Rob and I have gone to sit in a dark room and think about what needs to be done on the code base to progress the project ready for yet more driving tests and tweaks on Monday. Paul also knocked up a laser cut rig for the golf challenge, so that will need to be assembled and ‘electrified’ ready for testing on Monday as well.

Mark has been busy in the evenings designing 3D objects to be printed that will safely hold our sensors so that the electronics don’t fall off or get damaged by inevitable contact with the walls.

Brian has volunteered to take charge of the line following sensor. This is an area that has hit problems. We noticed that the line detection was sketchy at best when using the line sample kindly provided by Piwars Mike and Tim. We think the sample has been laminated with some sort of IR reflective coating (probably to stop the course/banner from fading in sunlight). This means that our sensors (and apparently other groups sensors as well) have struggled to see the change in colour as they only see a reflection. The effect is similar to the 2 way mirrors seen in films where several ‘usual suspects’ line up in a well lit room. They cannot see the people judging them in the dark room the other side of a pane of glass, mainly due to their rooms reflections overpowering the small amount of light coming from the dark room. To try and overcome this issue we have been playing with all kinds of techniques like blocking out all external light sources, changing sensor distance from surface, angle of sensor to surface, disabling onboard IR LEDs and using an external IR source at a significant angle difference. None of these bore much fruit and neither did the following test of seeing if out IR sensors were sensitive to visible light. Good news, they are…bad news, not enough (again, sad face). Our final tests was to use black electrical tape over the top of the sample line. This instantly was a solid detection using the standard sensors in the standard manor. Our options are rapidly disappearing. Two remain, use a different senor to detect the line (probably the pi camera currently being tested by Brian), or kindly request Piwars overlay black electrical tape onto the course.

Anyway, to quote a good film ‘Keep moving forward’ (without googling, you have 3 guesses which film).

Posted in Pi Wars, Pi Wars Old, Raspberry Pi | No Comments »

Piwars 3.0 ‘T Minus’ Countdown Begins

March 22nd, 2017

I recently received the email from Piwars reminding us that the end is in sight. “Thanks Mike and Tim!”

I don’t know about the rest of you, but it certainly gave me that same warm fuzzy feeling inside that you get when you wake up knowing you are late for work!

Where are we with our robot? Well, that is a very good question. We meet as a group at least twice a week to push the project forward, but we also use our evenings and weekends as well. Although we did get stuck with EM interference issues for a good couple of weeks, we have now recovered from that and made a huge surge forward with getting TITO 2 ready for the impending challenges.

  • TITO 2 , although still in prototype mode, has now successfully and repeatedly navigated our mock up of the Minimal Maze. Seeing it do this really helped me believe that we will get it ready in time.
  • We also have tested TITO 2 on the straight line speed track, however not at full speed…not even close. I’d like to get a few more runs at this to dial in our tweaks so that it doesn’t touch the sides.
  • Our RC mode has also been tested (to the dismay of Mark who very kindly spent at least 40 hours 3D printing the shell). We know that it at least works in this configuration, but there are some significant improvements to be made, as the general consensus is that it is “a little twitchy”. That and the tank steering mode has made it nearly undriveable to all but experts (ie Mark).
  • Line following has hit a snag. Our sensor board is clearly suffering an injury of some sort and so we may have to fall back to OpenCV and a Pi Camera. As we have little to no code for this yet, I’m not even slightly concerned………
  • Slightly Deranged Golf is basically RC mode with a ball moving attachment. This attachment is yet to be added to the bot but has been tested in prototype stage.
  • Pi Noon is again basically RC mode. Once we’ve sorted the steering and throttle issues, I’m sure we will have this pegged!
  • Skittles. This one always fills me with joy. We have made progress and have a prototype that will actually do this. I mean, it’s not tested in any way shape or form. But surely that’s just minor details?

Here are a few short videos showing off what we have accomplished so far.

So, after checking back in with you I hope you can see that we are moving forward!

Posted in Pi Wars, Pi Wars Old, Raspberry Pi, Uncategorized | No Comments »

Piwars 3.0, back from radio silence

March 3rd, 2017

Sorry for no posts recently, it appears life can get really busy, really quickly!

Since the last post we haven’t been idle though. The prototype bot is now drive-able both remotely and autonomously using distance sensors. We have a short video of it following a wall (albeit very slowly), but it is doing it!


Whilst busily working away testing sensors, we encountered a problem…and I quote Martin

“After some initial success with autonomously driving our test chassis using an old analog distance sensor, we set about upgrading to some snazzier laser distance sensors with much better resolution, talking to the Pi Zero over I2C.  In the test setup the sensors dutifully reported the distance they measured, but as soon as we tried to actually drive the robot the sensors started to reset themselves, losing their bus addresses and returning garbage values. As the problems started when we started turning the motors, the suspected causes were either noise on the power supply, or radio interference.  

We had previously had some problems with these sensors which turned out to be a loose ground pin, but tightening up all the connections and adding a capacitor to smooth the power supply didn’t help.  We then put together a test setup with a Pi reading values from the distance sensor, and a motor wired up to a separate battery through a switch so it would have no effect on the Pi’s power supply. Sure enough, a quick spin of the motor was enough to disrupt the I2C sensor, so radio interference had to be the culprit.
We brought out the oscilloscope, and probed the XSHUT (or “don’t turn off”) pin on the sensor. This pin has to be held at 2.8V for normal running, as bringing it to ground will reset the sensor. There was a little noise on the signal when the sensor was running which was likely to be crosstalk from the signal wires, but at 0.1V it wasn’t significant enough to cause problems. As soon as we ran the motor, however, the scope lit up like the proverbial Christmas tree.  The wire from the XSHUT pin to the Pi’s GPIO header was acting as an antenna, picking up interference from the motor next to it and triggering the sensor’s reset function. 
We tried a couple of different changes to keep the signal under control, with the eventual winner proving to be a large capacitor that would soak up the interference and banish the electrical gremlins.  With the capacitor in place, the oscilloscope showed the XSHUT signal staying calm, and the motor could happily spin away right next to the sensor with no interference issues.  Result: four happy roboteers :)”
Interference before and after
Above is a screenshot of the oscilloscope before and after. Note how the before (upper half) is looking all over the place, and how it has been resolved (mostly) in the lower half of the image to a single static line.
Not only have we managed to resolve a very problematic issue, we have done away with most of the additional controller boards. We moved to a PiZero as was always the intention, but we have dropped the requirement for an arduino as we are now using digital I2C distance sensors. Not only that but we then decided to use a Zero4U board to allow both wifi and bluetooth dongles without a huge USB hub plugged into the USB OTG port. That said, the Pi foundation has just released the Pi Zero W that has those two components on-board…so we dropped the Zero4U from the requirements as well. Other than ESC’s, sensors, battery/regulator and the voltage monitor, the whole thing is run from one single Pi Zero W at the moment.
If you watch the video linked above, you will see exactly how much the hardware has been reduced. Its all coming together now!

Posted in Pi Wars, Pi Wars Old, Raspberry Pi, Uncategorized | No Comments »

Piwars 3.0 Day 4

February 7th, 2017

Hi World,

I promised proper coding and possibly some testing…well I may have to disappoint. Coding has happened (although as some of it’s mine I wouldn’t class it as proper) but we have only limited testing so far, no vehicle movement, just individual components.

We have been attempting to find a secure way to attach our wheels to the motors. Last year we 3D printed wheel hubs and they worked, mostly. In last years testing they proved reliable, reliable to fall off that is, so we resorted to glue which meant minimal ability to replace motors or wheels should something break….which it did on the day (rear left gearbox on motor was having huge issues). So this year, something new.

Aluminium HubThe silver round metal object is our lovely new aluminium wheel hub. Its tiny which is both good and bad. The centre hole is 4mm and fits our motors beautifully, however the grub nut and 4x bolt holes are just too small for the forces we expect to shove through it. Not mentioning that the ebay special has an american standard screw thread which none of us can find in our spares boxes.

So, onto the work that needs to be done. We need to re-tap them, but obviously we can’t keep the hole the same size as the new thread would be so weak against the old thread. So we are upsizing them from M3 (ish) to M4. This will give (hopefully) a stronger grip for the bolts that will be holding the wheels onto the motor shaft.

Beautiful 3D Printed HubAnd the result, 4x colour coded allen cap head bolts for added stealth. I say stealth, amusingly the first test 3D print of the lovely new wheel hub (designed by Mark last year and lovingly modified by Paul for the new bolts) was done in a blue ABS plastic as that was what was still in the 3D printer. Group members have already shown a liking to the blue/black combo, so we will have to wait and see which colour scheme we end up with.

Mark Working Hard

Mark in the photo to the left can be seen working hard (as he usually does) re-tapping the aluminium shaft blocks, and the rest of us can just be seen performing all kinds of ungodly wiring and coding stuff. The really really badly tangled wiring mess in front of Mark is my desk, but they always say “If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk a sign?”.

So, coding. There is currently two of us working on this task and we are taking last years code as an example of what and what not to do. The on-board hardware has changed significantly to reduce size and weight so a lot of the old code is no longer useful as it was for talking to devices no longer present.

Python Module Sketch

This little sketch is our first stab at trying to organise what talks to what and how many modules we will need. Safety is always paramount with us, so we will be utilising last years method of always having something listening to the controller so the motors can be put into neutral at ANY point, no matter what its doing. This will probably be done with the launcher thread running permanently in the background always listening for a specific button press and locking our any other modules access to the motors if needs be.

And we then segway into course construction:

Brian and Johnny Building Course

What you can see here is Brian and Johnny thinking way too hard about the course measurements. They are perfectionists (which I love) but are slightly stifled by the lack of measuring tools. They have found an old school ruler in one of the cupboards and are using that to measure and cut wood for the minimal maze task. Rather them than me.

So with course prep going on and lots of wiring and coding progressing, I REALLY want to see a vehicle test in the next week. I think we can do it (if I pull my thumb out). I know it will boost the teams confidence if the thing actually moves in a controllable way.

Watch this space…..

Posted in Pi Wars, Pi Wars Old, Raspberry Pi, Uncategorized | No Comments »

Piwars 3.0 Day 3

February 3rd, 2017

Oooooh there is so much I want to share you you all about our newest robot…but can’t. Sorry, sworn to secrecy 🙁

Don’t dismay, here is what I CAN tell you:

Over the last couple of years I’ve assisted in building several wheeled bots and prototypes (actually, counting back in my head its more that I realised). These range from tiny little three omni wheeled mico-pi noon entrants all the way up to our beloved bighak. One thing that they all have in common during the building stage is we haven’t ever built a rig testing station. By that (excluding bighak due to its size and weight) they have all rested on a china mug when performing motor tests. Normally this induces a fair amount of fear in me as the vehicle spins up the dangling wheels to their full speed (not always in the same direction as each other and not always stably…) and having loose wiring precariously close to the rubber grippy tires.

World, say hello to our newest creation:

Assembled Test Bed

Laser Cutting Test Bed


It may not be the most photogenic, but this is a big thing! We now have a ‘safe’ way to test our prototype AND drink our cups of tea, something not previously possible.

Now, we’ve had to do this previously but as I’m in charge of the blog I’d thought it required mentioning so that future Pi designs might be tweaked. Every time we come to mount the Pi (or pi camera module) we very quickly remember that the mounting holes are M2.5. If you didn’t already know, M2.5 bolts are not generally available from hardware stores as they are tiny. The smallest I’ve seen is M3, of which I now have a small stock with nylock nuts to pair with. Just to be clear, I’m not saying they are impossible to come by, far from it. A quick google will probably show loads of places to buy them online. What I’m trying to get across (and probably failing) is that not many DIY projects use them and so I don’t tend to hold a stock of them at home. This has previously led us to do something drastic:

Drilling out a Pi Zero mount hole

What you can see here is me finger turning a 3mm drill bit through an existing 2mm mounting hole. I’m using my fingers and not a drill mainly because the drill is cordless and not charged as I had forgotten I’d needed to do this 🙁

Before I get any grief, please don’t try this at home. I’m a responsible adult who will take responsibility if I break my own Pi. I don’t want to be responsible for anyone else who copies me.


Wii Classic Controller

Onto the “new” toy, ah the wonders of the second hand market! Last year we used a Wii controller with it’s nunchuk to drive our robot wirelessly. This year we wanted to improve on this as we were basically holding two separate controllers yet only really using one hand/thumb to drive thing. I’ve been researching PS3 controllers and have done a fair few tests with positive results when interfacing with a Pi and Python. Whilst the PS3 controller is ergonomic I don’t like how the thing pairs with the bluetooth adapter. It isn’t a simple button press and requires knowledge of the ‘dark side’ to get it to work. This means if the PS3 controller broke or ran out of juice mid contest we’d be frantically typing on a laptop to try and pair a backup. So, back to the Wii controller it is because this easily pairs each time the robot boots by pressing 2 buttons on the controller. this means we can have many spares and no-one needs divine knowledge as to which one is currently paired.

Whilst I was passing by a favorite second hand shop in town, they happened to have a Wii classic remote going cheap. I knew the Wii had plastic remote holders in the shape of guns and steering wheels and that they had balance boards and the like, but I wasn’t aware that these were made…probably shows just how much use my Wii actually got 🙁

I bought the controller and hurriedly ran home like Charley from the chocolate factory to see if I had purchased something useful or whether I’d wasted my money. I was in luck, the CWIID python module supported it (mind, this took a fair bit of googling and github searching to find the exact text state to request from the module and each button ID to test for).

If you have very good eyes you might be able to see a load of text on the screen behind the controller above. Each one of those is a test for a button state and a print line to report a button pressed.

So, at this point we have a basic test rig and a basic controller input. Next up will be proper coding and hopefully testing.

Posted in Pi Wars, Pi Wars Old, Raspberry Pi, Uncategorized | No Comments »

Piwars 3.0 Day 2

January 25th, 2017

Before we go any further lets agree to keep any costs between us. I wouldn’t want my family knowing exactly what I’ve spent on my hobbies instead of holidays 😉
First putter test

So with that out of the way, the basic drive-train has been decided and building started so next we need to focus on some of the challenges. Golf first as it has peeked our teams interest for most comical effect. Amusingly the photo above actually shows us doing first feasibility tests on using an arm mounted putter on a cheap lightweight servo. When I say putter, I actually mean metal ring with a pencil stuck to it 🙂

I can’t believe how many ‘unlikely to succeed’ ball moving suggestions we have gone through on the golf challenge. It started with the simple yet effective servo mounted putter pausing slightly with a variable power solenoid kicker and ended with gas powered combustion ball launcher. Seriously, someone (probably me) actually thought it might be funny to “fire” the ball….not a good idea, not power adjustable between shots and DEFINITELY not guaranteed to keep the ball touching the ground at all times.

Still, we haven’t actually settled on the putter idea as the solenoid one keeps rearing its little head because it seems ‘simpler’ and ‘less prone to mechanical failure’. On testing the metal putter idea above it was quickly noticed that any competing solenoid idea would either have to have a reasonable mass on the moving arm or be extremely powerful to have any chance of moving the ball any distance. Then comes the adjustable power problem….so, so far the putter is winning.

noir and nanoThe first round of tests were done using an Arduino Mega the team member writing the test code to make a servo move had one to hand, but obviously we won’t have room for such luxury in our bot so the second round of testing will be done on the Arduino Nano, shown with a carefully placed Raspberry Pi NOIR camera in shot. The reason for using Arduino’s to control the servo is basically PWM timing accuracy. Obviously the Raspberry Pi will be in control of the whole system and will tell the Arduino exactly what to do at any point, but why not sub-out some of the low level work to devices that are designed to do this kind of thing day in and day out. That said, the Arduino will also be used for multiple things in combination with the Pi. One such task will be analog to digital conversion as the Pi has no analog GPIO pins and a Nano is a very cheap way to incorporate this feature.

motor kitNow that the drive-train design has settled down, we thought it wise to buy spares of everything. 8x motors, 8x motor controllers (ESC’s) and lots and lots of connectors and wire. Last year we went through soooooo many cheap ESC’s. Since then we have found a decent supplier, albeit from Australia, and have stocked up. Plus it made the delivery cost more efficient, well that is what I’m telling my wife.

Well, onward we go and always attempting to avoid the bunkers 😉

Posted in Pi Wars, Pi Wars Old, Raspberry Pi, Uncategorized | No Comments »