Transcription

1 International Journal of Electronic and Electrical Engineering. ISSN Volume 7, Number 2 (2014), pp International Research Publication House Intelligent Power Saver Alarm Clock with Digital Thermometer Kevin Johny Joseph 1, Helena Babu 2 and Jithin Jose K 3 1 UG Student [EEE], Dept. of Electrical and Electronics, Mar Athanasius College of Engineering, Kothamangalam, India 2 UG Student [EEE], Dept. of Electrical and Electronics, Mar Athanasius College of Engineering, Kothamangalam, India 3 UG Student [EEE], Dept. of Electrical and Electronics, Mar Athanasius College of Engineering, Kothamangalam, India Abstract The purpose of this project is to create a micro-controller based power saver alarm clock with digital thermometer. Energy scarcity is one of the major problems in the present world. Future without energy is beyond imagination. For this we need to use energy wisely.the project is aimed in developing a power saver alarm clock during studying with an automatic shut off of the lighting in the study room when triggered after a certain predetermined time. The major component used in the project is ATMEGA microcontroller, one of the most user friendly microcontrollers. This project also incorporates the functionality of a digital thermometer. A thermometer is a device that measures temperature.here to read the value, we convert surrounding temperature to digital value by the help of a temperature sensor. Sensors, from their name convey that they sense the temperature in the surroundings. The sensors give the output in relation to the centigrade scale. Keywords: Intelligent Power Saver Alarm Clock, Digital Thermometer, Microcontroller, LCD Display Interface. 1. Introduction The system comprises of a push button keypad connected to the 8 bit microcontroller ATmega328P. This is one of the popular Microcontrollers. It has only 20 pins and

2 108 Kevin Johny Joseph et al there are 15 input/output lines. The microcontroller has a flash memory of 32Kbytes, 1 Kbyte EEPROM and 2 Kbytes RAM. The project is aimed in developing a power saver alarm clock during studying with an automatic shut off of the lighting in the study room when triggered after a certain predetermined time. The basic idea behind the project is that a predetermined time is entered into the microcontroller. A relay driven by the output of the microcontroller controls the supply. Thus it controls the lighting. This project also incorporates the functionality of a digital thermometer. A thermometer is a device that measures temperature.here to read the value, we convert surrounding temperature to digital value by the help of a temperature sensor. Sensors, from their name convey that they sense the temperature in the surroundings. The sensors give the output in relation to the centigrade scale. These sensors are easily available. These sensor output can be used in measuring the temperature, Hence these sensors are used in digital thermometers. 2. ATMEGA 328P Architecture The ATmega328P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega328P achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. The AVR core combines a rich instruction set with 32 general purpose working registers. All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers. The ATmega328P provides the following features: 32K bytes of In-System Programmable Flash with Read-While-Write capabilities, 1K bytes EEPROM, 2K bytes SRAM, 23 general purpose I/O lines, 32 general purpose working registers, three flexible Timer/Counters with compare modes, internal and external interrupts, a serial programmable USART, a byte-oriented 2-wire Serial Interface, an SPI serial port, a 6- channel 10-bit ADC (8 channels in TQFP and QFN/MLF packages), a programmable Watchdog Timer with internal Oscillator, and five software selectable power saving modes. The Idle mode stops the CPU while allowing the SRAM, Timer/Counters, USART, 2-wire Serial Interface, SPI port, and interrupt system to continue functioning. The Power-down mode saves the register contents but freezes the Oscillator, disabling all other chip functions until the next interrupt or hardware reset. In Power-save mode, the asynchronous timer continues to run, allowing the user to maintain a timer base while the rest of the device is sleeping. The ADC Noise Reduction mode stops the CPU and all I/O modules except asynchronous timer and ADC, to minimize switching noise during ADC conversions. In Standby mode, the crystal/resonator Oscillator is running while the rest of the device is sleeping. This allows very fast start-up combined with low power consumption.

3 Intelligent Power Saver Alarm Clock with Digital Thermometer 109 The device is manufactured using Atmel s high density non-volatile memory technology. The On-chip ISP Flash allows the program memory to be reprogrammed In-System through an SPI serial interface, by a conventional non-volatile memory programmer, or by an On-chip Boot pro- gram running on the AVR core. The Boot program can use any interface to download the application program in the Application Flash memory. Software in the Boot Flash section will continue to run while the Application Flash section is updated, providing true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the Atmel ATmega328P is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. 3. LCD Display Interface The dot-matrix liquid crystal display controller and driver LSI displays alphanumeric, characters, and symbols. It can be configured to drive a dot-matrix liquid crystal display under the control of a 4 or 8-bit microprocessor. Since all the functions such as display RAM, character generator, and liquid crystal driver, required for driving a dotmatrix liquid crystal display are internally provided on one chip, a minimal system can be interfaced with this controller/driver. A single HD44780U can display up to two 8- character lines (16 x 2). Pin no 3 of the LCD is used to control the contrast by using preset PR1. Pin No. Name Description Pin no. 1 D7 Data bus line 7 (MSB) Pin no. 2 D6 Data bus line 6 Pin no. 3 D5 Data bus line 5 Pin no. 4 D4 Data bus line 4 Pin no. 5 D3 Data bus line 3 Pin no. 6 D2 Data bus line 2 Pin no. 7 D1 Data bus line 1 Pin no. 8 D0 Data bus line 0 (LSB) Pin no. 9 EN1 Enable signal for row 0 and 1 (1stcontroller) Pin no. 10 R/W 0=Write to LCD module 1=Read from LCD module Pin no. 11 RS 0=Instruction input 1=Data input Pin no. 12 VEE Contrast adjust Pin no. 13 VSS Power supply (GND) Pin no. 14 VCC Power supply (+5V) Pin no. 15 EN2 Enable signal for row 2 and 3 (2ndcontroller) Pin no. 16 NC Not Connected 4. Working and Circuit Diagram After the program is burned, LCD displays SET TIME. Time is set using the push buttons (tactile switches) in the circuit. After the time is set, LCD displays SET

4 110 Kevin Johny Joseph et al ALARM. Alarm is also set with the help of push buttons. Alarm goes on for that particular time at which the alarm has been set. If the alarm is not snoozed then the relay is cut off and the supply is shut off. If it is snoozed the microcontroller starts its next cycle of counting. The LCD also displays the temperature of the surroundings at bottom right of the screen. We can introduce a lighter fire or any heat source near the LM-35 temperature sensor for observing this. Fig. 1: Block Diagram

5 Intelligent Power Saver Alarm Clock with Digital Thermometer 111 The Main Part of the above Circuit diagrams is the Microcontroller ATmega328P. The push button keypad is the input device wherein one button acts as an up button(number gets incremented with each press 1,2,3,etc), second button acts as a down button and the third one is the set button(sets a digit and moves to the next digit). ). A predetermined time is set on the microcontroller(say 30 mins). An alarm (worked by interfacing to the microcontroller) will be triggered after every 30 mins during the study period. A student who is awake can snooze the alarm, so that the microcontroller starts it counting for next cycle. If the student is asleep the alarm won t be snoozed(which means that the student is either asleep or he is not in the room).hence the lighting in the room is shut off by using a controlling relay. The power supply section is very important. It should deliver constant output regulated power supply for successful working of the project. Regulated 5 volt supply is taken through the USB port of a laptop/desktop. Fig. 2: Circuit Diagram.

6 112 Kevin Johny Joseph et al 5. Conclusion The desired output for student anti sleep alarm clock with digital thermometer is obtained. The system worked as per the requirements specified. As the relay automatically shuts off the power supply, a lot of energy can be saved helping to reduce the extent of energy scarcity. As an extended application, the system can be incorporated in the student hostels were energy wastage is at its peak.. We were able to implement all the functions specified in our proposal. The biggest hurdle we had to overcome with this project was interfacing the micro controller with the hardware components. We feel that this power saver alarm is very marketable because it is easy to use, comparatively inexpensive due to low power consumption, and highly reliable. This power saver alarm is therefore particularly useful in applications such as student anti sleep alarms. 6. Acknowledgment We extend our sincere thanks to Prof. Radhakrishnan K, Head of the department for providing us with the guidance and facilities for the mini project. We also thank our faculty advisor Prof. Salice Peter for her valuable guidance. We express our sincere gratitude to mini project coordinator Mr. Eldhose K A, staff in charge, for their cooperation and guidance for preparing and presenting this mini project. We also extend our sincere thanks to all other faculty members of Electrical and Electronics Department and our friends for their support and encouragement. References [1] AT mega 328P datasheet [2] Jeremy Blum, Exploring Arduino: Tools and Techniques for Engineering Wizardry, Wiley publishers,4th edition. [3] LCD 16*2 datasheet [4]

MICROCONTROLLER BASED TEMPERATURE INDICATOR SUBMITTED BY: 1 INTRODUCTION The aim of this project is to design an ambient temperature measurement circuit. The motivation for doing this project is the fact

Volume 5, Issue 4, 2015 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com A System for Car Accident

PIC MICROCONTROLLERS FOR DIGITAL FILTER IMPLEMENTATION There are many devices using which we can implement the digital filter hardware. Gone are the days where we still use discrete components to implement

GAS LEAKAGE DETECTION & AUTO ON-OFF GAS SYSTEM This system helps you to upgrade your safety standards, comply statutory requirements on environmental commitments and most important and basic function being

2.0 Command and Data Handling Subsystem The Command and Data Handling Subsystem is the brain of the whole autonomous CubeSat. The C&DH system consists of an Onboard Computer, OBC, which controls the operation

USB-CPLD DEVELOPMENT SYSTEM FOR THE ARDUINO The EPT USB-CPLD development system provides an innovative method of developing and debugging programmable logic code. It also provides a high speed data transfer

Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are

Hello, and welcome to this presentation of the STM32L4 reset and clock controller. 1 The STM32L4 reset and clock controller manages system and peripheral clocks. STM32L4 devices embed three internal oscillators,

C8051F020 Utilization in an Embedded Digital Design Project Course Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia Abstract In this paper, the utilization of the C8051F020 in an

Brochure More information from http://www.researchandmarkets.com/reports/2176850/ Using LEDs, LCDs and GLCDs in Microcontroller Projects Description: Describing the use of displays in microcontroller based

Single-Phase Energy Meter Reference Platform Software High Level Design Specification Ver1.0 Note: This document may subject to change by Renesas Technology Singapore without prior notice. This is to record

AVR ATmega8 Development Board Campus Component Pvt. Ltd. DISCLAIMER Information furnished is believed to be accurate and reliable at the time of publication. However, Campus Component Pvt. Ltd. assumes

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK Because Arduino that is the development project on AVR MCU as Open Source has been published, it is popular and widespread shortly.

ADVANCED FIRE ALARMING SYSTEM THROUGH MOBILE PHONE A PROJECT BY SOUNAK SARKAR SAYAN DAS ARINDAM BOSE ECE, 4TH YEAR OF FUTURE INSTITUTE OF ENGINEERING AND MANAGEMENT DEPT. OF ELECTRONICS AND COMMUNICATION

USER GUIDE EDBG Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging support through Atmel

A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components

Designing VM2 Application Boards This document lists some things to consider when designing a custom application board for the VM2 embedded controller. It is intended to complement the VM2 Datasheet. A

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs AN033101-0412 Abstract This describes how to interface the Dallas 1-Wire bus with Zilog s Z8F1680 Series of MCUs as master devices. The Z8F0880,

Making Programmer and Basic target. AVR Tutorial Series. www.extremeelectronics.co.in PART 3 Now u know what tools are required for MCU based development. And you are familiar with their uses. Now time

April 2014 7 Serial Communications Objectives - To be familiar with the USART (RS-232) protocol. - To be able to transfer data from PIC-PC, PC-PIC and PIC-PIC. - To test serial communications with virtual

Nurve Networks Chameleon AVR Credit Card Sized Computers GENERAL OVERVIEW The Chameleon AVR 8-Bit is the evolution of the high performance, small footprint, application development board. Similar to the

SKP16C62P Tutorial 1 Software Development Process using HEW Renesas Technology America Inc. 1 Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW (Highperformance

INDUSTRIAL INTELLIGENT LINE FOLLOWER ROBOT WITH AUTO GO DOWN DETECTION, AUTO OBSTACLES DETECTION, WIRELESS VEHICLE STATUS DATA TRANFER TO SERVER AND MANY MORE FEATURES INTRODUCTION: This project is based

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors

RF transceiver (Zigbee/X-Bee) based energy meter monitoring system. (Energy Meter reading on PC over wireless communication) The purpose of this project is to read the Energy meter reading and transmit

Introducing AVR Dragon ' Front Side Back Side With the AVR Dragon, Atmel has set a new standard for low cost development tools. AVR Dragon supports all programming modes for the Atmel AVR device family.

Intelligent Home Automation and Security System Ms. Radhamani N Department of Electronics and communication, VVIET, Mysore, India ABSTRACT: In todays scenario safer home security is required, As the technology

An Introduction to MPLAB Integrated Development Environment 2004 Microchip Technology Incorporated An introduction to MPLAB Integrated Development Environment Slide 1 This seminar is an introduction to