1 / 47

Get Up Stand Up GuSu

Get Up Stand Up GuSu. Group 5 Summer 09. Andrew Leger Joshua Rust Matthew O’Morrow Philip Bell. Problem. Can’t always wake up on time Most alarms are more “annoying” than waking Almost all alarms allow the user to go back to bed. Solution. Wake the user on time Wake the user “gently”

abeni
Download Presentation

Get Up Stand Up GuSu

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. Get Up Stand UpGuSu Group 5 Summer 09 Andrew Leger Joshua Rust Matthew O’Morrow Philip Bell

  2. Problem • Can’t always wake up on time • Most alarms are more “annoying” than waking • Almost all alarms allow the user to go back to bed

  3. Solution • Wake the user on time • Wake the user “gently” • Flexible and robust alarm clock allowing many options in both timing and method of waking the user • Make sure the user is awake • Detect user’s presence in bed and do not allow snooze or off option during their waking time

  4. Objectives • Timing • Internal clock • Flexibility • Full user control over “what” and “when” • Seven day alarm time programmability • Options • FM tuner integration • MP3 audio integration via SD card slot • Tone buzzers • User detection • Sensing system for detecting when user is in bed

  5. Objectives • For thirty minutes after alarm time, if a user is detected by the sensor system, the alarm will perform user chosen actions and silence itself anytime no user is detected • The coffee maker will have local on/off control and will be remotely controllable by the alarm clock • The alarm clock shall have a battery backup to prevent both clock time loss due to power outage and snoozing by unplugging • Power usage will be designed around efficiency

  6. Specifications • System will not exceed 12”L x 9”W x 5”H • It will display time and date in U.S. standard format (HH:MM) using LCD screen • Battery backup will last through 8 hours or at least 4 hours (average power outage duration) • PIR sensors will have 15 feet of wire for flexible placement • Wireless integration will have a minimum range of 100 feet

  7. System Overview Matt - Philip Philip Josh Josh Andrew Andrew- Matt Josh

  8. External Enclosure

  9. Chosen material: Wood Top: Pushbuttons Front: LCD and Speaker Back: Power cable,FM tuning knob, and SD Card slot Side: FM tuning knob Case Design 8:42 AM MP3 Coffee 6:20 AM 9” 12” 5”

  10. Microcontroller

  11. Microcontroller Requirements • Handles all communication and control between external devices • Must support USART, SPI, and I2C, ADC • Five push buttons, XBee, MP3 decoder, FM Tuner, SD card • Enough memory for system logic, device interfacing and capable of implementing a FAT16 file system (~14 KB)

  12. The ATmega644P is a 40 pin Advanced RISC Architecture microprocessor: • 64 KB Flash memory • 20 MIPS at 20 MHz • 8 bit ADC • Two UART ports • SPI ports • I2C port • Adequate amount of digital I/O • pins for possible expansion of • functionality ATmega644P Specifications

  13. Alarm Implementation

  14. Block Diagram Audio Amplifier Multiplexer MP3 Decoder Speaker FM Tuner Microcontroller Buzzer SD Card Reader • A multiplexer (HI3-0509-5) will be controlled via the microcontroller to determine which audio device will be powered and passed to the speaker • A common LM1458 Op-Amp will be used to amplify the audio, controlled with a digital potentiometer using I2C (AD5171)

  15. Buzzers • Two buzzers will be used, the CPE-503 and the WST- 1205S • The CPE-503 will be controlled with ramping voltage to slowly grow louder up to a maximum output of about 70 dB • The WST-1205S will be turned on using 5V and has a set output of about 85dB, which is just under damaging sound levels from prolonged exposure

  16. FM Tuner • TDA7000 chip chosen for implementation on a PCB without special processing hardware • Tuning controlled via variable inductor and potentiometer, which will be part of the housing and connect to the PCB with leads for user tuning

  17. SD Card will be used for playing MP3 files using the FAT16 file system • Socket will be externally accessible • Interface to the microcontroller will be SPI with only the option to read data SD Card Reader

  18. MP3 Decoder • STA013 chip used to decode data from SD Card through microcontroller SPI interface to speaker output • When ready to receive data the STA013 sends a high signal to the microcontroller, simplifying implementation • I2C data interface used for control • It can determine sampling frequency up to 48 KHz and MP3 input rate of 320Kbit/sec, again simplifying implementation work required

  19. User Interface

  20. Physical user interface • Five pushbuttons • Up, Down, Left, Right, Center • Used to navigate menus during setting • Used for audio controls while running and not within alarm time span

  21. Liquid Crystal Display • uOLED-160-G1 (Organic Light Emitting Diode) • Resolution: 160x128 pixels with 256/65K true color. Width: 1.81 in, Height: 1.26 in • Chosen for 5 pin UART interface and full graphical display ability

  22. Graphical user interface • Current time • Day of the week • Next alarm time • Selected action and their order Running Display Setting Display • What options can be changed under current menu • Current setting • Highlight current selected setting for changing

  23. Sensor system

  24. Sensor system Hypothetical Implementation

  25. Sensor system • Wooden housing protects sensor and wires • Allows for painting to match surroundings or “decorative” style • Helps narrow sensing range to prevent detection of warm bodies outside of bedding area • Wall/Ceiling mounted PIR sensor • Aimed at bed • Wired directly for analog reading by GuSu system

  26. Wireless Integration

  27. Coffee Machine The coffee machine will be an off the shelf coffee machine which can be controlled locally or remotely by the alarm clock. The user can choose to enable the coffee machine start time with alarm time. Wireless Integration

  28. Xbee Series 1 Module • Complete System on Chip module • Provides wireless serial interface • Zigbee Compliant • AES 128 Bit encryption • Out of the box solution for enabling wireless communication between devices

  29. Clock

  30. Real Time Clock- DS-1307 • Using an external clock will prevent timing issues in program execution. • Communicates with microcontroller over I2C interface • Stores HH:MM:SS and DD/MM/YYYY • Microcontroller pushes the next alarm time to the clock which in turn sends an interrupt back at alarm time

  31. Power Supply

  32. Battery Back-up SD Card Reader Power Supply AC Wall Outlet 5V Voltage Regulator 3.3V Step-Down Mp3 Decoder Zigbee Microcontroller 12V Wall Wart FM Tuner Buzzer Op-Amp • A 5V and 3.3V DC power supply is required. Also, +12V and -12V is required to bias the Op-Amp • A Power LED and battery replacement LED indicate status LCD Screen Clock/Timer -12V Battery PIR Sensor

  33. Device Requirements Main power supply is a wall wart that provides 12V DC, and allows for 1A of current

  34. Backup Battery • 8 AA batteries in series will serve as the backup battery • These provide the most cost-efficient implementation, and are easily replaceable for the user • AA batteries store roughly 2800 mA*h of charge, so this would provide roughly 12 hours of supply to the clock, assuming every device was active

  35. 3 1 • A common 12V wall wart will be used to provide the power • The backup battery (12V) will only activate when there are power outages, and the LED will only turn on if the battery is failing • LM7805 voltage regulator used as step-down, with an LED for visible confirmation of “power on” • DE-SWADJ is a variable voltage regulator with built-in capacitances. It will be used to step-down to 3.3V • The Op-Amp will be biased with the +12V source and a 12V battery Schematics 2 4 5

  36. Software

  37. Software • Design • Control all devices and hardware connected to microcontroller • Be complex enough to simplify user controls and implement the planned graphical user interface • Total code size must not exceed 64KB • Creation • Software Engineers • Josh Rust • Philip Bell • Programming Languages • Arduino/C++ • Development Environment • Arduino 0015

  38. Software • Implementation • Global variables for all user settings • Two “Main” functions RunMode and SetMode invoke all other functions and decide behavior based on user interaction

  39. Current State

  40. Printed Circuit Board • Current Finalized Design • Filled Ground plane • Created with ExpressPCB in conjunction with ExpressSCH

  41. Current challenges • Another microcontroller may be necessary to control MP3 decoder • Final software design for tree menu navigation implementation • Completion of base requirements in time to make productive attempts at “extra” features • Complete unit testing of software will be complex

  42. Project Budget Total: $391.67

  43. Project milestones

  44. Project Progress

  45. Work Distribution • Andrew • Power Supply • Battery Backup • FM implementation • PCB Design • Audio Output • Josh • Wireless Xbee Implementation • Software Libraries • External Enclosure Design • Clock Implementation • Philip • Physical User Interface • Graphical User Interface • Behavior/Control Software • Sensor System • Matt • LCD Implementation • MP3 Implementation • Project Website

  46. Special Thanks • Michael Angell ~ UCF B.S.M.E. • External enclosure schematics for Solid Works • Construction of external enclosure

  47. Questions?

More Related