My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
IntegrationPhase2  
Updated Dec 5, 2013 by rijadsul...@gmail.com

Integration Phase 2

The Fount of Power is composed of four devices that must all work together seamlessly for successful operation. The original specification for the project was to create two founts and only one cup. Having only one cup gave the game limited playability and took away from the true feel of a capture the flag type game. However, choosing to use two cups brought with it more complicated design elements.

The game begins, and each cup is placed on its fount. The cups are placed on small tactile switches that inform the fount of the cup’s presence using an external interrupt to the MCU. Under the tactile switches are RFID tags. The tag is used to inform the cup which fount it is currently at. The RFID reader is mounted on the underside of the PCB close enough to the bottom of the cup to detect the tags. The RFID reader sends three signals when a card is detected: a stream of UART data with the tag ID, a signal pulse when the tag is detected, and a constant signal while the tag is in range. The cup uses the pulse as an external interrupt to the MCU, the interrupt reads in the UART data, and the cup stays in an ‘at home’ state while the tag is in range (on the tactile button) and the RFID tag is it’s ‘at home’ tag. While the cup is ‘at home’ the LEDs of one cup will be pulsing green and the other purple. There should be no audio while the cups are ‘at home’. There is an alarm that sounds when the cups and founts are powered on.

When a cup has been taken the tactile switch on the fount is depressed, the fount interrupt is triggered, the home RFID tag is no longer in range, an alarm is sounded on both the cup and fount, the visuals change to pulsing red on both the cup and fount, and the server is notified via XBEE communication. At this point the player has five seconds to connect the cup to their HIU device. If the HIU is not detected and the five seconds has expired, the cup will begin sending deadly IR packets in all directions from its nine IR LEDs, the audio will change, and the visuals will pulse slower. When the HIU is connected the LEDs will turn solid green to notify it’s in a steady state. Information about the cup will be sent to the HIU.

At this point the cup can be taken back to the player’s home fount to be poured. To begin the pouring action the user must find and have the cup detect the second RFID tag with the cup. The second tag is placed somewhere adjacent to the tactile switch. Once the tag has been found the cup will flash blue, the audio will sound, and the cup will begin ‘pouring’. When the pouring begins the IR LEDs emit a modulated 38 kHz signal. Each fount is equipped with an IR receiver tuned to 38 kHz. Each cup emits a different modulated pattern and the founts are programmed to only receive the opposing cup IR pattern. The combination of using modulation patterns and RFID prevents players from cheating by pouring their own cups into their fount.

Once the pouring has started the player will have thirty seconds to pour into the fount. The fount must have a constant stream of IR for five seconds. If the stream is broken the fount will empty and the user will have to start the five second pour over. The cups blue LEDs will turn off one by one as the timer runs down. The fount LEDs will turn on one by one as it fills. When the fount has been filled the game is over and the pouring team has won. The founts will notify the server of the victory via XBEE communication.

Pictures

Final Fount Code

Final Cup Code

Powered by Google Project Hosting