1 / 38

ECE 477 Design Review Team 03 - Spring 2013

ECE 477 Design Review Team 03 - Spring 2013. Robert Harris Spencer Julian Ryan Pawling Josh Hunsberger. Outline. Project Overview Project-Specific Success Criteria Block Diagram Component Selection Rationale Packaging Design Schematic and Theory of Operation PCB Layout

xanto
Download Presentation

ECE 477 Design Review Team 03 - Spring 2013

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ECE 477 Design Review Team 03 - Spring 2013 Robert Harris Spencer Julian Ryan Pawling Josh Hunsberger

  2. Outline • Project Overview • Project-Specific Success Criteria • Block Diagram • Component Selection Rationale • Packaging Design • Schematic and Theory of Operation • PCB Layout • Software Design and Development Status • Project Completion Timeline • Questions and Discussion

  3. Project Overview • What is "Hackers of Catron"? • An electronic Settlers of Catan® board. Settlers of Catan® is a resource gathering and trading board game in which players compete to build the largest economy. • What we will improve upon? • The game is really fun, but it takes too long to set up. This project will shorten the setup process. • This design will make resource gathering and spending automatic. • Hackers of Catron also intends to simplify the execution of Catan without adding more complexity.

  4. Project Specific Success Criteria • An ability to generate a random Catan board and represent the resources and their relative scarcity visually. • An ability to detect the placement of pieces on the board and update game status accordingly. • An ability to display game status (current scores, resources, etc.) via a web interface. • An ability to enforce correct turn based gameplay via the board lighting and web interface. • An ability to handle resource trading between players via the web interface.

  5. Block Diagram Addr - 3 (8) Hall Effect Sensors 8:1 MUX Single Hall Effect Sensor Hall Hall 18 18 Sets Raspberry Pi ll RGB LED Driver AVR32 UC3 B Microcontroller RGB 3 Web Server TWI I2C (3) RGB LEDs 2 2 Economy Control Logic Game Control Code 7 sets (daisy-chained) USB 7 Segment LED Display Driver Dig 8 SPI (8) 7 Segs Wifi Access Point Seg 8 3 Load Enable 5 sets (daisy-chained)

  6. Microcontroller Selection Rationale Selected Microcontroller: Atmel AT32UC3B064/0128 • Supply Voltage: 3.3 V • Min for RGB Driver is 3.0 V • Max for hall Effect is 3.6 V • Number of I/O Pins: 44 • 22 GPIO (Hall Effect Sensor Array) • 2 GPIO (RGB Driver) • 1 SPI (7-Seg Driver) • 1 I2C (Raspberry Pi) • Cost: Free, samples provided • Speed: 60 MHz

  7. Peripheral Selection Rationale • Raspberry Pi • Good support for running a web server over an access point • Can use python for cgi web application coding • Cost $35 vs BeagleBone at $89 • RGB Driver Omron W2RF004RM • Operates at 3.3 V • Can address individual LEDs • Daisy-chain several drivers • Drives 3 RGBs per driver • Seven Segment Driver AMS AS1116 • Operates at 3.3 V • SPI compatible • Daisy-chain several drivers • Display 8 digits per driver

  8. Packaging Design • Hexagon shape • Each side is 9 inches • 18 x 15.5 inch dimensions • Internal structure 15.56 x 14.4 inches • 2.58 inches tall, ~.25 inches from top of package to PCB • 19 Internal Hexagons • Each side is 1.8 inches • 3.61 x 3.13 inch dimensions • ~.25 inches tall • Frosted Acrylic top surface • Diffuse LED light • Smooth playing surface

  9. Packaging Design - Measurements

  10. Packaging Design - 3D Drawing

  11. Schematic - Hall Effect Sensor Array 18 Parallel Modules

  12. Theory of Operation - Hall Effect Sensor Array • Purpose • Detect presence and position of playing pieces • Mode • Hall Effect sensor detects magnetic pieces, changes output • Hall Effect outputs grouped into sets of 8, go to input of multiplexer • Multiplexer output controlled by Microcontroller via 3 select pins • Multiplexer outputs go to Microcontroller, total 18 return lines • Operation • Supply: 3.3V (all) • Hall Effect: Active low, open drain • Multiplexer: 8:1, complementary output

  13. Schematic - Hexagon RGB LED Array LEDs Data In Data Out Chip Address 7 Serial Modules

  14. Theory of Operation - Hexagon RGB LED Array • Purpose • Distinguish hex resources • Mode • Microcontroller sends commands via two wires to seven RGB drivers • Chips echo data and clock input, so they can be daisy-chained • Commands set RGB color, brightness, and transition speed • Operation • Supply: 3.3V (IC) • LED control outputs can be powered by the 5V rail since they are open-drain • RGB LED: 5V 15mA, parallel

  15. Schematic - Seven Segment Rarity Display SPI Bus Seven Segment Displays 5 Serial Modules

  16. Theory of Operation - Seven Segment Rarity Display • Purpose • Display Rarity, Dice Roll, and Likelihood of roll for each resource • Mode • Microcontroller sends commands to AMS AS1116 Seven Segment Driver • Chips echo data, so data can be daisy chained. • Commands set numbers, brightness, digit, among other things • Rarity, Dice Roll, or Likelihood determined by user or board location • Operation • Supply: 3.3 V (all) • 160mA / driver • SPI

  17. Schematic - Microcontroller External Clock Rarity Display Row Select Column Return Hex Display Raspberry Pi Communication & Power Column Return Programming Column Return Reset Switch

  18. Theory of Operation - Microcontroller • Purpose • Scan sensors, control display, enforce game rules, communicate with Raspberry Pi • Mode • PLL controls operating frequency (external oscillator) • GPIO to scan the Hall Effect Sensors • GPIO to control the RGB driver • I2C to communicate with the Raspberry Pi • SPI to control the seven segment driver • Operation • Supply Voltage: 3.3V • Clock Speed: 60MHz

  19. Schematic - Power 5V Unregulated from Wall Adapter 3.3V Regulated Output Isolation Jumpers

  20. Theory of Operation - Power Supply • Purpose • Supply power to IC's, Raspberry Pi, and LEDs. • Mode • AC wall adaptor supplies 5V unregulated voltage to board • Unregulated voltage powers Raspberry Pi and RGB LEDs • 5V regulated down to 3.3V to power ICs and seven segment displays • Jumpers isolate each power stage from rest of board is required • 5.3V Zener Diode to help protect against over-voltage • Operation • Supply: 5V, 4A • Raspberry Pi: 0.7A • RGB LEDs: 1.7A • Voltage Regulator: 1A

  21. PCB Design Considerations • Large PCB size due to number of sensors and LEDs over a large area. • Approximately 15"x17" • 145 hall effect sensors, 20 7-seg displays, 38 RGB LEDs • Wide traces needed for 5V power rail to RGB LEDs • At peak must provide ~1.7A, need 20mm trace • LEDs and hall effect sensors must be on top layer • Headers for communication and programming • Will need to use auto routing for the some of the board

  22. RGB LED Layout • 6 RGB LEDs per driver • 7 total drivers • Hexagons grouped appropriately • Driver placed near "center" of group

  23. 7-segment Display Layout • 8 7-segment displays per driver • 5 total drivers • Hexagons grouped appropriately • Driver placed near "center" of group

  24. Hall Effect Sensor Layout • 145 total sensors • 8 sensors per multiplexer • Organized so that ever hex (except middle hex) has 8 sensors • Each hex (except middle hex) has 1 multiplexer • 18 total multiplexers • Single sensor in middle hex connected directly to microcontroller

  25. Full PCB

  26. Full PCB

  27. PCB Layout

  28. PCB Layout

  29. Zoom of Hexagons

  30. Zoom of Hexagons

  31. PCB Layout

  32. PCB Layout

  33. PCB Layout

  34. PCB Layout

  35. During Game Roll Dice, assign resources Check if player wants to trade If yes, trade selected resources with selected player Check if player wishes to purchase If yes, remove resources necessary to purchase selected object Wait for placement on board Confirm placement (visual notice on board as well) If invalid piece placement, pause game until piece removed (visual notice on board as well). Software Design • Boot Time • Randomize rarities and resource locations • Self-test LEDs and LCDs • Animate board while waiting for raspberry pi • After boot, before game • Get player information • Additional network setup, if necessary • Set starting settlements (in turn) • Assign players starting resources • Post Game • Ask for new game. If no, shutdown.

  36. Software Development Status • Raspberry Pi Testing • Successfully communicating via I2C running Raspbian • Web server running and serving a preliminary interface • May switch to Arch due to boot time. • mbed Testing • RGB LED Driver working correctly, as is the RGB LED. • Uses 40-bit custom protocol • Seven Segment Display Driver also working correctly, as is the Seven Segment Display. • Hall Effect Sensor responding to various magnets as expected. • Microcontroller Testing • Microcontroller starting and blinking LED • Currently working to communicate via I2C, SPI, and RGB Driver protocol.

  37. April 12 Micro communicating with Raspberry Pi April 19 All game code complete Animations, sensing, etc. complete April 26 Testing complete Full game working Project Completion Timeline • March 22 • PCB obtained, Power populated, Micro populated • Micro communicating with some driver • Web interface ready to communicate • March 29 • PCB 50% populated • Micro communicating with 1 other driver and hall effect sensors • April 5 • PCB Fully Populated • Micro communicating with all drivers

  38. Summary • Hackers of Catron is an electronic version of Settlers of Catan®. • The game uses a Hall Effect Sensor array to sense pieces and locations. • A bank of RGB LEDs is used to display resources and provide real-time board status. The drivers are interfaced with using SPI. • Seven Segment Displays are used to display resource rarity. The drivers are interfaced with using SPI, again. • A Raspberry Pi running a web server and an access point can be connected to using a smartphone, which will display player status and interface with the board. It is interfaced with using I2C.

More Related