Discuss the working principle behind your project.
Locomotion – Code Logic:
How does our snake move? Below is an image of the Pseudocode of how the overall Locomotion code works.
![Locomotion - Pseudocode](https://blogs.ntu.edu.sg/ee5028-2023-g01/files/2023/07/Screenshot-2023-07-03-at-10.13.21-PM.png)
To better visualise the snake’s motion in relation to the code, below are some videos of each motion of the snake and what were the PWM signals being sent to them in respect to time. (Serial Plotter Videos; PWM signal intensity is the Y-axis, Time is the X-axis):