How to control ESP32 and ESP8266 GPIOs from anywhere?

How to control ESP32 and ESP8266 GPIOs from anywhere?

The goal of this project is to have your own domain name and hosting account that allows you control your ESP32 or ESP8266 GPIOs from anywhere in the world. Here’s a high level overview on how the projects works:

What do you need to know about the ESP8266 module?

The ESP8266 Module is just the part of the development board that controls WiFi. You will find this attached to ESP8266 development boards. It generally consists of the SoC, SoC housing and board and possibly an antenna. Not necessary at all for this tutorial but here is a list of different ESP8266 Modules if you are interested.

How can I control my ESP32 from anywhere?

Then, you can use the toggle switches to control the ESP32 or ESP8266 outputs from anywhere. There are many ways of controlling outputs from anywhere, and even though this a working solution there are other methods that provide a two way communication with your devices.

How to start WLED on ESP8266 [ step by step guide ]?

Next, connect your ESP8266 to your computer with a micro USB cable and open NodeMCU PyFlasher. Select the USB device for Serial port. Select the .bin we downloaded earlier for NodeMCU firmware. Press Flash NodeMCU and cross your fingers. If all goes well, you should see a success message below after 30-60 seconds.

What are the default I2C pins on the ESP32?

The ESP32 has two I2C channels and any pin can be set as SDA or SCL. When using the ESP32 with the Arduino IDE, the default I2C pins are: If you want to use other pins, when using the wire library, you just need to call:

What kind of peripherals can you use with ESP32?

ESP32 Peripherals. The ESP32 peripherals include: The ADC (analog to digital converter) and DAC (digital to analog converter) features are assigned to specific static pins. However, you can decide which pins are UART, I2C, SPI, PWM, etc – you just need to assign them in the code. This is possible due to the ESP32 chip’s multiplexing feature.

What’s the difference between gpio21 and gpio22?

You can attach the PWM signals to the GPIO pins to get output. It has dedicated pins available for two-wire I2C communication. One pin is used for data transfer and another pin is used for clock synchronization. GPIO21 is SDA pin. GPIO22 is SCL pin.