top of page
  • Writer's pictureJahnavi Shah

The Egg Game: Serial Communication


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:











35 views0 comments

Recent Posts

See All

Project 2: idea

I wanted to steer away a bit from my comfort zone and create a simple game that is controlled by a controller. For right now I have programmed the code for a game and I hope to elaborate on it: https:

bottom of page