Shop OBEX P1 Docs P2 Docs Learn Events
Tilt sensor confusing accelerations with tilt — Parallax Forums

Tilt sensor confusing accelerations with tilt

gncguygncguy Posts: 35
edited 2008-10-07 18:20 in Learn with BlocklyProp
One of the threads states that you need to ramp up the commands on a hill climbing boe bot (using the MEMSIC tilt sensor) so that it does not confuse hard accelerations with tilt.· But if the Stamp can do only one thing at a time and the Boe Bot seems to stop instantly when the wheel commands stop, how would this happen.· It looks the Boe Bot stops instantly when the wheel commands end.· Then it takes a measurement from the sensor.· So I do not seem any way they could be confused unless you are running two stamps one with the sensor and one for the navigation commands.· Am I off base on this?· Will the Boe Bot keep accelerating after the wheel pulse commands stop?

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-10-05 22:18
    Attaching the code you are talking about is helpful so others can see what you didi and where you may get improvements. That said you have 20ms between each pulse to the wheels and you use that time to do other things. This has been done before so it is not impossible.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2008-10-07 18:20
    You can see Andy's code for his hill-climbing Boe-Bot, along with videos, in one of his Stamps in Class Mini-Project postings:

    http://forums.parallax.com/showthread.php?p=522967

    -Stephanie Lindsay
    Editor Parallax Inc.

    P.S. - The Stamps in Class text "Smart Sensors and Applications"· has in-depth activities for the Memsic Dual Axis accelerometer for both tilt and acceleration. You can dowload it free from its product page.
Sign In or Register to comment.