Let's Make Robots!

A journey into small robotics

Swarmi - A journey into swarm robotics




Swarmi - A journey into swarm robotics

or a journey into small robotics

I think each of us have a favourite branch in robotics. There are many different types to choose from. I have several favourites and one of them is swarm robotics. It's an area that is gaining poularity and there is a ton of resources on the net. For now most of it is University based however that may change. The real obstacle for hobbyists is cost. While Universities have swarms of 100 or more bots I figure as a hobbyist if I can build ten as a minimum, I can still call it a swarm and do useful experiments with them.
As I don't have a budget like a University, I am keen to get the price down per unit as low as possible.
A basic start here robot could cost around 100 bucks multiply that by 10 and you've got a $1000 outlay. I don't know about you but $1000 can be good for a lot of other things too.
I first stumbled across a project called Formica which I got really excited about. Using pager motors and an msp430 processor it looked a really impressive effort. It was the first example of low cost swarm robotics I'd seen. Then only a year later came the kilobot project. Cost to build one kilobot unit was said to be 14 dollars on the BOM(bill of materials).
So this is my inspiration for the design of swarmi.
LMR member Lumi is working on swarm robotics as well and his project looks very interesting and of course I am following closely.
So I've made a start with my own interpretation of formica and kilobot using pager motors for propulsion.

Here is my first model of Swarmi. It is for the time being only a test unit for the motors and how good/bad they work. I am using my four button IR remote to control the motors for now to experiment with motion control.

Which in the initial stages does not appear to work as well as I'd hoped. Before I try another tack though I need to swap out the cr2032 battery which is inadequate for the supply.

The voltage drops too much as the tiny cr2032 is loaded up by the motor current. The IR receiver then fails to respond to signals from the remote because it will only work at above 4.5 volts. In fact I used a 3-5 volt booster on the cr2032 which is only 3.2 volts and that is also just asking too much. So I will fit this lithium cell and do some further testing with the motors before I decide if I need to change my design.

If you are interested in swarm robotics as well here are a few links to interesting sites covering them.
Ant Robotics
Artificial Culture Project

update 21/9/12

Upgraded the battery and although I don't like the size of it in relation to swarmi it at least has all the power I need.


I've had a bit of fun adding pwm for the motors. Because the IR receiver is using the capture pin the inbuilt pwm isn't available and it would only do one motor any way. So I've bitbanged pwm using timer interrupts with timer 0. Unfortunately the capture function uses timer 1 and getting the timing right between the receive message function and maintaining a pwm signal has not been easy.
I've learnt something about the performance of the motors though. I learnt that the front has to be the sloped down end with the single rail, I had it the other way around. So I built a second unit the correct way. I also worked out that the motors must turn counter clockwise to drive forward.
While I can get reasonable control using my remote I'm not sure if consistent results are possible with this design. If I can get the timing issues sorted better I'll be better able to determine whether I need to rethink the mechanical design.
Also the surface very much affects how controllable the movement is. It's a no brainer that it needs to be smooth and flat but it also needs to be very level and consistent friction.

Not much space to fit everything so I had to use a 1k smd resistor for current limit to one of the transistors. I ripped it from an old board and was a perfect fix for tight space.

Leaving in a couple hours for a weeks holiday. Will continue when I get back.















Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hey merser, any news about your swarm?

I have not been able to get predictable control out of the motor setup. I'm going to go differential drive now. I have some small coreless motors on the way but I discovered I can get those motors your using for as little as 1.60 if I buy 10.
I suspect in the end my swarmbots may end up looking very much like yours.

I see. No problem, I am sure yours will look different or at least behave different :-) Good luck with the differential drive.


Probably old news.  Ken Burns may even be one of our own.  Still, when I see a μC the size of a quarter...

Wow that is amazingly small. Using something like the mega bitty controller had crossed my mind.

What are your soldering skills like? according to the link you provided you must solder the Mega Bitty by hand!

A while back I designed some simple, cheap, IR beacons that could be used for navigation and triangulation. They kinda got forgotten about because i have so many projects happening.

These beacons use the Sony IR protocol to send a 7bit code that is selected using the dip switches so that no programming is required. They are the size of a AAA battery and will run from a single Lithium cell.

I have already successfully used these as a homing signal for a robot but in theory, if you have wheel encoders and three of these in a room then your robot should be able to triangulate it's position with reasonable accuracy.

I'm not sure how I'll go about implementing localisation with the limitations forced on me by the size and my knowledge, lol.
But I have realised I better find something productive for them to do or they are just one motor up from a toothbrush with a vibrator motor on top.  ; - )
I am thinking of using IR beacons to indicate a charging station. If they have homing capability, at the very least, I will have escaped the embaressment of building a glorified vibrating toothbrush.
Man you are a prolific maker Oddbot. I never saw the beacon you made. I've collected that link thanks. Did you make this one too?

No, our sales manager designed that one. It is basically a 4WD Magician Chassis (which he also designed) but with suspension and more powerfull motors.

Heheh yeah I was thinking they surely can't be the standard motors. Very swift.