23 October 2023

Scaffolding: Progress Review

Pac-Man Controller


 











This controller was specifically designed for Pac-Man using light sensors to create a controller that you don't even need to touch to play. To keep the theme of Pac-Man going strong I created the controller to be in the shape of Pac-Man with ghost on it. This design was actually separate from a previous one where I was using an accelerometer. I enjoyed the design so much that I wanted to use this for my final model. For this controller to work all that needs to happen is that you must cover the light sensor with the corresponding direction meaning to move Pac-Man up, down, left and right is that you simply just have to cover the corresponding light sensor.


Void Setup () {

CircuitPlayground.begin();
Serial.begin(9600);
delay(1000);

}

Void Loop () {

Read the sensors for moving pacman
If light sensor 1 is covered move up
If light sensor 2 is covered move down
If light sensor 3 is covered mover right
If light sensor 4 is covered move right

Get light reading
If light is gone/true press key
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.