Author Topic: Acceleration sensor  (Read 5427 times)

0 Members and 1 Guest are viewing this topic.

Offline shengchaoTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Acceleration sensor
« on: December 22, 2006, 01:58:36 AM »
I was given a task to increase the positioning accuracy(drive in straight line) of a mobile robot by adding an acceleration sensor(ADXL210E). It uses an Atmega32. Any idea how should i go about with this?

Offline JonHylands

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 562
  • Helpful? 3
  • Robot Builder/ Software Developer
    • Jon's Place
Re: Acceleration sensor
« Reply #1 on: December 22, 2006, 06:22:52 AM »
I suspect you're going to find that you can't get enough resolution out of a 10g accelerometer to accomplish what you want to do.

The obvious answer is to mount the sensor in the robot, and start making runs, logging the sensor data to something. Induce turns in the robot, and see what output you get. If you notice a correlation between the robot turning and sideways acceleration, then you can probably write something simple that provides feedback on how much the sensor believes the vehicle is going off course.

Of course, its much simpler to use odometry encoders to go in a straight line...

- Jon

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Acceleration sensor
« Reply #2 on: December 22, 2006, 09:43:33 AM »
what sensors do you have already?

if you have multiple sensors, you will need to use some form of dead reckoning and/or kalmen filter . . . or at least a PID controller . . .

but as JonHylands said, it wont be very accurate. can you use a 2g or 3g accelerometer? a 1g accelerometer still might not be accurate enough for this though . . . you can probably amplify the signal strength by locating the sensor as far away from the bots' center of rotation.

other probs . . .
if your robot is on bumpy terrain, the accelerator sensor will 'wack out' . . .
if the terrain is unlevel (in other words, gravity changes direction), your sensor will get confused . . . you will have to eliminate all this noise

accelerometers are the wrong sensor to control straight line motion . . . i think a gyro (which detects robot rotation) will be much better for this job . . . or at least an encoder for both wheels . . .


Get Your Ad Here