Wemos D1 Mini Based Environmental Monitoring System with OLED Display and Light Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates a variety of components to perform environmental sensing, analog-to-digital conversion, and display output. The core of the circuit is a Wemos D1 Mini microcontroller, which interfaces with a GravityI2CBME280 Environmental Sensor for temperature, humidity, and pressure measurements, and a 0.96" OLED display for data visualization. An external Gravity I2C ADS1115 16-Bit ADC Module is used to enhance analog input resolution, and a photocell (LDR) is included for light intensity sensing. User input is facilitated by a pushbutton, and the circuit includes resistors for voltage division and pull-up/down configurations.
Component List
Wemos D1 Mini: A compact microcontroller based on the ESP8266, featuring WiFi capabilities and multiple digital and analog pins for interfacing with various sensors and peripherals.
GravityI2CBME280 Environmental Sensor: An environmental sensor that measures temperature, humidity, and barometric pressure.
0.96" OLED Display: A small display that uses the I2C protocol for showing data such as sensor readings.
Gravity: I2C ADS1115 16-Bit ADC Module: An analog-to-digital converter module that provides higher precision for analog input signals.
Photocell (LDR): A light-dependent resistor that changes resistance based on the light intensity.
Resistor: A passive component used to create voltage dividers or to limit current. In this circuit, 10k Ohm resistors are used.
Pushbutton: A simple switch mechanism for controlling a device or process.
Wiring Details
Wemos D1 Mini
- RST: Connected to Pushbutton (Pin 2)
- 3V3: Powers the OLED display, BME280 sensor, and ADS1115 module
- G: Common ground for OLED display, BME280 sensor, ADS1115 module, and Pushbutton
- D2: I2C SDA line connected to OLED display, BME280 sensor, and ADS1115 module
- D1: I2C SCL line connected to OLED display, BME280 sensor, and ADS1115 module
GravityI2CBME280 Environmental Sensor
- VCC: Powered by Wemos D1 Mini (3V3)
- GND: Connected to common ground
- SCL: Connected to Wemos D1 Mini (D1)
- SDA: Connected to Wemos D1 Mini (D2)
0.96" OLED Display
- VDD: Powered by Wemos D1 Mini (3V3)
- GND: Connected to common ground
- SCK: Connected to Wemos D1 Mini (D1)
- SDA: Connected to Wemos D1 Mini (D2)
Gravity: I2C ADS1115 16-Bit ADC Module
- VCC: Powered by Wemos D1 Mini (3V3)
- GND: Connected to common ground
- SCL: Connected to Wemos D1 Mini (D1)
- SDA: Connected to Wemos D1 Mini (D2)
- A0_A: Connected to Resistor (10k Ohm)
- A2_VCC: Connected to Photocell (LDR) (pin 0)
- A2_A: Connected to Photocell (LDR) (pin 1) and Resistor (10k Ohm)
Photocell (LDR)
- pin 0: Connected to ADS1115 module (A2_VCC)
- pin 1: Connected to ADS1115 module (A2_A) and Resistor (10k Ohm)
Resistor (10k Ohm)
- pin1: Connected to ADS1115 module (A0_A) and ADS1115 module (GND)
- pin2: Connected to Photocell (LDR) (pin 1) and ADS1115 module (GND)
Pushbutton
- Pin 2: Connected to Wemos D1 Mini (RST)
- Pin 3: Connected to common ground
Documented Code
No code was provided for the microcontroller(s) in the circuit. Typically, the code would be documented here, including setup routines, main loop, function definitions, and any libraries used. The code would control the behavior of the microcontroller, read sensor data, process inputs, and manage outputs such as the display or other actuators.