Download - Team 19 - Money Bags Software Narrative
![Page 1: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/1.jpg)
TEAM 19 - MONEY BAGSSOFTWARE NARRATIVE
Presenter:Calvin Mwesigwa
![Page 2: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/2.jpg)
AbstractA Monopoly game that outputs to a VGA port in which up to 7 Bluetooth android based devices can view information, roll the dice and execute trades through their Bluetooth devices. The unit itself will output the game board and various animations through VGA while also playing sound through built in speakers.
![Page 3: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/3.jpg)
Block Diagram
1MB Video MemoryIS61WV12048BLL-10TLI
VGA
25.175 Mhz
OscillatorPic 32
PIC32MX795F512L
BluetoothModuleRN-42
MPEG DecoderST013
VGA Logic
LC4256VCPLD
8 Bit TristateSN72LV573A
Data(7:0)
Data(7:0)RGB+RESISTORS(2:0)
I2C
UART
8MB FLASHSPI3
RD(15:10)&RB(15:2)
RE(7:0)
50 Ohm Antenna
14.7456 Mhz
Crystal
RA(2)
UART
DACCS4334
UART
3.5mm Jack
VSYN
CHS
YNC
VCLK
Addr(19:0)
WE
FRAME_SEL
BUSY
W_ADDR(19:0)
OE D (7:0)
RE(8)
RE(9)
Q (7:0)
WE
JTAG
JTAG
RJ11
![Page 4: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/4.jpg)
Design Considerations We are building a distributed system on
the console and Android devices Had to come up with a simple and
lightweight protocol to perform periodic updates of Droids
We are limited to 512kB of memory for game logic and save game data
Bluetooth module could only accept 8 unique connections so this limited us to max of 7 players
![Page 5: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/5.jpg)
Interfacing with Peripherals
Connect to the Bluetooth through UART on pin 52(U1RX) and pin 53(U1TX). Bluetooth operates in slave mode.
Connect with MPEG decoder on pin 66(SCL1 ) and pin 67(SDA1 for I2C1) while the MPEG data is sent on pin 81(Port D). MPEG decoder runs in multimedia mode and provides all signals for DAC.
Connect with CPLD via Port B(15:2) and port D(15:10), Port E(9:0) and Port A(3:2)
![Page 6: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/6.jpg)
Application Code Organization The overall main function runs as a polling loop We chose a polling loop because our console
goes through the same sequence of operations once the game starts and keeps repeating them until the game ends
The Bluetooth module continuously sends data to the micro as soon as it receives it because it is the sole source of user input.
The microcontroller acts as the central repository of all game data and droids ‘check out’ and ‘commit changes’
![Page 7: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/7.jpg)
“Main” block diagram
![Page 8: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/8.jpg)
Software Development Status
Done CPLD code module Basic test programs running on the PIC32
In progress Android Application C Code Implementation of Monopoly Compilation of C Code onto the
microcontroller To do
Implement all Bluetooth code module Come up with a format for commands for
droids
![Page 9: Team 19 - Money Bags Software Narrative](https://reader036.vdocuments.us/reader036/viewer/2022062501/56816617550346895dd9656d/html5/thumbnails/9.jpg)
Questions
?