Week 8

My task this week was to understand the code from the 2016-2017 team. I was able to upload the code to the Arduino cloud, which has made some things easier. This allows me to embed the code as it is shown in figure 1 below. It also allows me and the rest of the team to quickly and easily share our codes with one another. The main point in the code is the switch function. Other functions were made that will control the driving and stepper motors. Those functions are called in the switch function depending on which LCD button is pressed. The two main modes are normal operation and debugging. Normal operation prints text on the LCD, which makes for a useful user interface, then the motor runs forward, stops, then runs the opposite direction. This happens three times. Debugging mode allows the user to manually control the motion of the bogie with the buttons on the Arduino. We are still discussing how our code will operate, but the overall goal is to get the bogie running with code.
Figure 1. Arduino code.

Comments

Popular Posts