EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies /                   In that

                  In that

|

Projects › Projects › ARM, LPC2148 MICROCONTROLLER ›                   In that

June 26, 2014 at 4:22 pm #11858
varuni
Participant

                  In that same code, i am not getting understood ,what is the preset temperature value,over which if it goes ,the gsm needs to send the message.

                  lm35 is used whose range is -55deg to 150deg  and is linear with temp in degree celsius..its sensitivity is .01v/deg

 

 

int main (void) 
{
.
.
.
while(1)
{
x=process_adc();//Read ADC value and display it on first line of LCD
wait(30);
if(x>300)
{
string=”AT+CMGS=”;
while(*string != ‘’)
{
while(!(U1LSR & 0x20));
U1THR=*string;
string++; 
wait(3);
}
.
.
.
 and so..
 
so does this “if(x>300)” indicates the threshold value as  300deg?  as  the “process_adc()” gives us the adc value  ??but lm35 can measure upto 150deg. so can i just  change it to the temp within its range? 
 
 
 

RSS Recent Posts

  • Smart Buoy project May 15, 2026
  • Need Guidance to reduce noise in 3-stage Transimpedance amplifier May 15, 2026
  • Wall Radiator Heating: Efficiency and Placement Questions May 15, 2026
  • Parasitic Draw Question May 15, 2026
  • Phone Charger 5v to 12v May 14, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise