lab five

lab five - -To operate the buzzer you need to solder the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIVERSITY OF CONNECTICUT Fall 2011 ECE 3411: Microprocessor Application Laboratory Lab 5 Oct. 10 th , 2011, Due to Oct 17th lab. 1 Lab 5: LCD Real-time Desk Clock (Combined Timer, Interrupt, LCD) 1. Objectives Further interface the embedded microcontroller resources with peripherals 2. Related lectures and labs (Lectures 2, 4, and Labs 2, 4) 3. Reading: AVR datasheet Chapter 15, Timer/Counter2 Buzzer Datasheet 4. Lab assignments: 1) A display of current hours, minutes, and seconds, and AM/PM (example 5:25:59 PM) on the LCD. You can set the initial time when you program your board, and from there the clock should operate on its own and reflect real time. You will need to use one of the available 16-bit timers on the Atmel microprocessor for your clock to function. 2) Make a sound using buzzer
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -To operate the buzzer you need to solder the relevant buzzer circuit components (1 buzzer, two 1k resistors and a NPN transistor, see schematic). -Next, you should review the buzzer datasheet to learn how to properly operate this piezoelectric element. -Buzzer requires pulsed signals. If you apply simple bias the transistor and turn on the buzzer, it does not work and may actually damage the buzzer. Rather, you need to apply a time varying signal to the gate of NPN transistor. 3) Clock alarm setting. Once you understand how to use a buzzer, then you can make a program: real time desk clock with alarm function. The time at which the alarm will sound is something you can set in code before you download your program to the microcontroller....
View Full Document

This note was uploaded on 11/21/2011 for the course ECE 3411 taught by Professor Park during the Fall '11 term at UConn.

Ask a homework question - tutors are online