+21622886281
ESP32 Project

Order a boat equipped with ESP32 by Wifi

Objective of this project:

In this project, we will order a small boat equipped with the ESP32 card via the Wifi network.

This is why we are going to create two micropython programs for the ESP32 board.

Components required

  • ESP32
  • relay
  • supply power module
  • pump of water of 5V
  • little boat
  • battery of 9V

Mounting:

For the servomotor:

  • we connect the yellow wire to pin 2 of the ESP32 board

  • connect the red wire to the 5V pin of the power supply module

  • connect the black wire to the GND pin of the ESP32 board.

For relay:

  • we connect pin (S) to pin 23 of the ESP32 board

  • we connect pin (+) to the 3.3V pin of the ESP32 board

  • we connect the pin (-) to the GND pin of the ESP32 board

  • Connect the COM pin to the (+) terminal of the water pump

  • Connect the NO pin to the 5V terminal of the power supply module

For the water pump: Connect the (-) terminal to the GND pin of the ESP32 board.

Micropython programs

Here are 3 micropython programs that allow you to connect the ESP32 card to the smartphone via the wifi network and to receive a message containing the command order of the boat.

boot.py:

main.py:

servo.py:




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top