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”

isha
Télécharger la présentation

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 USB media slot • Tone buzzers • User detection • Sensing system for detecting when user is in bed

  5. Objectives • For the alarm time span set by the user, if they are detected by the sensor system, the alarm performs user chosen actions and silences itself anytime there is no user detected • The appliance module will use local on/off control and is remotely controllable by the alarm clock • The alarm clock has a battery backup to prevent both clock time loss due to power outage and snoozing by unplugging • Power usage is designed around efficiency

  6. Specifications • System does not exceed 12”L x 9”W x 5”H • It displays time and date in U.S. standard format (HH:MM) using OLED screen • Battery backup lasts through 8 hours • (4 hours is an average power outage) • Pressure sensors have 12 feet of wire for flexible placement • Wireless integration has a minimum range of 100 feet

  7. System Overview

  8. External Enclosure

  9. Chosen material: Wood Top: Pushbuttons Front: OLED and Speaker Back: Power cable, and USB media 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, USB thumb drive • Enough memory for system logic and device interfacing • Low power

  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 FM Tuner Speaker External Audio Jack Microcontroller Buzzer MP3 Decoder • FM Tuner and Buzzers are powered on through the microcontroller only when in use. • The MP3 audio is sent to an audio jack for external speakers. • A common LM1458 Op-Amp is used to amplify the FM audio before passing it to the internal speaker, and is controlled with an analog potentiometer.

  15. Buzzers • Two buzzers are used, the CPE-503 and the WST- 1205S • The WST-1205S is turned on using 5V and has a set output of about 85dB, which is the softer buzzer. • The CPE-503 has an audio output of 95dB, and is also controlled with a 5V line from the microcontroller. 95 dB is the loudest noise that should be used without the risk of causing hearing damage over extended periods of time.

  16. FM Tuner • TDA7000 chip chosen for easy implementation on a PCB • Tuning is voltage controlled, which is changed via a variable inductor and potentiometer, which is part of the housing and connect to the PCB with leads for user tuning

  17. USB Flash Drive is used to play MP3 files using the FAT16 file system on the VMusic2 module • Socket will be externally accessible • Interface to the microcontroller is Serial uART USB Flash Drive Reader

  18. MP3 Decoder • VS1003 chip used to decode data from USB Host Controller via SPI interface, subsequently sending data to microcontroller and then to speaker output • The data request pin is set high when the VS1003 is capable of receiving data • Plays different audio formats: MP3, WMA, and MIDI • 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

  21. OLED 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. FAILED!!!

  26. Pulsor Pressure Sensor • Pulsor is a motion / presence detection device that responds to the physical flexing of the material on which it is mounted. • The flexing of the material varies the resistance of the sensor connected as R2 in a voltage divider network • The voltage is measure in an ADC converter to determine if the user is in the bed.

  27. Wireless Integration

  28. The appliance module is capable of controlling any appliance with a max of 20 amps. It has a indicator light for current status and a push button for local status control. The user can also choose to enable the appliance module start time with alarm time. Wireless Integration

  29. Xbee Series 2 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

  30. Clock

  31. 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 • Highly accurate with support for daylight savings and leap years

  32. Power Supply

  33. Battery Back-up Power Supply AC Wall Outlet 5V Voltage Regulator 3.3V Step-Down Zigbee Microcontroller 12V Wall Wart FM Tuner Buzzers 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 OLED Screen Clock/Timer -12V Line Pressure Sensor USB/MP3

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

  35. Backup Battery • 8 AA batteries in series 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, and during testing, supplied over 20 hours of power to the device.

  36. 3 1 • A common 12V wall wart is used to provide the power • The backup battery (12V) only activates when there are power outages, and the LED will only turn on if the battery is failing • LM7805 voltage regulator is used as step-down, with an LED for visible confirmation of “power on” • LM11171 voltage regulator is used to step the 5V line down to 3.3V for the Zigbee • The Op-Amp is biased with the +12V source and a -12V line from a DC/DC converter (NKA1212SC from Murata Power Solutions) Schematics 2 4 5

  37. Software

  38. 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 • Available RAM is only 2 KB • Creation • Software Engineers • Josh Rust • Philip Bell • Programming Languages • Arduino/C++ • Development Environment • Arduino 0016

  39. 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

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

  41. Project Budget Total: $643.36

  42. Project milestones

  43. Project Difficulties • Audio amplification withDC voltage and digital potentiometer • Powering MP3 device through a relay • Insufficient amount of memory on ATmega644P for menu system, minimization of code was performed. • SD Card communication over SPI

  44. Project Difficulties • Implementation of a software serial system • Timing over an I2C connection • Keeping the complex menu system intuitive and easy to use • Integrating and testing with the Pulsor Pressure Sensor

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

  46. Special Thanks • Michael Angell - UCF B.S.M.E. • External enclosure schematics for Solid Works • Dr. Samuel Richie - Undergraduate Program Coordinator of EE/CpE • Supporting the project

  47. Questions?Comments?Improvements?

More Related