STEP 1 / 6ESP + IOT

ESP8266 - Wireless Weather Station with Data Logging to Excel

In this project, we're going to connect two ESPs wirelessly and send data from three sensors to an Excel spreadsheet. This tutorial walks you through the process of installing a wireless…

Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to Excel
PROJECT#440
TRACKIoT
PARTS24
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

ESP8266 - Wireless Weather Station with Data Logging to Excel is a iot project. In this project, we're going to connect two ESPs wirelessly and send data from three sensors to an Excel spreadsheet. This tutorial walks you through the process of installing a wireless…

Source pages
1095-1104
Named parts
24
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply
  • Computer with a data-capable USB cable

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • Keep liquids, loose metal, and uninsulated wires away from the bench.
Ready to continue?
STEP 2 / 6 · Parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

NAMED PROJECT INVENTORY24 PART LINES
PARTTYPEQTYREADY
MRecommended: 2x ESP-12E Read More About the Best ESP8266MODULE2
What's this?Image, role, pros, cons, handling & specifications
NodeMCU ESP8266 development boardMODULE LEARNING VIEW

Recommended: 2x ESP-12E Read More About the Best ESP8266

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for Recommended: 2x ESP-12E Read More About the Best ESP8266; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PAlternative: 2x ESP-201 + 1x FTDI ProgrammerPART2
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Alternative: 2x ESP-201 + 1x FTDI Programmer

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Alternative: 2x ESP-201 + 1x FTDI Programmer; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Px DS18B20PART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

x DS18B20

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for x DS18B20; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Bx BreadboardBUILD1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelBUILD LEARNING VIEW

x Breadboard

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for x Breadboard; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Px PushbuttonPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

x Pushbutton

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for x Pushbutton; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Px 10k Ohm Resistor 1x 4700 Ohm One ten-thousand-ohm resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
10kΩ axial through-hole resistorPASSIVE LEARNING VIEW

x 10k Ohm Resistor 1x 4700 Ohm One ten-thousand-ohm resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for x 10k Ohm Resistor 1x 4700 Ohm One ten-thousand-ohm resistor; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
PPotentiometerPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Potentiometer

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Potentiometer; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
MDS18B20 - One Wire Digital Temperature SensorMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelMODULE LEARNING VIEW

DS18B20 - One Wire Digital Temperature Sensor

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It provides project input as an analogue, digital, resistive, frequency, or calibrated signal.

Buy / compare this part

Advantages

  • Adds real-world awareness
  • Can usually be tested independently
  • Often supports calibration

Limitations

  • Readings can drift
  • Placement affects results
  • Some sensors need warm-up or calibration

Handling

  • Protect the sensing surface
  • Observe supply voltage and polarity
  • Keep signal leads away from noisy power wiring

Specifications to verify

  • Use the exact model, value, package, and rating listed for DS18B20 - One Wire Digital Temperature Sensor; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
BWe will be measuring temperatures with a DS18B20 one-wire digitalBUILD1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelBUILD LEARNING VIEW

We will be measuring temperatures with a DS18B20 one-wire digital

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for We will be measuring temperatures with a DS18B20 one-wire digital; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PReading ADC ValuePART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Reading ADC Value

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Reading ADC Value; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Pdifferent terms used interchangeably: ADC (Analog-to-digital Converter)PART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

different terms used interchangeably: ADC (Analog-to-digital Converter)

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for different terms used interchangeably: ADC (Analog-to-digital Converter); similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PTOUT Pin6 A0 Analog Pin 0PART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

TOUT Pin6 A0 Analog Pin 0

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for TOUT Pin6 A0 Analog Pin 0; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PClient CircuitPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Client Circuit

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Client Circuit; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PFinal Server CircuitPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Final Server Circuit

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Final Server Circuit; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Ppulled down and then has to go back up)PART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

pulled down and then has to go back up)

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for pulled down and then has to go back up); similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PPutting Everything TogetherPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Putting Everything Together

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Putting Everything Together; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Pto establish serial communication with your computer. This is necessaryPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

to establish serial communication with your computer. This is necessary

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for to establish serial communication with your computer. This is necessary; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PDownloading and Installing Things GatewayPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Downloading and Installing Things Gateway

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Downloading and Installing Things Gateway; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PGet data from Excel filesPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Get data from Excel files

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Get data from Excel files; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PWrite Excel filesPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Write Excel files

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Write Excel files; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PWrite CSV log filesPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Write CSV log files

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Write CSV log files; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PSend emails (when certain conditions are met)PART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelPART LEARNING VIEW

Send emails (when certain conditions are met)

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Send emails (when certain conditions are met); similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
MPlease display the values and charts (charts are Excel independent)MODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelMODULE LEARNING VIEW

Please display the values and charts (charts are Excel independent)

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for Please display the values and charts (charts are Excel independent); similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
MBMP180 - barometric sensorMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for ESP8266 - Wireless Weather Station with Data Logging to ExcelMODULE LEARNING VIEW

BMP180 - barometric sensor

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It provides project input as an analogue, digital, resistive, frequency, or calibrated signal.

Buy / compare this part

Advantages

  • Adds real-world awareness
  • Can usually be tested independently
  • Often supports calibration

Limitations

  • Readings can drift
  • Placement affects results
  • Some sensors need warm-up or calibration

Handling

  • Protect the sensing surface
  • Observe supply voltage and polarity
  • Keep signal leads away from noisy power wiring

Specifications to verify

  • Use the exact model, value, package, and rating listed for BMP180 - barometric sensor; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

In this project, we're going to connect two ESPs wirelessly and send data from three sensors to an Excel spreadsheet. This tutorial walks you through the process of installing a wireless weather station in your own home, complete with data logging capabilities.

02

Parts Required

Project build note

Recommended: 2x ESP-12E Read More About the Best ESP8266 Wi-Fi Development Boards. Alternative: 2x ESP-201 + 1x FTDI Programmer 1x DS18B20 1x Breadboard 3x Pushbutton 3x 10k Ohm Resistor 1x 4700 Ohm One ten-thousand-ohm resistor Potentiometer

DS18B20 - One Wire Digital Temperature Sensor We will be measuring temperatures with a DS18B20 one-wire digital temperature sensor for the duration of this project. First, let's learn how to wire up our temperature sensor so that we can move on to the programming portion of this lesson. Because the DS18B20 can be powered by voltages ranging from 3.0V to 5.5V, you simply need to connect its GND pin to the ESP8266's GND pin, and its VDD pin needs to be connected to the ESP8266's 3.3V. After that, connect the DQ pin on the ESP8266 to the IO04 port. Pulling the DQ pin up to 3.3V requires the use of a pullup resistor with a value of 4K7 ohms. Reading ADC Value We are going to read an analog value using the ADC pin, and when people talk about the ADC pin on the ESP, you will frequently hear the following

different terms used interchangeably: ADC (Analog-to-digital Converter) TOUT Pin6 A0 Analog Pin 0 These are all different names for the same pin on the ESP8266, which will be discussed in more detail in the following section (read this article for more information on the ADC pin). When TOUT is connected to an external circuit, the input voltage range is 0 to 1.0 V, and the current precision of TOUT (Pin6) is 10 bits. Getting Access to the Analog Pin on the ESP8266, it is very simple to gain access to the ADC when using an ESP-201; all you need to do is connect a jumper wire to the pin that is highlighted in the figure below. Client Circuit If you want to build your own ESP client, follow this circuit, and if you are going to use an ESP-12, you can look at the schematics.

Simulating wind speed requires the use of the right switch, which is connected to IO05. The program does not currently provide a real-time wind speed reading; rather, it provides an average wind speed over the previous 5 seconds. Therefore, it makes no difference how quickly you press the right switch. If you press the right switch five times within the sampling period of five seconds... That translates into an average of once per second, which is 1.492 miles per hour (or 2.4 kilometers per hour). Since we are using the integer version of NodeMCU at the moment, you will get 1.492 miles per hour and 24 kilometers per hour. You will need to do some division in the spreadsheet by both 100 and 10, in that order. Final Server Circuit If you want to make your own ESP server, follow this circuit, and if you're going to use an ESP-12, you can look at the schematics.

We have designed a unique printed circuit board (PCB) for the ESP-201. This is what you need to know: yellow wire: can either connect GPIO 0 to GND to flash NodeMCU firmware or to VCC to save scripts to ESP. GPIO 15 is hard wired to GND Reset button and has a 10K Ohm pull-up resistor connected to the RST pin (in order to reset the board, the RST pin has to be pulled down and then has to go back up) Putting Everything Together Turn on both of your ESPs and check to see that the ESP server is still able to establish serial communication with your computer. This is necessary

because you will need to post the data to your Excel spreadsheet using this method. Downloading and Installing Things Gateway In order to write data on an Excel spreadsheet and display self-updating real- time charts, the team working on this project is going to use a piece of software developed by Roberto Valgolio called Things Gateway. Things Gateway is a program for personal computers that connects a microcontroller and gives it the ability to do the following things: Get data from Excel files Write Excel files Write CSV log files Send emails (when certain conditions are met) Please display the values and charts (charts are Excel independent) Things Additionally, Gateway can connect to a GPS and display the

03

following information on the screen

Project build note

Information on speed, heading, and altitude, as well as other navigational elements Tracks updated in real time on Google Maps Visit the website for Things Gateway, download the program, and then install it on your device. The Beta4 version of the software was used to test this project. Launching Your Things Gateway Application Getting the application for Things Gateway up and running is a very simple process. Open the application by navigating to Your Computer > Documents > ThingsGateway on your computer.

04

Then follow these instructions

Project build note

Navigate to the Configuration tab. Choose the Serial COM Port that is connected to your ESP8266 Server. Adjust the speed of the serial port to 9600.

05

Demonstration

Project build note

Launch the RealTime tab, then select From Serial to Excel from the drop- down menu.

Your data should begin to populate an Excel spreadsheet that should have suddenly appeared on your computer screen every few seconds.

Your information is being saved in the sample spreadsheet created in Excel that is located in that folder. Future Improvements Throughout the course of this guide, we built a fundamental system that makes use of two ESP8266 microcontrollers and the Things Gateway application to transmit data wirelessly to an Excel spreadsheet. You'll be able to experiment with additional features offered by Things Gateway, such as the following when you use this example: Graph that automatically updates itself in real time (not Excel dependent) Data logging in .csv files Sending of an automatic email when predetermined conditions are satisfied (such as a wind speed greater than a certain number of kilometers per hour, a temperature lower than a certain value, etc.)

warning of problems with the heating system or the freezer not being sufficiently cold etc.) Logging of data in stream.txt, which can be replayed at speeds of 0.1, 0.5, 1, 5, 10, 60, or 3600 times faster than the original. Additionally, GPS tracks can be streamed on Google Maps at the actual speed or at 0.1, 0.5, 5, 10, 60, or 3600 times the normal speed.

06

Further development could also include

Project build note

Other sensors like bmp180 barometric pressure sensor Photosensitive cells Detector of humidity Any additional digital or analog sensor that employs multiplexing It is important to note that Things Gateway was developed for use with Arduino boards; however, as long as you send the appropriate string via serial, you can use it with any board you like.

Ready to continue?
PROJECT ACHIEVED

You built ESP8266 - Wireless Weather Station with Data Logging to Excel.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

How to Make Two ESP8266 Talk project thumbnail featuring ESP8266, NodeMCU, NEWLY
NEXT IOT ADVENTURE

How to Make Two ESP8266 Talk

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects