First Arduino/Servo test
I’ve popped the lid back on to the top of the box and used my breakout board as a ‘go between’ from the servos and Arduino. It all looks a bit messy at the moment, but this is only temporary.
I’ve been looking for a better ‘finger’ for my useless box. A Halloween-style finger would be great, but trying to find one of a suitable size was proving ‘tricky’.
So, after raiding my kids’ toy boxes I found the perfect thing – A Nerf dart! It’s small and light, and fits over my Lego finger ‘skeleton’ easily.
So I’ve got a rudimentary ‘box’ built, and I know how to control the servos with an Arduino.
I figured the next step is to work on the ‘finger’. The design evolved through trial and error, with a goal to Keep Things Simple. There’s some cool and very clever implementations a Google search away, but I worked my own design out using Brains.
The photo here shows my initial design – A basic ‘C’ shape constructed (again) from Lego. The 90 degree joints are fairly strong, but I suspect in the long term I’ll be reinforcing them somehow. Superglue is always an option…
Getting a servo to move is a bit more complicated that getting an electric motor to spin, but not much so.
Servos are typically limited to being able to rotate 180 degrees, which means it’s not just a simple case of applying a voltage to make it ‘spin’.
Instead the Arduino can send a ‘pulsed’ signal to the servo which governs the position. There are many articles out there describing how to do this, but the Arduino servo library has excellent documentation and clear steps on the basics.
Thankfully the basics is all I need.
So this is it – My first Arduino project! After months of see YouTube videos and Twitter updates from people working on their own Arduino projects, I finally bit the bullet and bought my own ‘starter kit’ from Amazon.
I didn’t just want to make an LED flash on and off (One of the usual Arduino beginner projects) – I wanted to Make Stuff Move. Curtesy of a dad with a few spare radio control servos, and a bit of Googling, I felt ready to start making my Useless Box.
Coding is no problem – That’s what I do professionally – And as a child of the 80’s I’ve still got a LOT of Lego kicking about, there’s not much holding me back.
If you haven’t seen a ‘Useless Box’ before, go and check them out on YouTube. Simply put, you have a hinged box with a switch on it. You flick the switch, the box opens, and a ‘finger’ turns it off again.
Believe me – It’s more fun than it sounds.