290 likes | 406 Views
Luminous Chessboard. ECE445 Group 16 | Ke Ma, Qianliang Liu. Introduction. Design an electronic chessboard. Powered by 5V DC supply. Recognize chessman. Light up suggested moves based on an AI algorithm. Parts we use. 128 4-pin sockets 64 LEDs (green) 8 16:1 MUX 1 Dual 4:1 MUX
E N D
Luminous Chessboard ECE445 Group 16 | Ke Ma, Qianliang Liu
Introduction • Design an electronic chessboard. • Powered by 5V DC supply. • Recognize chessman. • Light up suggested moves based on an AI algorithm.
Parts we use • 128 4-pin sockets • 64 LEDs (green) • 8 16:1 MUX • 1 Dual 4:1 MUX • 1 1:4 decoder • 1 PIC18F4685 microcontroller
Reason we chose PIC • Easy to program ( C language) • The algorithm is easy • Cheap • PIC starter is available in the lab
Basic Thoughts • Input 1 = 10Input 2 = 01 • EmptyOUT 1 = 00OUT 2 = 00 • Parallel CaseOUT 1 = 10OUT 2 = 01 OUTPUT 1 OUTPUT 2 INPUT 1 INPUT 2
Connections Pawn (Side A) Pawn (Side B) Output 2 Output 1 Knight (Side A) Knight (Side B) Input 1 Input 2 Rook (Side B) Rook (Side A)
Connections Bishop (Side A) Bishop (Side B) King (Side A) King (Side B) Queen (Side B) Queen (Side A)
Sample Simulations Output1 Output2 Input1 Input2 Output1 Output2 Input1
Sample Simulations Output1 Output2 Input1 Input2 Output1 Output2 Input1
What do they do? - AI • Analyze the action, PICK or DROP? • Why is the player doing this? MOVE? REPLACE? WIN? ERROR? REGRET? • Give suggestions • Next step? Detection Again? ? ON/OFF ATPOSITION (X, Y) Detection AI LED Controller
What do they do? - LED Controller • Give 2 Select Bits of the 1 to 4 DEMUX • Give 16 Gate Voltages of the MOSFETs 00 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 01 10 11
PIC18F4685 PIC18F4685 Detection Module Inputs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Even Row MOS 16-1 MUX SB Lighting Module 4-1 MUX SB Outputs Odd Row MOS Odd Row MOS 4-1 DEMUX SB Micro-controller
Factors that influence the performance of PCB • Scan module High impendence Lack of decoupling • Microcontroller module Broken chip Lack of experience Unexpected situations Complex connections • LED module Wrong Eagle model was used High impendence
Failures on PIC • PIC18F45J10Program Memory LimitCannot work with PICKIT2 • PIC18F4685Worked well at the beginning“Programming Failed at Program Memory Address 0x000000.”Chip was gone.
Recommendations for further work • Improve the PCB board • PIC with higher Compatibility • Arduino may used for replacing PIC • Help from Machine shop
Credit • Mr. SkotWiedmann • Mr. Mark Smart • Mr. Wally Smith • Prof. Scott Carney • Mr. Ryan May • Mr. Mustafa Mukadam