PICAXE line follower

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
557 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 13, 2011

Built up a new robot using the PICAXE 28X2 processor. It has 8 line sensors on the front of it, but I'm only using the 2 middle ones for this demo. The code for this was written in Logicator, which is a graphical flowchart type of thing from the guys at PICAXE. I'm used to programming at a lower level in C, but this was surprising easy to get running! The same thing in C would have taken me much longer to get to this point. I'd say it took less than 20 minutes to go from finishing assembly of the robot to having this code running. Very cool.

Schematics and PCB design here : http://wiki.ottawarobotics.org/index.php?title=Line_Follower#PICAXE28X2_Variant

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (aramsey2000)

  • cool bot!

    Did you do your own programming?

    I am trying to figure out how to "re-trigger" a wait command, can I do this with Logicator?

    I want a timer to count down, but get reset with an input if a button is pressed before it reaches the end . . .

    Perhaps it requires a parallel process (which I don't know how to do)

    Thanks again for your videos.

  • @joshstube Yup, all my own code. You should be able to do the re-trigger thing in Logicator without too much trouble, using a single variable. Set up a loop that exits once the variable reaches some value (for instance 200). Inside the loop, increment the variable by 1, delay 10ms, and read the button. If the button is high, reset the variable to 0. If the button is never pressed, the loop will exit after 200 * 10ms. If the button is pressed during the 2 seconds, the loop will just keep looping.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Sweet. Nice board too!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more