| RFID Reader.  The RFID reader receives RFID card serials using the RFID antenna, and sends them out on 
									its transmit line via UART.
                   RFID PIC.  The RFID PIC receives the RFID serials, decodes them into HEX values, and transmits them to 
									the MASTER PIC via SPI.  The RFID PIC was coded in assembly as per a project requirement.
                   RFID Reader.  The RFID reader receives RFID card serials using the RFID antenna, and sends them out on 
									its transmit line via UART.
                   Master PIC.  The master PIC is the master on the SPI system.  All other chips on that network are slaves.  
									The master PIC receives RFID serials from the RFID PIC and determines whether they belong to an atoll or a team 
									color card.  If the serials belong to an atoll, the master PIC sends them to the security controller via UART to 
									retrieve the security keys necessary for capturing an atoll.  The security controller was provided to us by the 
									teaching team, and we communicate with it via a professor-determined protocol.  Once the master PIC has the atoll 
									serials and security keys or just the team color serials, it sends them to the XBee PIC via SPI using a 
									team-determined protocol.
                   XBee PIC.  The XBee PIC receives and sends messages to the XBee wireless transceiver via UART, and it 
									also receives messages from the master PIC via SPI.   If the XBee PIC receives team color serials from the master 
									PIC, initiates the class-determined communication sequence to find other boats on the same team.   Once a teammate 
									has been found, the XBee pic turns on one of the team color fans by raising a logic pin tied to a MOSFET.  The 
									fans blow around colored packing peanuts.If the XBee PIC receives atoll serials and security keys from the master 
									PIC, it wirelessly broadcasts that information using a class-determined protocol to capture the atoll.
                   Motor PICs.  The motor PICs also receive messages from the XBee transceiver via UART.  They are looking 
									specifically for speed commands from the remote control.   When they have received the appropriate message, they 
									update the PWM signal that they are sending to the motor H-bridges.  Each motor PIC runs the same code, but 
									determines whether it controls the right or the left motor via an address line that is tied high or low.
                   XBee.  The XBee itself is an RF transceiver.   The chip comes with the hardware layer and the low level 
									sending and receiving software layers prebuilt.  As a class, we designed a wireless communications protocol at 
									the packet level to allow multiple teams to control their boats, capture atolls, and establish teammates 
									without interfering with each other.
                   
 |