Arduino powered robot following magnets.

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Arduino powered robot following magnets.

Postby kramerica » Mon Apr 30, 2012 5:22 pm

Arduino powered robot following magnets.

I would like to build a robot, similar to a line following robot, but with buried magnets.

The idea is that the front of the robot would have an array of "Hall-effect" type sensors that would look for magnets.
The magnets would be very powerful Neodymium magnets - that are mounted to the tops of stakes that are pushed into the ground
and are flush to the surface of the dirt.

The robot would advance to the magnets, and navigate right or left in an attempt to keep the array of sensors centered on the
magnet row. (attached is a crude drawing)

I would like to orient all the magnets so that the south pole is facing up, and then at the end of the row of magnets have the last one in the
sequence with the north pole up. This way the robot would know that it's at the end of its circuit.

Questions:

a.) Can I get a Hall-effect type sensor to read reliably at 4-6 inches?
b.) Should I use some other type of sensor?

Has anyone already done something like this?

This would be an outside application in the yard.

I welcome any input or other ideas.

Thanks!
Attachments
Magnet Sensor.jpg
Magnet Sensor.jpg (21.5 KiB) Viewed 490 times
kramerica
 
Posts: 26
Joined: Thu Oct 08, 2009 5:43 pm

Re: Arduino powered robot following magnets.

Postby adafruit_support_bill » Mon Apr 30, 2012 5:53 pm

a.) Can I get a Hall-effect type sensor to read reliably at 4-6 inches?

I wouldn't expect them to work well much beyond an inch.
b.) Should I use some other type of sensor?

A magnetometer/compass sensor would probably work over that range.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino powered robot following magnets.

Postby kramerica » Tue May 01, 2012 6:07 am

Thanks - I tested it out with a magnetometer and it was sensing the magnet at 6 inches.

With a 2 foot wide robot - I think I can do 6 of these sensors mounted in a piece of clear tubing or PVC.

If I hooked up 6 of these sensors (Each with its own address) on the i2c bus, and ran each sensor with it's own power feed.

Then my arduino code would 'poll' the i2c address's to see what they see?

I thought a Hall-effect was essentially 'on/off' - but a digital compass is always yielding a result.

I'm assuming that I will always get a reading - should I mount a weak magnet bar 'Overtop' of the sensors so that they 'default' to the weak bar, and then when they sense the powerful magnet in the ground, they report a distance 180 opposite of the weak bar? (This way I know it's a real reading?)

Also - These are typically designed to be tested 'horizontal' - If I mount them vertical - so they sense Up/Down - they would be at a 90 degree angle to the ground?
Any thoughts on this?
kramerica
 
Posts: 26
Joined: Thu Oct 08, 2009 5:43 pm

Re: Arduino powered robot following magnets.

Postby adafruit_support_bill » Tue May 01, 2012 6:48 am

I don't think you need 6 of them. If you have 2 at the outer ends of your bar, you should be able to look at the output of each to triangulate on the location of the next magnet. The readings will also be affected by the field of the magnet you just passed, so your tracking algorithm must take that into account as well. If the units are angled down to point at the ground 4-6" ahead, it should help minimize the effect of the magnets behind.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am


Return to Arduino

Who is online

Users browsing this forum: No registered users and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [100]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]