Let's Make Robots!

3 axis accelerometer

Getting 3 axis accelerometer to work?


I am attempting to use a three axis accelerometer to detect when my robot runs into something.  My problem is that it only sort of works...with the code I wrote for it.  The accelerometer works fine, but my algorithm and/or placement of the accelerometer doesn't do it.  I saw Oddbot do this with one of his little robots, and it seemed to work fine.  Oddbot is way (well way, way, way) beyond my skill level with this stuff, but if he can get it to work, I should too theoretically.