GETTING STARTED WITH ESP-NOW

#TUTORIAL GETTING STARTED WITH ESP-NOW - Robocraze

The protocol was developed by Espressif Systems. It is similar to the 2.4 GHz wireless connectivity deployed in wireless keyboards and mouses.

Why use ESP-Now?

  1. No need of a Wi-Fi network made by a router
  2. Low-power consumption protocol
  3. Prior pairing of devices required
  4. After initial pairing, the connection is incessant
  5. Peer-to-peer connection, without the constraint of handshake
  6. Supports a maximum of 20 peers

Program Flow: Master

Program Flow: Slave

 

Note: Master and slave have been defined to easily understand the setup. Based on the ESP-Now API, there is no concept of master and slave. Any device can act as a master or a slave.

Let us now see a simple application of ESP Now. Make the circuit connections as shown below. Download the code from the link(s) mentioned below.  Upload the code for master and slave devices to their respective ESPs. Here, the data from the digital IR sensor is being sent to the slave from the master. A global variable is being used to set the GPIO pin to high or low, based on the data received from the master. Subsequently, the LED and buzzer connected to the GPIO are set accordingly.

Fig. 1 - Master

Fig. 2 - Slave

 

Link for the Programs:

https://github.com/Robocraze/ESP-Now

 

The following link to ESP Now Programming Guide by Espressif will help you in understanding each of the functions included in the ESP-Now library:

https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/network/esp_now.html

 

DEMO

Grab your ESP 32 Development Board here

Grab your ESP 8266 Here

You may also like to read

  • What is a Bluetooth beacon?

    What is a Bluetooth beacon?

    - Robocraze -

    Discovering the power of Bluetooth beacons unveils a world of possibilities in the realm of connectivity. In our latest blog,...

    What is a Bluetooth beacon?

    - Robocraze -

    Discovering the power of Bluetooth beacons unveils a world of...

  • What is a t nut

    What is a t nut

    - Robocraze -

    Ever wondered what exactly a T-nut is and how it can revolutionize your projects? Our latest blog delves deep into...

    What is a t nut

    - Robocraze -

    Ever wondered what exactly a T-nut is and how it...

  • What is outdoor positioning system

    What is outdoor positioning system

    - Robocraze -

    Discover the magic behind Outdoor Positioning Systems (OPS) in our latest blog. Delve into the basics with an insightful Introduction,...

    What is outdoor positioning system

    - Robocraze -

    Discover the magic behind Outdoor Positioning Systems (OPS) in our...

  • What is data visualization in IoT

    What is data visualization in IoT

    - Robocraze -

    Dive into the dynamic realm of IoT with our latest blog! We kickstart with an insightful Introduction, delving into the...

    What is data visualization in IoT

    - Robocraze -

    Dive into the dynamic realm of IoT with our latest...

Frequently Asked Questions

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.

You may also like to read

  • What is a Bluetooth beacon?

    What is a Bluetooth beacon?

    - Robocraze -

    Discovering the power of Bluetooth beacons unveils a world of possibilities in the realm of connectivity. In our latest blog,...

    What is a Bluetooth beacon?

    - Robocraze -

    Discovering the power of Bluetooth beacons unveils a world of...

  • What is a t nut

    What is a t nut

    - Robocraze -

    Ever wondered what exactly a T-nut is and how it can revolutionize your projects? Our latest blog delves deep into...

    What is a t nut

    - Robocraze -

    Ever wondered what exactly a T-nut is and how it...

  • What is outdoor positioning system

    What is outdoor positioning system

    - Robocraze -

    Discover the magic behind Outdoor Positioning Systems (OPS) in our latest blog. Delve into the basics with an insightful Introduction,...

    What is outdoor positioning system

    - Robocraze -

    Discover the magic behind Outdoor Positioning Systems (OPS) in our...

  • What is data visualization in IoT

    What is data visualization in IoT

    - Robocraze -

    Dive into the dynamic realm of IoT with our latest blog! We kickstart with an insightful Introduction, delving into the...

    What is data visualization in IoT

    - Robocraze -

    Dive into the dynamic realm of IoT with our latest...