Stop, pause for 2 seconds, turn 180 degrees, and start over. Determine the amount of time required
Question:
Stop, pause for 2 seconds, turn 180 degrees, and start over.
Determine the amount of time required for 90- and 180-degree turns by trial and error. A 10Hz or 100Hz clock should be used for the timer. Use the clk_div FPGAcore to divide the UP3 on-board clock. The state machine should check the timer to see if the correct amount of time has elapsed before moving to the next state in the path. The timer is reset when moving to a new portion of the path. Use an initial state that turns off the motors until a pushbutton is hit, so that it is easier to control the robot during download. Since there is no motor position feedback, all turns and the actual distance traveled by the FPGA-bot will vary slightly.
Step by Step Answer:
Rapid Prototyping Of Digital Systems
ISBN: 9780387726700
2nd Edition
Authors: James O Hamblen, Tyson S Hall, Michael D Furman