100 likes | 370 Views
Marble Maze Team 20. John Jachna. Abstract. iPhone-controlled marble maze Orientation of iPhone wirelessly sent to game board Game controller adjusts tilt of game board to match orientation of the iPhone Player must guide marble through path in maze. Block Diagram. Software Systems. WiFi.
E N D
Marble Maze Team 20 John Jachna
Abstract • iPhone-controlled marble maze • Orientation of iPhone wirelessly sent to game board • Game controller adjusts tilt of game board to match orientation of the iPhone • Player must guide marble through path in maze
Software Systems WiFi iPhone Raspberry Pi Microcontroller RX UART TX
Software Design: Considerations • Need microcontroller’s flash to store high scores • Other variables can be stored on the stack/heap • Need to avoid using floating point values • Device orientation from iPhone is measured in degrees with precision 0.1, need to find an alternate notation • Need to ensure that Raspberry Pi and Microcontroller are “on the same page” with UART • Need to move game board to its desired position in 0.1 seconds
Software Design:Code Modules • Command-Driven Software • Initialization Commands • Board “zeroing” • (UART) Data from Raspberry Pi • (ADC) Joystick Controllers • (ADC) Tilt Sensor • (PWM) Audio Speaker • (SPI) LCD Display • (GPIO) Motor Drivers • (GPIO) IR Gates
Software Design: Progress • Microcontroller • Analog to Digital Convertors, Timer/Timer Interrupts, and Digital I/O functioning • Need to implement: PWM, UART, game logic • Raspberry Pi • Functions as WiFi Router, runs web sever and web services on power up • Need to implement UART to communicate with micro • iPhone Application • Device orientation and corresponding GUI elements functioning, wirelessly transmits position data to Rasp. Pi • Need to create high score retrieval, game controls in app