- β Understanding the ESP8266 D1 Large pinout
- β Differences between D1 Mini and D1 Large
- β Wiring relays to the D1 Large
- β Connecting DHT22, DS18B20, and NTC sensors
- β Power supply considerations
ESP8266 D1 Large Overview
The ESP8266 D1 Large is the bigger sibling of the D1 Mini. It uses the same ESP8266 chip but offers more GPIO pins broken out, making it ideal for complex projects that need many connections.
| Feature | D1 Mini | D1 Large |
|---|---|---|
| Size | 34mm x 25mm | 55mm x 55mm |
| GPIO Pins | 16 | 16 (same chip) |
| Power Pins | Limited | More 5V/3.3V/GND |
| Breadboard Friendly | Yes | Very (spaced pins) |
| Best For | Compact projects | Complex wiring, prototyping |
Pinout Diagram
ESP8266 D1 Large Pinout
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β βββββ β
β βUSBβ β
β βββββ β
β β
β D0 βββββ βββββ D8 βββββ A0 β
β D1 βββββ€ βββββ D7 βββββ 3.3V β
β D2 βββββ€ βββββ D6 βββββ GND β
β D3 βββββ€ βββββ D5 βββββ RST β
β D4 βββββ βββββ D4 βββββ TX β
β βββ΄ββββ RX β
β D5 βββββ βββββ 5V β β
β D6 βββββ€ βββββ GND β β
β D7 βββββ€ βββββ 3.3V β β
β D8 βββββ βββββ RST β β
β 3V3 GND RST TX RX β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Pin to GPIO Mapping (Same as D1 Mini)
| Board Pin | GPIO | OceanRemote Use | Notes |
|---|---|---|---|
| D0 | GPIO16 | Not used | Wake from deep sleep |
| D1 | GPIO5 | Relay 1 | β Safe |
| D2 | GPIO4 | Relay 2 + Sensor | β Safe |
| D3 | GPIO0 | Relay 3 | β οΈ Must be HIGH at boot |
| D4 | GPIO2 | Relay 4 / LED | β οΈ Must be HIGH at boot |
| D5 | GPIO14 | Relay 5 | β Safe |
| D6 | GPIO12 | Not used | β Safe for expansion |
| D7 | GPIO13 | Not used | β Safe for expansion |
| D8 | GPIO15 | Not used | β οΈ Must be LOW at boot |
| A0 | ADC | NTC Thermistor | Analog input 0-3.3V |
- GPIO0 (D3) - Must be HIGH at boot. Don't connect to GND.
- GPIO2 (D4) - Must be HIGH at boot. Built-in LED is active LOW.
- GPIO15 (D8) - Must be LOW at boot. Use with pull-down resistor.
Wiring Relays to D1 Large
OceanRemote uses 5 relays by default. The D1 Large has the same GPIO assignments as the D1 Mini:
| Relay | D1 Large Pin | GPIO |
|---|---|---|
| Relay 1 | D1 | GPIO5 |
| Relay 2 | D2 | GPIO4 |
| Relay 3 | D3 | GPIO0 |
| Relay 4 | D4 | GPIO2 |
| Relay 5 | D5 | GPIO14 |
The D1 Large has more 5V and GND pins, making it easier to power multiple relay modules without using a breadboard.
Wiring Sensors
DHT22 Temperature & Humidity Sensor
| DHT22 Pin | Connect to D1 Large |
|---|---|
| VCC | 3.3V or 5V |
| DATA | D2 (GPIO4) |
| GND | GND |
DS18B20 Digital Temperature Sensor
| DS18B20 Pin | Connect to D1 Large |
|---|---|
| VDD | 3.3V |
| DATA | D2 (GPIO4) + 4.7kΞ© pull-up to 3.3V |
| GND | GND |
NTC 10kΞ© Thermistor (Analog)
NTC Thermistor Voltage Divider:
3.3V
β
βΌ
βββββ
βNTCβ β 10kΞ© NTC (resistance changes with temperature)
βββββ
β
ββββββββΊ A0 (ADC) β Voltage measured here
β
βββββ
β10kβ β Fixed 10kΞ© resistor (R_series)
βΞ© β
βββββ
β
GND
A 4.7kΞ© resistor must be connected between DATA (D2) and 3.3V. Without it, readings will fail.
Complete Wiring Diagram (5 Relays + DHT22)
COMPLETE D1 LARGE WIRING
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ββββββββββββ βββββββββββββββββββββββββββββββ β
β β D1 Large β β 5-Channel Relay Module β β
β ββββββββββββ€ βββββββββββββββββββββββββββββββ€ β
β β USB β β IN1 β D1 β GPIO5 β β
β β 5V βββββββ€ IN2 β D2 β GPIO4 β β
β β GND βββββββ€ IN3 β D3 β GPIO0 β β
β β 3.3V βββββ β IN4 β D4 β GPIO2 β β
β β D1 βββββ€ β IN5 β D5 β GPIO14 β β
β β D2 βββββ€ β VCC β 5V β β β
β β D3 βββββ€ β GND β GNDβ β β
β β D4 βββββ βββββββββββββββββββββββββββββββ β
β β D5 βββββββ β
β β A0 β β βββββββββββββββββββββββ β
β ββββββββββββ β β DHT22 Sensor β β
β β βββββββββββββββββββββββ€ β
β ββββββ€ DATA β D2 β β
β β VCC β 3.3V β β
β β GND β GND β β
β βββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
D1 Large Advantages for Complex Projects
- More Power Pins: Multiple 5V, 3.3V, and GND pins - no need for breadboard power rails.
- Spaced Layout: Pins are spaced for easy jumper wire access.
- Sturdy Mounting: Has mounting holes for secure installation.
- Reset Button: Easy access to reset the board.
- Better Labeling: All pins are clearly marked on the board.
Choose the D1 Large for projects with many sensors (3+), multiple relay modules, or when you're prototyping and need easy access to pins. Choose D1 Mini for compact, permanent installations.
Power Supply Requirements
USB Power (Recommended for Testing)
- Use a quality USB cable (not charge-only)
- 5V, 1A minimum (2A recommended with multiple relays)
- Phone charger works well
External Power (For Permanent Installation)
- Connect 5-12V DC to the 5V pin (regulated power)
- Or use the VIN pin for unregulated 5-12V (board has voltage regulator)
- The D1 Large has a more robust voltage regulator than the D1 Mini
- Total current: ~200mA (D1 Large) + 70mA per active relay
Do NOT power relays from the D1 Large's 3.3V pin! Relays need 5V. Use the 5V pin or an external power supply.
Troubleshooting
Device Won't Boot
- Check D3 (GPIO0) and D4 (GPIO2) - ensure they aren't pulled LOW at boot
- Disconnect sensors and relays, test with bare board first
- Try a different USB cable
Relays Not Clicking
- Check relay VCC is connected to 5V (not 3.3V)
- Verify relay logic (Positive vs Negative) in dashboard settings
- Check that IN pins are properly connected to D1-D5
Sensor Not Reading
- DS18B20: Verify 4.7kΞ© pull-up resistor is installed
- DHT22: Check wiring, try swapping DATA pin
- NTC: Verify voltage divider circuit is correct
The D1 Large uses the exact same ESP8266 chip and GPIO assignments as the D1 Mini. Firmware generated for D1 Mini works identically on D1 Large. The only differences are physical layout and power pin availability.
Next Steps
Now that you understand the D1 Large wiring, continue with:
- Tutorial 12: ESP32 Pinout and Wiring Guide
- Tutorial 13: Raspberry Pi Pico W Pinout and Wiring
- Return to Tutorial 02: Generate and flash your firmware!
Your D1 Large is now properly wired. You can now generate firmware from the OceanRemote dashboard and flash your device!