Shop OBEX P1 Docs P2 Docs Learn Events
SD Card Navigation — Parallax Forums

SD Card Navigation

ajwardajward Posts: 1,130
edited 2015-04-19 11:40 in Robotics
Hi All...

I seem to recall a thread concerning navigating a Boe Bot from data stored on an SD card. Be darned if I can find it tho'. Anyone have a link or can tell me I'm just imagining it? :-)

I want to experiment using an SD card with Bob's new, little brother Bert. (Picked up a Boe Bot chassis from the 'Bay and joined it with a spare Activity Board)

Thanks for any assistance!

Amanda - Happy Thursday!

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2015-04-16 07:44
    Was it my PropBOE-Bot?

    I used a Propeller Board of Education but it should also work with a Propeller Activity Board (or any other Propeller board).

    I used some RC gear as the remote but the technique should work with other remotes. I recorded the pulse lengths sent to the two CR servos at 50Hz.

    I was (once again) copying something erco had done. He recorded the path taken by his robot to be played back later. I think erco's method used transition points to indicate when and where the robot changed direction and didn't require as much memory as my method.
  • Courtney JacobsCourtney Jacobs Posts: 903
    edited 2015-04-16 07:54
    Amanda,

    Since I see that you're controlling the robot with the Activity Board, I suggest the Propeller C tutorial Andy created just for this purpose: SD Card Games.

    If you aren't using encoders, you'll have to modify the code to use the servodiffdrive library for navigation rather than the abdrive one.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2015-04-16 08:02
    Duane Degn wrote: »
    I was (once again) copying something erco had done.

    Here's a couple links to erco's robot.

    Here's the thread about the robot.

    http://forums.parallax.com/showthread.php/118861-Homebuilt-Robotic-Platform-AKA-Retrobot

    Here's the video.

    https://www.youtube.com/watch?v=PX0IhUqnwrk
  • JonnyMacJonnyMac Posts: 9,015
    edited 2015-04-16 10:03
    If you're using Spin (And why wouldn't you, it rocks!) you could use my parser object to parse command strings from a text file on the SD card. The current issue of Nuts & Volts magazine (April 2015) discusses details of the parser object.
  • GenetixGenetix Posts: 1,749
    edited 2015-04-16 21:56
    Jon, she's using Propeller C, not Spin.

    I notice the AB Navigation program is vastly different from the BOE-Bot version.
    The BOE-Bot version starts on Page 126 processes single letter codes using SELECT...CASE.
    The AB version processes verbose commands with IF...ELSE IF
    http://learn.parallax.com/activitybot/text-file-maneuver-list
    https://www.parallax.com/sites/default/files/downloads/28125-Robotics-With-The-Boe-Bot-v3.0.pdf

    I personally would prefer the BOE-Bot version written in C because of it's nicer modular format.
  • JonnyMacJonnyMac Posts: 9,015
    edited 2015-04-17 05:30
    Jon, she's using Propeller C, not Spin.

    I didn't see where she indicated which language she was using, and in my book, "Spin" is not one of those 4-letter words.... :)
  • ajwardajward Posts: 1,130
    edited 2015-04-19 11:40
    Hey guys!

    Thanks for the replies. Work and doctor appointments have kept my schedule pretty full, but I'm going to get to work on this soon.

    @ Mr. Mac :-) Primarily, I'm using C for my BOE/Activity 'bots, but for most things Propeller, I like Spin. I grew up programming in Basic and Spin has more of a "Basic feel" to me. Of course, many of the things y'all accomplish with Spin seem akin to magic!!!

    Amanda
Sign In or Register to comment.