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
You are here: Home / Replies / Alright. Lets take LM35;LM35

Alright. Lets take LM35;LM35

|

Microcontroller › 8051 › plz let me know what is the error in this simple program…….. of lcd interfacing › Alright. Lets take LM35;LM35

October 29, 2012 at 4:58 pm #8701
AJISH ALFRED
Participant

Alright.

 

Lets take LM35;

LM35 is a 3-pin device with a VCC, GND and OUT (output pin). The voltage at the OUT pin is always the temperatue equivalent.

For example if the temperature is 32 degree, the voltage at the OUT pin will be 0.32 volts. All you have to do is to convert this anlog value to its digital equivalent using an ADC, so that the controller can read it.

 

Now the ADC;

ADC (Analog to Digital Converter) can convert the voltage at its analog input pin to corresponging digital at its digital pins.

For example an ADC0804 has an AIN (analog input pin). If you apply a 2 volts at this pin then the eight digital out pins (D0 to D7) will represent the binary equivalent of 2*(256/5); provided that you’ve connected the REF (ADC reference pin) to 5 volt.

 

As there are 8 digital output pins, you can directly connect the ADC to any of the 8-pin digital port of the controller and read the entire port. If you store it to a charater type data, it will represent the value;

(TEMPERATURE/100)(256/5).

 

Just to give you an idea, suggest you to cross check the expressions with the actual datasheet.

RSS Recent Posts

  • Can I use an SPDT 5 wire Relay in reverse? August 9, 2022
  • Basic questions about MOSFETS, Gate Drivers and Diodes August 9, 2022
  • LTSpice DC-AC August 9, 2022
  • Circuit Problem August 8, 2022
  • Google translate suggest "device sheet" or "apparatus sheet" but that cannot be ? August 8, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

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