Description: Measures the temperature using the DS18B20 temperature sensor, displays the reading on a 2x16 character LCD, sends the data to a serial terminal, and checks the temperature against predefined limits. The output is set high if the temperature is below the upper limit and low if it exceeds the lower limit. The system utilizes the PICAXE 28X1 microcontroller with variables defined as follows: bit0-31, b0-27, w0-13. The variables employed include: symbol lcdchar = b4, symbol lcdtmp = b5, symbol counter = b6, symbol position = b7, symbol tenths = b8, symbol ones = b9 for the 16-bit measured temperature; symbol temp12 = w5, symbol temp12lo = b10, symbol temp12hi = b11 for the lower temperature limit; symbol TL = w6, symbol TLlo = b12, symbol TLhi = b13 for the higher temperature limit; symbol TH = w7, symbol THlo = b14, symbol THhi = b15 for the output pin status; symbol LED = bit0 for the greeting message stored in EEPROM at address 0, ("GPtronics 2010 Thermometer"). The process begins by initializing the system, measuring the temperature, checking limits, sending data to RS-232, and displaying the temperature on the LCD in a continuous loop.
The circuit utilizes a DS18B20 temperature sensor connected to the PICAXE 28X1 microcontroller. The sensor communicates via a one-wire protocol, providing temperature readings that are processed by the microcontroller. The temperature is measured in a 16-bit format, allowing for precise readings. The microcontroller's variables are used to store the temperature values, limits, and control signals for the output.
The LCD display is initialized and controlled through specific pins on the microcontroller, allowing for real-time temperature readings to be shown. The system checks the measured temperature against defined upper (TH) and lower (TL) limits. If the temperature is below the upper limit, an output pin is set high, indicating a safe temperature range, while if the temperature exceeds the lower limit, the output pin is set low, signaling an alert condition.
The serial communication is established through the RS-232 interface, enabling the microcontroller to send temperature data to an external terminal. This feature provides an additional layer of monitoring, allowing the user to observe temperature trends over time.
The program structure includes initialization routines, a main loop for continuous operation, and subroutines for temperature measurement, limit checking, data sending, and display updating. The use of EEPROM for storing the greeting message ensures that the system retains this information even after power loss. Overall, this circuit provides a comprehensive solution for temperature monitoring and control, suitable for various applications, including environmental monitoring and industrial processes.Measures the temperature with DS18B20 temp. sensor and shows on the 2x16 char LCD display, also sends to the serial terminal, and checks against the limits and sets the output accordingly high if temp is lower then higher limit low if temp is higher then lower limit. picaxe28x1 variables bit0-31, b0-27, w0-13 variables used here: symbol lcdchar = b4 symbol lcdtmp = b5 symbol counter = b6 symbol position = b7 symbol tenths = b8 symbol ones = b9 ; 16-bit measured temperature symbol temp12 = w5 symbol temp12lo = b10 symbol temp12hi = b11 ; 16-bit lower temp.
limit symbol TL = w6 symbol TLlo = b12 symbol TLhi = b13 ; 16-bit higher temp. limit symbol TH = w7 symbol THlo = b14 symbol THhi = b15 ; status of the output pin symbol LED = bit0 ; greetings message eeprom 0, ("GPtronics 2010Thermometer") #rem here is the table for decimal part of the temp reading first measuring to determine initial status of the output relay gosub init gosub lcdinit ; initialization of the lcd display gosub hello ; greeting message - just for fun :) main2: ; loop gosub taketemp ; temperature measuring gosub checklimits ; checks measured temp. against limits and sets output accordingly gosub sendtemp ; sends data to rs-232 gosub showtemp ; converts numbers and shows them on lcd goto main2 ; loop again ; = init: counter = 0 TLhi = 22 ; lower temperature limit TLlo = 0 THhi = 24 ; higher temperature limit THlo = 0 if temp12 <= TH then : gosub ledon : else : gosub ledoff : endif return ; = lcdinit: pins = 0 pause 200 pins = 48 gosub pulsing gosub pulsing gosub pulsing pins = 32 gosub pulsing gosub pulsing pins = 128 gosub pulsing lcdchar = 14 gosub wrins lcdchar = 12 gosub wrins return pulsing: pulsout 3, 3 pause 10 return ; = wrchr: pins = lcdchar & 240 high 2 pulsout 3, 1 lcdtmp = lcdchar * 16 pins = lcdtmp & 240 high 2 pulsout 3, 1 return wrins: pins = lcdchar & 240 pulsout 3, 1 lcdtmp = lcdchar *16 pins = lcdtmp & 240 pulsout 3, 1 high 2 return ; = hello: lcdchar = 1 gosub wrins lcdchar = 12 gosub wrins for counter = 0 to 13 read counter, lcdchar gosub wrchr next counter lcdchar = 192 gosub wrins for counter = 14 to 24 read counter, lcdchar gosub wrchr next counter pause 1000 lcdchar = 1 gosub wrins return ; = taketemp: readtemp12 7, temp12 temp12 = temp12 * 16 temp12lo = temp12lo / 16 return ; = sendtemp: #rem sertxd("Temp= ", #temp12hi, " and ", #temp12lo, "/16 C", 13, 10) sertxd("TH= ", #THhi, " and ", #THlo, "/16 C", 13, 10) sertxd("TL= ", #TLhi, " and ", #TLlo, "/16 C", 13, 10) return #endrem sertxd("Temp= ", #temp12, 13, 10) sertxd("TH= ", #TH, 13, 10) sertxd("TL= ", #TL, 13, 10) return ; = showtemp: lcdchar = 2 gosub wrins lcdchar = temp12hi / 100 if lcdchar = 0 then leadzero lcdchar = lcdchar + 48 goto nonleadzero leadzero: lcdchar = lcdchar + 32 nonleadzero: tenths = temp12hi // 100 gosub wrchr ; write 100s lcdchar = tenths / 1
The circuit consists of a temperature sensor, electronic switches for temperature control, and a vocal language output system. During hot summer months, the central processing unit (CPU) of PCs frequently experiences overheating. The circuit, with VT1 positioned near the CPU...
The ROMs or PROMs must contain the correct code for converting data from the NE5037, which serves as the address for the ROMs or PROMs, into the appropriate segment driver codes. The displayed temperature can be converted to degrees Fahrenheit...
Two versions of a homemade digital thermometer utilizing the ICL7106 are presented. One version features an LED display, while the other employs an LCD display. Both variants utilize a silicon transistor as a temperature sensor, with temperature determined by the...
The digitization of temperature will be examined to reveal its response dynamics and changes in various detection fields. This method effectively illustrates trend curves. A solution involves sampling real-time temperature using a microcontroller, which transmits data to a PC for...
Measuring range: room temperature is -10 to 40 degrees Celsius; body temperature is 36 to 41 degrees Celsius; Resolution: room temperature is 0.5 degrees Celsius, body temperature is 0.05 degrees Celsius; error: room temperature <1 degree Celsius, body temperature <0.1 degrees Celsius. When switch S1 is in position 1, it displays the room temperature profile; position 2 displays the body temperature profile. Components V1, R1, R2, RP1, and RP2 form the temperature measurement circuit.
The temperature measurement circuit is designed to monitor and display two distinct temperature ranges: ambient room temperature and body temperature. The circuit operates with a measuring range for room temperature from -10 to 40 degrees Celsius and for body temperature from 36 to 41 degrees Celsius. The resolution of the circuit is fine-tuned to provide accurate readings, with a room temperature resolution of 0.5 degrees Celsius and a body temperature resolution of 0.05 degrees Celsius. The specified error margins indicate a maximum deviation of less than 1 degree Celsius for room temperature measurements and less than 0.1 degrees Celsius for body temperature measurements.
The circuit utilizes a switch, S1, which allows the user to select between the two temperature profiles. In position 1, the circuit outputs the room temperature, while in position 2, it outputs the body temperature. The operational components include a voltage source (V1), resistors (R1, R2), and potentiometers (RP1, RP2) that are integral to the measurement process. Resistors R1 and R2 are likely part of a voltage divider network that aids in scaling the temperature sensor output to a readable format. Potentiometers RP1 and RP2 can be used for calibration purposes, allowing fine adjustments to ensure that the readings are accurate within the specified error margins.
The temperature sensor, which is not explicitly mentioned but is assumed to be part of the circuit, converts temperature changes into an electrical signal that can be processed by the circuit. The output from the sensor is conditioned by the resistive components to produce a voltage level that corresponds directly to the measured temperature. This voltage is then displayed on an appropriate display unit, which could be an analog gauge or a digital readout, depending on the design of the circuit.
Overall, this temperature measurement circuit is a practical solution for monitoring both ambient and body temperatures with high accuracy and user-friendly operation through the selection switch.
The circuit includes the TC620 temperature control circuit, the temperature indicator circuit, a thyristor-controlled heating circuit, a vocal music buck rectifier circuit, and the AC circuit.
The TC620 temperature control circuit is designed to regulate temperature by monitoring the temperature sensor...
In this lesson, a digital temperature meter will be constructed using the DS18B20 temperature sensor. The connection between the temperature sensor and the microcontroller will utilize a single wire, which is a significant advantage of this sensor model. The measured...
An external EEPROM is beneficial for various applications as it provides significantly more storage capacity than the internal memory of the 18F4520 microcontroller. Additionally, EEPROM retains its data even when power is disconnected. This project involves interfacing with a Microchip...
The controller circuit is designed to reduce a fan's noise, power consumption, and wear, especially when operating in low, fluctuating ambient temperatures. A temperature sensor is mounted in the fan's airstream, allowing the circuit to adjust the fan speed as...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more