Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP8266-Based Wi-Fi Temperature Sensor

View and Edit Project In Cirkit DesignerImage of ESP8266-Based Wi-Fi Temperature Sensor

Circuit Documentation

Summary of the Circuit

This circuit is designed to interface a temperature sensor with an ESP-8266 microcontroller. The temperature sensor's data line is connected to the microcontroller through a pull-up resistor, which is a common configuration for digital temperature sensors that use a one-wire interface. The sensor is powered by the 3.3V supply from the microcontroller, and its ground is connected to the microcontroller's ground. The ESP-8266 microcontroller is programmed to control an LED connected to one of its digital I/O pins, toggling the LED on and off with a one-second interval.

Component List

Resistor

Temperature Sensor

ESP-8266 Controller

Wiring Details

Resistor

Temperature Sensor

ESP-8266 Controller

Documented Code

The following code is written for the ESP-8266 microcontroller to control an LED connected to the D0 pin. The LED is turned on and off every second.

int led = D0;

void setup() {
  pinMode(led, OUTPUT);
  Serial.begin(115200);
}

void loop() {
  digitalWrite(led, HIGH);
  delay(1000); // Wait for 1000 millisecond(s)
  digitalWrite(led, LOW);
  delay(1000); // Wait for 1000 millisecond(s)
}

(Note: The actual connection of the LED to the D0 pin is not described in the provided net list and should be added to the circuit for the code to function as intended.)