top of page

The Egg Game: Serial Communication

  • Writer: Jahnavi Shah
    Jahnavi Shah
  • Nov 6, 2020
  • 1 min read

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:











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...

 
 
 

Comentarios


bottom of page