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
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 11 months ago
@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.
aramsey2000 11 months ago