Tuesday, 23 March 2010
Programming limitations
As the PICAXE only has 5 inputs , and one input must be used to switch the mode of the LFR from line following to symbol recognition, the amount of sensors we planned must be reduced. We are now reducing the sensors to 3 . This is beacuse when we read pins (all the input pins) these are neatly together at the end of the byte (bit 0, bit 1 , bit2) relating to (pin 0 , 1 ,2) so will be easy to program, and there will only have to be 8 different cases. Pin 6 or 7 will have to be tied down and one used for the switch. The only down side to this is that the buggy wont be able to adjust so precisely as it could with more sensors.
Subscribe to:
Post Comments (Atom)
PICAXE has 10 legs on each side, of which 8 (labelled 0 to 7) are Inputs, so you can move back up to 5 sensors if you think it will make the robot more accurate and recognising the tape below it.
ReplyDelete