Shop OBEX P1 Docs P2 Docs Learn Events
Count the number of steps — Parallax Forums

Count the number of steps

heavy-freelancerheavy-freelancer Posts: 23
edited 2010-12-17 16:53 in Robotics
Hey,

I want to make my Boe-Bot go ahead and return, and count the number of steps he did.

But the problem here is that I'm going to code the program who is going to do the trick but without been connected to my laptop.

So how can I get the number of steps he did without using another device (Screen) ?

Thanks.

Comments

  • ercoerco Posts: 20,256
    edited 2010-12-17 13:17
    Flash an LED to count out N steps, have an on-board LCD screen to display it, beep a speaker N times, drive forward in N short countable steps, WRITE the number in EEPROM to be stored for later use, any number of ways.
  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2010-12-17 16:53
    Hiya!

    For a brief tutorial on storing data to EEPROM, check out Chapter 7, Activity #2 in What's a Microcontroller.

    This example deals with storing light measurements, but the basic principles of storing and retrieving data from EEPROM remain the same.

    Cheers,
    Jessica
Sign In or Register to comment.