The software
The software for the temperature controller is compiled using Bascom51 version. The demo version of Bascom-8051 is available on MCS Electronics.
First, define the crystal speed and include the header file for microcontroller. Initialise all ports to ‘0.’ Timer-0 is used as an internal counter and increments by a second. This is used here for timing delays. Pin P3.0 of the microcontroller is configured for single-wire communication. Normally, DQ pin (single-wire bus) of DS1821 is high. Through DQ, the device gets its power to perform tasks.
When the microcontroller waits for the event through single-wire bus, it issues a reset command. Then DQ goes low for some time. This resets the device and it acknowledges a pulse and then follows the microcontroller. The communication on the single-wire bus is initiated by the microcontroller, and issued by low time slots on a normally-high DQ line, issued by the device.
Declare the variables as bits, bytes and words. Define the various port pins as per the connections. Set the maximum temperature to ‘40’ as default. Subroutines ‘dispset’ and ‘disptemp’ are used for display preset and real temperature, respectively. The source program is well commented for easy understanding.
Download PCB and component layout PDFs: click here
Download Source code: click here
HI
Can not download the source code . please check
Dear AjitKumar, the source code is present at the end of the article. Please click on the embed URL and the download will start automatically.
hii
Hi, How can I help you?
I get Error 404 File Not Found error when I attempt to download the source code file for this project. Where can I download it?
Thank you for your comment. We have updated the article with the correct source code.
Please share c code for the above article. I have downloaded the code but its not code its just explanation. please share c code for above project.
waiting for your reply
This project was designed using BASIC program and not in C language, so we do not have C code.
Please share the contact details of the designer on my email id([email protected]) so that I can contact him for further discussion regarding this project.