https://github.com/anidipta/esp32-sheet-control
ESP32 & Google Sheets Integration
https://github.com/anidipta/esp32-sheet-control
arduino cpp esp32 google-sheets
Last synced: about 2 months ago
JSON representation
ESP32 & Google Sheets Integration
- Host: GitHub
- URL: https://github.com/anidipta/esp32-sheet-control
- Owner: Anidipta
- License: apache-2.0
- Created: 2024-09-06T16:17:02.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-01T15:37:11.000Z (4 months ago)
- Last Synced: 2025-01-09T11:39:08.059Z (4 months ago)
- Topics: arduino, cpp, esp32, google-sheets
- Language: C++
- Homepage:
- Size: 27.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP32 & Google Sheets Integration Project 📡💡
## Overview 🌐
The project connects an **ESP32/ESP8266** microcontroller to a **Google Sheet** via Wi-Fi. It retrieves control values from the sheet to toggle an LED on or off, making it a simple IoT solution for remote control.
## Components 🛠️
- **ESP32/ESP8266**: Controls an LED based on data from the Google Sheet.
- **Google Sheets**: Stores control values.
- **Google Apps Script**: Handles HTTP requests to read/write data from/to the Google Sheet.
- **LED**: Optional, controlled based on Google Sheet values.## Methodology 🔧
1. **ESP32/ESP8266** connects to Wi-Fi and sends a GET request to a Google Apps Script URL.
2. **Google Apps Script** retrieves data from the Google Sheet and returns it to the ESP32.
3. Based on the received value (e.g., `1` for LED on, `0` for LED off), the **ESP32** toggles the LED.## Workflow 🔄
1. **ESP32** sends a GET request.
2. **Google Apps Script** fetches data from Google Sheets.
3. **ESP32** receives data and controls the LED accordingly.
4. The loop continues with periodic checks.## Flowchat (Pipeline)

## Impact & Applications 🌍
- **Remote Control**: Control devices like lights, fans, etc., via Google Sheets.
- **IoT Solutions**: Perfect for home automation and simple data logging.
- **Educational**: Great for learning IoT and cloud integration.## Setup Instructions 📝
1. **Hardware**: Connect an LED to the ESP32/ESP8266.
2. **Google Sheets**: Set up a sheet and create a Google Apps Script to handle requests.
3. **Upload Code**: Replace Wi-Fi credentials and Script ID in the ESP32 code and upload it.
4. **Test**: Change values in Google Sheets and observe the LED response.