PRESENTED BY: MELODY KIDD (FALL TEAM LEAD) KELLY MACFARLANE (FALL WEBMASTER) SCOTT MATSUO (SPRING WEBMASTER) RAPHAEL RAMOS (SPRING TEAM LEAD) ACADEMIC ADVISOR: WAYNE LU battLEDship
OUTLINE What is battLEDship? Methods Design description Architecture Results Issues Demonstration Conclusion
BACKGROUND Modernize version of the classic Battleship® game Goal: More interactive and technology- oriented game that will appeal to all ages. Key: = Blue color lit up on LED = Red color lit up on LED (hit) = All colors lit up on LED (miss)
BACKGROUND SENSEPROCESSDISPLAY
MATERIALS RGB Surface-Mounted LEDs Surface-Mounted Reflective Phototransistor Sensors Printed Circuit Boards Arduino
ARCHITECTURE Four 10x10 LED Arrays Arduino Board Four 10x10 Reflective Object Sensor Arrays Decoders Connection to breadboard PCB Connection to Decoders LED and Sensor connection to PCB SCHEMATICS
HARDWARE DESIGN 10 X 10 SENSOR ARRAY Phototransistor Sensor Infrared Light Collector: 5 Volts Emitter: GND (0 Volts)
HARDWARE DESIGN 10 X 10 SENSOR ARRAY
HARDWARE DESIGN 10 X 10 LED ARRAY COLORFORWARD VOLTAGE RED V GREEN V BLUE V ANODE CATHODE
HARDWARE DESIGN 10 X 10 LED ARRAY Anode Cathode
HARDWARE DESIGN PRINTED CIRCUIT BOARDS
HARDWARE DESIGN BREADBOARD 4 inverters per board 12 decoders per board
SOFTWARE DESIGN Arduino Mega 2560 Cycling through LEDs and sensors Game states
SOFTWARE DESIGN Binary schematic for LED Array Binary schematic for Sensor Array
SOFTWARE DESIGN A3A2 A1 A0
FOR-LOOP SAMPLE CODE: for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { //Read each sensor boardState1[i][j] = reader(i, j, 1); //Choose what color to set each LED chooser(boardState1[i][j], i, j); } SOFTWARE DESIGN
Bit Masking Sample Code: DigitalWrite(colSensor1, HIGH && (col & 0001)); DigitalWrite(colSensor2, HIGH && (col & 0010)); DigitalWrite(colSensor3, HIGH && (col & 0100)); DigitalWrite(colSensor4, HIGH && (col & 1000)); COLOR TABLE SOFTWARE DESIGN Bit NumberColor 00Blue 01Red 10Green
ISSUES LEDs not working Intricacy of wire connection Change from protoboard to PCB Debugging & testing of system
DEMOS & RESULTS GAME SIMULATION
CONCLUSION battLEDship is an interactive modern take on the classic game Battleship® How the team designed and built the project Hardware and Software Designs Results Issues