Self-Balancing Robot
User Guide
43
www.terasic.com
July 12, 2018
Using IR.IsEmpty to detect whether IR data is received or not, using IR.Pop to read register
DATA_BUF value, and compare it with the defined code table, and then, judge the meaning of the
instruction and control the Self-Balancing Robot moving forward or backward.