Created a game using serial communication. Potentiometer and Ultrasonic sensors controlled the two baskets of the game that catch the egg in question. The game would have 5 lives and the speed would increase after every level. After 5 lost lives, the game would restart. Challenges included seperating the senor and potentiometer data with the split function so as to allow for two different inputs that operate seperately. p5.js code:
Code for arduino: