Circuit Documentation
Summary
The circuit in question is designed to measure temperature using a DS18B20 1-Wire Temperature Sensor and display the readings on a 0.96" OLED display. The Wemos D1 Mini serves as the microcontroller unit (MCU) to interface between the sensor and the display. The circuit also includes a pull-up resistor for the 1-Wire data line of the temperature sensor. The components are powered by the 3.3V supply from the Wemos D1 Mini, and the ground connections are shared among all components.
Component List
DS18B20 1-Wire Temperature Sensor
- Pins: GND, DQ, VDD
- Description: A digital temperature sensor that communicates over a 1-Wire bus.
Wemos D1 Mini
- Pins: RST, A0, D0, D5, D6, D7, D8, 3V3, 5V, G, D4, D3, D2, D1, RX, TX
- Description: A compact WiFi-capable microcontroller board based on the ESP8266 chip.
0.96" OLED
- Pins: GND, VDD, SCK, SDA
- Description: A small display that uses the I2C protocol for communication.
Resistor
- Pins: pin1, pin2
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Properties: 4700 Ohms resistance
Wiring Details
DS18B20 1-Wire Temperature Sensor
- GND: Connected to the ground (G) of the Wemos D1 Mini and GND of the OLED display.
- DQ: Connected to pin D5 of the Wemos D1 Mini through a 4.7kΩ pull-up resistor.
- VDD: Connected to the 3.3V (3V3) supply of the Wemos D1 Mini and VDD of the OLED display.
Wemos D1 Mini
- G: Connected to the GND pins of the DS18B20 and OLED display.
- D5: Connected to the DQ pin of the DS18B20 through a 4.7kΩ pull-up resistor.
- 3V3: Connected to the VDD pins of the DS18B20 and OLED display.
- D2: Connected to the SDA pin of the OLED display.
- D1: Connected to the SCK pin of the OLED display.
0.96" OLED
- GND: Connected to the ground (G) of the Wemos D1 Mini.
- VDD: Connected to the 3.3V (3V3) supply of the Wemos D1 Mini.
- SCK: Connected to pin D1 of the Wemos D1 Mini.
- SDA: Connected to pin D2 of the Wemos D1 Mini.
Resistor
- pin1: Connected to the VDD pin of the DS18B20.
- pin2: Connected to the DQ pin of the DS18B20 and pin D5 of the Wemos D1 Mini.
Documented Code
No code has been provided for the microcontroller. The functionality of the circuit as described in the summary relies on the implementation of firmware that would handle the initialization and communication with the DS18B20 temperature sensor and the OLED display. The firmware would typically include libraries for the 1-Wire protocol and I2C communication, routines for reading temperature data from the sensor, and functions for displaying the data on the OLED.