23
Super Team 12 Brett Dunscomb David Howden Kevin Bedrossian Chris Clary

Super Team 12

  • Upload
    vita

  • View
    39

  • Download
    0

Embed Size (px)

DESCRIPTION

Super Team 12. Brett Dunscomb David Howden Kevin Bedrossian Chris Clary. NEED. D evelop a simple application that utilizes a sensor and a microcontroller Take a user input from sensor to generate visual stimulus C ustom 8 ball messages Fun to build!. Super. Motivation. - PowerPoint PPT Presentation

Citation preview

Page 1: Super Team 12

SuperTeam 12

Brett Dunscomb David HowdenKevin Bedrossian Chris Clary

Page 2: Super Team 12

NEED

Super

• Develop a simple application that utilizes a sensor and a microcontroller

• Take a user input from sensor to generate visual stimulus

• Custom 8 ball messages• Fun to build!

Page 3: Super Team 12

Motivation

Super

• Take a 50 year old toy and modernize it. • In an era where kids have tablets and

cell phones in kindergarten, their toys should share similar excitement.

• Keep it recognizable to those that grow up with the original toy.

• An upgraded version of the current toy

Page 4: Super Team 12

Objective

Super

Design a prototype for a digital version of the popular children’s toy “Magic 8 Ball” originally conceived by Mattel and improve upon it.

Page 5: Super Team 12

Alternatives

Super

• Current Magic 8 ball uses a plastic icosahedral (20 sided) die to display one of twenty possible messages

• Stuck with the same boring messages• Custom 8 balls cost $2000 for mold http

://www.ginifab.com/gift/custom_magic_8_ball.html

Page 6: Super Team 12

Requirements

Super

Acknowledge shaking motion to deploy message

Have at least as many messages as are in the original toy

Low power consumption Insure product is easy to use

for all ages

Page 7: Super Team 12

Our Approach

Super

• Use accelerometer to acknowledge user input (shaking motion)

• Display random messages on LCD screen

• Use familiar “Magic 8 Ball” casing to house system

Page 8: Super Team 12

State Diagram

Super

Display Mode

Switch mode

Sleep

Pick Message

Display Message

Time delay expiredDouble tap interrupt

Message chosen

Mode selected

Time delay expiredFree fall interrupt

Wait for interrupt

Page 9: Super Team 12

Design

Super

Motion MessageMicrocontroller DisplayAccelerometer

Power

SPIInterrupts

I2C

DC Voltage 3.3

9 Volt battery

Page 10: Super Team 12

• 3-axis measurement• Two configurable interrupt pins• Multiple low power modes• Capable of threshold detection

while in sleep mode• Vin of 3.3V with 3.3V logic

Accelerometer

Super

Analog Devices ADXL345 Breakout from Adafruit

Page 11: Super Team 12

Accelerometer

Implementation• I2C bus

communication• Threshold activity

interrupt• Low power state

Super

Page 12: Super Team 12

Atmega 328p• 8 bit processor• 8 MHz clock• 32K of flash memory• 2K of Ram• TQFP package 32 pins• Inexpensive

Microcontroller

Super

Page 13: Super Team 12

Display

Super

Nokia 5110/3310 monochrome LCD from Adafruit

• 84 x 48 pixel count• Backlit• Runs off 3.3 volt• Uses a SPI bus

Page 14: Super Team 12

Display

Super

Implementation:• Display all 20 original 8 ball messages• Readable in dark rooms• Displays Bitmaps

Page 15: Super Team 12

Power

Super

Implementation• 9V battery supply• LM 317 voltage regulator

steps down to 3.3V• Low power mode draws

5mA down from 30mA when displaying a message

Page 16: Super Team 12

Implementation

Super

Page 17: Super Team 12

Implementation

Super

Page 18: Super Team 12

IP and Prior Work

Super

• Atmel TWI_MASTER Library• Adafruit Library• Sparkfun Libray• Display code http://pastie.org/1332371• Mattel for the 8 ball shell and idea

Page 19: Super Team 12

Testing

Super

BREAD BOARD TESTS• Tested power circuit output• Tested random message display• Tested accelerometer output levels

IMPLEMENTATION TESTS• Tested power to components• Tested sleep mode• Tested shake response

Page 20: Super Team 12

Results

Super

• Initially tried powering the 8 ball with a shake generator but was unable to make it work

• 9V battery with single regulator was able to power all components

• System goes into sleep mode shortly after message is displayed

• System wakes up when shaken• Display was clear and easy to read

Page 21: Super Team 12

Costs

Super

• Nokia 5110/3310 LCD $ 10.00• ADXL345 Accelerometer $ 19.95• Atmega 328p $ 2.50• Header pins $ 1.25• Board $ 8.00• 8 Ball housing $ 8.00• Resistors, caps, etc $ 7.00• 9V battery $ 2.50

$ 59.20

Page 22: Super Team 12

Lessons Learned

Super

• Proper time management is important• Setting documentation standards early

and following them throughout is necessary

• Proper communication is key• Have all the surface mount components

ready to go at once, don’t try adding one later

• With access to reflow oven, the breakout board was an unnecessary cost

Page 23: Super Team 12

Contributions

Super

• Brett Dunscomb: display coding, breadboard testing, and microcontroller pin assignment for display

• Chris Clary: schematic design, passive component setup, and board layout

• David Howden: power system design, power system test and board layout

• Kevin Bedrossian: accelerometer coding, breadboard testing, and microcontroller pin assignment for accelerometer

• Group: documentation, final construction, component research, and implementation testing