Shop OBEX P1 Docs P2 Docs Learn Events
memsic 2125 accelerometer — Parallax Forums

memsic 2125 accelerometer

BadgerBadger Posts: 184
edited 2008-12-15 20:16 in General Discussion
Hello

hey need to ask a question. I am building a robot that run on tracks. I have 2 motors running each track individually. Can the memsic detect if the robot is not running is a straight line. With code can I keep the robot from veering of course, or do I need a compass chip. Just need to know how to keep one motor running faster than the other when not avoiding an opject


Badger

Comments

  • LeonLeon Posts: 7,620
    edited 2008-12-14 23:07
    Won't it be moving too slowly for an accelerometer to register anything? You could have encoders on each motor, and use those to keep it going in a straight line.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 12/14/2008 11:12:30 PM GMT
  • BadgerBadger Posts: 184
    edited 2008-12-15 00:04
    Leon

    Well my motors around 9000 revs or so and I have it on an polou independent axles with gearing of 344:1 on 2 1.5 volt batteries (3 volts) so the side to side most likely will not be enough to do it then. Ok thanks for your input


    Badger
  • Carl HayesCarl Hayes Posts: 841
    edited 2008-12-15 19:54
    Why not estimate how far it veers, side to side (that's the amplitude), and how many times per second it does so (that's the frequency). Then, from the frequency and the amplitude, you can calculate the expected side-to-side acceleration and compare it with the published sensitivity of the accelerometer. Then you'll know whether or not the accelerometer can be expected to detect it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • awesomeduckawesomeduck Posts: 87
    edited 2008-12-15 20:16
    Unless your robot is really veering hard to one side, and the normal speeds of a robot its unlikely you can detect the veer from the normal jitter. I have placed the 2125 in my car and the readings from the idle of the car or just driving straight on a slightly bumpy road make me think it would be hard to make a valid conclusion from the readings you will be getting.
Sign In or Register to comment.