Tag Archives: ESP32

ESP8266 (ajax) update part of web page without refreshing

In this tutorial we receive ADC data and send LED on off data to ESP8266 without refreshing webpage. You can do a lot of things with this. At the end we will see some advance applications of this. To make this possible we need to use javaScript Ajax.

Tools you need

only NodeMCU, Laptop and USB cable

What you will learn?

  1. ESP8266 Ajax web page update without refresh.
  2. Sending data to ESP NodeMCU without page refresh.
  3. Getting data from ESP8266 NodeMCU without page refresh and update it in web page dynamically. such as ADC values or temperature readings.

Continue reading ESP8266 (ajax) update part of web page without refreshing

ESP32 LED Blink Example

ESP32 is a new IoT device comes with Dual core CPU, WiFi, Bluetooth, In this tutorial we start with ESP32 Simple LED Blink Example. For software setup with arduino IDE read this.

ESP32 DevKit V1 comes with on board red LED which is connected to GPIO2 same as ESP8266 blink example.

Steps to Make LED Blink

Step 1: Connect Board to Laptop

ESP32 LED Blink Example

Step 2: ESP32 LED Blink Example Code

Upload this program to ESP32. Select boar ESP32 DEV Module from Tools >> Boards menu, then select appropriate com port. Upload the below program.

/*
 * https://circuits4you.com
 * ESP32 LED Blink Example
 * Board ESP23 DEVKIT V1
 * 
 * ON Board LED GPIO 2
 */

#define LED 2

void setup() {
  // Set pin mode
  pinMode(LED,OUTPUT);
}

void loop() {
  delay(500);
  digitalWrite(LED,HIGH);
  delay(500);
  digitalWrite(LED,LOW);
}

Step 3: Testing

After uploading program you will find on board RED LED will start Blinking.

 

Installing ESP32 Board in Arduino IDE on Ubuntu Linux

In this tutorial we are installing ESP32 board in Arduino IDE. Its not same as installing ESP8266. ESP32 is dual core CPU in arduino IDE it will not support all the functions but its enough to make many projects.

ESP32 is highly-integrated with in-built antenna switches, RF balun, power amplifier, low-noise receive amplifier, filters, and power management modules. ESP32 adds priceless functionality and versatility to your applications with minimal Printed Circuit Board (PCB) requirements. ESP32 can interface with other systems to provide Wi-Fi and Bluetooth functionality through its SPI / SDIO or I2C / UART interfaces. Continue reading Installing ESP32 Board in Arduino IDE on Ubuntu Linux