Stufin
Home Quick Cart Profile

Mini LCD Digital Thermometer with Probe

Buy Now on Stufin

Pin Configuration

  • Mini LCD Digital Thermometer with Probe
  • Pin Description:
  • The Mini LCD Digital Thermometer with Probe has a total of 7 pins, each with a specific function. Below is a detailed explanation of each pin:
  • 1. VCC (Power Supply):
  • Pin Type: Power Input
  • Description: This pin is used to provide power to the thermometer module. Typically, a 5V DC power supply is required.
  • Connection: Connect to a 5V power source, such as a battery or a USB port.
  • 2. GND (Ground):
  • Pin Type: Ground
  • Description: This pin is the ground reference point for the module and is used to complete the circuit.
  • Connection: Connect to the ground of the power source or any common ground point in the circuit.
  • 3. SCL (Clock):
  • Pin Type: I2C Clock
  • Description: This pin is used for I2C communication and provides the clock signal for data transmission.
  • Connection: Connect to the SCL pin of the microcontroller or other I2C devices.
  • 4. SDA (Data):
  • Pin Type: I2C Data
  • Description: This pin is used for I2C communication and provides the data signal for data transmission.
  • Connection: Connect to the SDA pin of the microcontroller or other I2C devices.
  • 5. PROBE+ (Probe Positive):
  • Pin Type: Thermocouple Input
  • Description: This pin is used to connect the positive leg of the thermocouple probe.
  • Connection: Connect to the positive leg of the thermocouple probe.
  • 6. PROBE- (Probe Negative):
  • Pin Type: Thermocouple Input
  • Description: This pin is used to connect the negative leg of the thermocouple probe.
  • Connection: Connect to the negative leg of the thermocouple probe.
  • 7. BACKLIGHT (Backlight Control):
  • Pin Type: Digital Output
  • Description: This pin is used to control the backlight of the LCD display. A high logic level (VCC) turns the backlight ON, while a low logic level (GND) turns it OFF.
  • Connection: Connect to a digital output pin of the microcontroller or a switching device to control the backlight.
  • Connection Structure:
  • To connect the Mini LCD Digital Thermometer with Probe to a microcontroller or other devices, follow this structure:
  • VCC to 5V Power Source
  • GND to Ground
  • SCL to Microcontroller SCL Pin (or other I2C devices)
  • SDA to Microcontroller SDA Pin (or other I2C devices)
  • PROBE+ to Positive Leg of Thermocouple Probe
  • PROBE- to Negative Leg of Thermocouple Probe
  • BACKLIGHT to Microcontroller Digital Output Pin (or switching device)
  • Note: Make sure to refer to the datasheet of the microcontroller or other devices being used to ensure correct pin connections and communication protocols.

Code Examples

Mini LCD Digital Thermometer with Probe
Overview
The Mini LCD Digital Thermometer with Probe is a compact and accurate temperature measurement component designed for various IoT applications. It features a high-precision temperature sensor, a built-in LCD display, and a detachable probe for flexible measurement options.
Technical Specifications
Accuracy: 0.5C
 Temperature range: -50C to 120C
 Resolution: 0.1C
 LCD display: 3-digit, 7-segment, 22mm x 12mm
 Probe length: 1m
 Power supply: 3V to 5V
 Current consumption: < 10mA
 Communication interface: Analog output (0-1V)
Code Examples
### Example 1: Basic Temperature Measurement with Arduino
This example demonstrates how to read temperature data from the Mini LCD Digital Thermometer with Probe using an Arduino board.
```c
const int tempPin = A0;  // Connect the thermometer's output to Arduino's analog input A0
void setup() {
  Serial.begin(9600);
}
void loop() {
  int sensorValue = analogRead(tempPin);
  float voltage = sensorValue  (5.0 / 1023.0);
  float temperature = (voltage - 0.5)  100.0;  // Convert voltage to temperature (C)
  
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" C");
  
  delay(1000);
}
```
### Example 2: IoT Weather Station with Raspberry Pi and Python
This example demonstrates how to create a simple weather station using the Mini LCD Digital Thermometer with Probe, a Raspberry Pi, and Python. We'll use the RPi.GPIO library to read the temperature data and display it on the LCD screen.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO library
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)  # Connect the thermometer's output to GPIO 18
while True:
    # Read the temperature data
    sensor_value = GPIO.input(18)
    voltage = sensor_value  (5.0 / 1023.0)
    temperature = (voltage - 0.5)  100.0  # Convert voltage to temperature (C)
# Print the temperature to the console
    print("Temperature: {:.1f} C".format(temperature))
# Update the LCD display (not shown in this example)
time.sleep(1)
```
### Example 3: Wireless Temperature Monitoring with ESP32 and MicroPython
This example demonstrates how to create a wireless temperature monitoring system using the Mini LCD Digital Thermometer with Probe, an ESP32 board, and MicroPython.
```python
import machine
import time
# Set up the thermometer's output pin
temp_pin = machine.ADC(machine.Pin(32))
while True:
    # Read the temperature data
    sensor_value = temp_pin.read_uv() / 1000
    temperature = (sensor_value - 0.5)  100.0  # Convert voltage to temperature (C)
# Print the temperature to the console
    print("Temperature: {:.1f} C".format(temperature))
# Send the temperature data wirelessly using WiFi or BLE (not shown in this example)
time.sleep(1)
```
These code examples demonstrate the basic usage of the Mini LCD Digital Thermometer with Probe in various IoT applications. You can modify and extend these examples to suit your specific project requirements.