Tag archives for Temperature
Microcontrollers have become very useful in embedded design as they can easily communicate with other devices, such as sensors, switches, displays, keypads, motors and even other microcontrollers. A microcontroller is basically used as the brain or intelligent processing unit to control other devices connected (interfaced) to it in embedded systems just like a PLC is in industrial automation. Interfacing a device with a microcontroller in simplest terms simply means to connect a device to a microcontroller. This article will make it easier to anybody with very limited experience in electronics to learn how to interface different sensors widely with a PIC Microcontroller.
An SD Card can be used to log data continuously over time for various purposes, this project shows the design of a temperature data logger with menu control system. The ambient temperature is read every minute and stored in a file on an SD card. When the program starts, the user is given three options: Saving the temperature readings to a new file on an SD card, Appending the temperature readings to an existing file or Sending all the saved file contents to a PC The user will have to choose one option and then press enter to start logging data. This menu only accessible once when the program starts, if the user wants to choose another option, he/she has to restart the program by pressing the reset button.
In this project, The ambient Temperature is read every Hour then sent to a specified mobile phone number as SMS Text Messages. When the device is turned on, The GSM module is initialized, then the program goes into an endless loop. The Temperature is read, sent to a specified mobile phone number as an SMS Text Message, then the program wait for one hour before reading the next temperature value. The LM35 Precision Temperature sensor is used to read the ambient Temperature, the Telit GM862-QUAD GSM/GPRS module is used to send the SMS Text Messages. The project uses MikroC Pro for PIC Compiler