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

  • Unknown, to me, electric motor fitting November 13, 2025
  • Can a small solar panel safely trickle-charge old NiMH AA batteries? November 13, 2025
  • KiCad custom symbol definition correct approach November 13, 2025
  • Measuring controller current output with a meter November 13, 2025
  • restarting this Christmas project November 12, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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