1 / 49

Vibrating Earplug Alarm

Vibrating Earplug Alarm. Group28: Carlos Chan Peter Lee Seung Lee TA: Greg Sorenson. Introduction. Earplugs will block out the unwanted noises and alert the user when needed.

albert
Télécharger la présentation

Vibrating Earplug Alarm

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. Vibrating Earplug Alarm Group28: Carlos Chan Peter Lee Seung Lee TA: Greg Sorenson

  2. Introduction • Earplugs will block out the unwanted noises and alert the user when needed. • There are different types of earplugs/hearing aids out on the market but we are not aware of any products that functions as an alerting device.

  3. Motivation • Good nights sleep • Privacy • Peace and quiet • Alarm clock • Make it to classes on time • ECE345 project

  4. Docking Station Keypad LCD Display PIC Microcontroller AC Adapter Printed Circuit Board Data Transfer Interface 555 Timer Earpiece Motor PIC Microcontroller Battery Data Transfer Interface Printed Circuit Board 555 Timer Our Project…

  5. Final Docking Station Packaging

  6. Docking Station • LCD display • Display current time and alarm time • Part of user interface • 2 lines, each line 16 characters • Operating voltage: 4-6V

  7. Docking Station • Keypad • 8 Pin output to decorder • Decorder(MN74C922) • Input from keypad • Output to PIC microcontroller • Used to input current time and alarm time

  8. Docking Station • PIC Microcontroller • PIC16F877 DIP • 40 Pin DIP • C programming language • PICSTART PLUS and BP-1200 • Keep track of current time and programmed alarm time • Send alarm time information to earpiece PIC

  9. Docking Station • Data Transfer Interface • Ready bit • Pseudo Clock • Start packet (16 bits, unique data) • Data(16 bits)

  10. Docking Station • 555 timer • 10% duty cycle pulse every one second • Used to reference an accurate measurement of one second

  11. 555 Timer Circuit

  12. Docking Station • Problems • PIC microcontroller was not receiving proper voltage level to detect the input as a HIGH • Had LEDs connected to the 4 outputs of the decoder • LEDs were draining too much current and as a result, voltage level at the PIC input was 2.3V • Solution • Disconnected all the LEDs from the decorder output • Voltage level at the PIC input now 4.8V

  13. Docking Station • Problems: • Output voltage of the decorder was not stable • PIC microcontroller was not receiving the necessary logic values • Solution: • 1K ohms pull down resistor at the output of the decorder • PIC distinguish between HIGH and LOW logic level

  14. Docking Station • Problem: • PIC microcontroller does not support division function • Need the division function to gain access each decimal place • Solution: • Richard Cantzler came up with a function that gave us access to each decimal place using decrement and loops

  15. Docking Station • Problem: • Timing issue between the PIC microcontroller in the docking station and the PIC microcontroller in the earpiece during data transfer • Solution: • Delay at the docking station PIC is greater than the delay at the earpiece PIC

  16. Flow Chart of Program in Docking Station

  17. Earpiece • PIC microcontroller • PIC16F819 18 pin DIP(original design) • Low power consumption • Wide operating voltage range: 2.0V-5.5V • PIC16F877 40pin DIP(final design)

  18. Earpiece • Motor • PIC microcontroller sets off the motor

  19. IV Characteristic of the Motor

  20. Earpiece • 555 timer • 10% duty cycle pulse every one second • Used to reference an accurate measurement of one second

  21. Earpiece • Battery • Size 13 Duracell battery(DA13N8) • Small size • 1.4V • Use 2 batteries to power the circuit(2.8V) • Max current 80mAh

  22. Data Transfer Test • Delay’s During Demo • Docking station: 70ms • Ear Piece: 50ms • Approximate total time 2.4 secs • Fastest delay achieved • Docking station: 20ms • Ear Piece: 5ms • Approximate total time 0.64 secs

  23. Earpiece • Problem: • Unable to program PIC16F819 using the programmer in the lab. Confident in the software due to simulation testing. • Solution: • Use the PIC16F877 instead of PIC16F819 • Increase in size but our project works • Use 9V battery instead of two 1.4V hearing aid batteries

  24. Earpiece • Problem: • Data transfer interface • Timing issue with the PIC microcontroller on the docking station • Solution: • Run less delays than the PIC microcontroller on the docking station • Have the PIC on docking station hold values to make sure PIC on earpiece read the correct value

  25. Flow Chart of Program in Earpiece

  26. Printed Circuit Board • Designed using EASYTRAX • Made at the part shop • Three final printed circuit board: • Docking station • Earpiece(PIC16F819) • Earpiece(PIC16F877) • Contains all the circuitry of the docking station and earpiece • Earpiece PCB has data transfer pins for easy connectivity

  27. Printed Circuit Board • Problem: • Individual module testing difficult • Need to test each module to make sure that it is working correctly • Solution: • Inserted rail of free pin connections to each of pins that are used in testing

  28. Printed Circuit Board • Problem: • Different resistor values needed for the 555 timer circuit on the printed circuit board than 555 timer circuit on the protoboard • Solution: • Manually change the resistance on the potentiometer to get a pulse every one second • Resistance of the printed circuit board tracks and the actual wires different

  29. Printed Circuit Board • Problem: • Input voltage from decorder to PIC is not high enough • Solution: • Use bigger pull down resistor(instead of 1K ohms use 5K ohms) • Voltage at the PIC input changed from 2.8V to 4.5V(2.8V not high enough for PIC to recognize as HIGH input)

  30. Recommendations • Programming • Group experienced with C/C++, however overlooked programming limitations of the PIC. • No divide function • Passing variables to other functions • Hardware/software interface

  31. Final Design • PIC16F877 PIC microcontroller for the docking station • PIC16F877PIC microcontroller for the earpiece • Power supply from lab powering the docking station • 9V battery powering the earpiece

  32. Final Printed Circuit Board for Earpiece(PIC16F819)

  33. Final Printed Circuit Board for Earpiece(PIC16F877)

  34. Final Docking Station Packaging

  35. Thank you… • Professor Swanson: 555 timer idea • Greg Sorenson: Guiding us and making sure we are on the right track • Richard Cantzler: programming help and printed circuit board help • Parts shop crew

More Related