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 / Topics / Logic or c code for maintaining the temperature

Logic or c code for maintaining the temperature

|

Miscellaneous › Others › Logic or c code for maintaining the temperature

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 7 months ago by umar farrok.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 18, 2013 at 7:14 pm #2418
    Mangkara
    Participant

    hi, i’m doing a mini project on maitaining the temperature for a particular time.

    for example my maximum tempearature (Tmax)=80 and minimum tempearature(Tmin)=30. When the temperature reaches Tmax, the boiler should switch OFF and when the temp drops to Tmin, the boiler should switch ON again. I want to maintain this cycle for 3 hours. after this 3 hours time the boiler should completely turn OFF. I would like to know the C-code for it. kindly help.

    May 19, 2013 at 5:45 pm #9790
    AJISH ALFRED
    Participant

    Hi Mangara,

    Please share more details like which microcontroller are you using and what are the components like temperature sensor. If possible please post a circuit. The first thing you should know about a embedded c code is that it is always written for a particular circuit or hardware including one particular microcontroller.

    So the circuit first and then think about the code.

    July 26, 2013 at 12:06 pm #10217
    umar farrok
    Participant

    if you are using lm 35 or lm 34 as temperature sensor that range should be -55 to 150 c for lm35 . you simply get the analog values of temp sensor and passed to adc single or multi channel and from that digital values you add that with 0x30 or 48 with your original temp value to get correct value  as well as resolution, reference calc is also one of the important parameter . 

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • excessive technology in multimeters March 9, 2026
  • energising a solenoid March 9, 2026
  • Pnp transistor query March 9, 2026
  • Project boxes March 8, 2026
  • MCS-51 Development Ecosystem March 8, 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