+21622886281
ESP32 Project

Order a boat equipped with ESP32 by Wifi

The ESP32 is a microcontroller board that has built-in WiFi capabilities. It is equipped with a dual-core processor, and can be programmed using the Arduino Integrated Development Environment (IDE) and the ESP-IDF (ESP32 IoT Development Framework).

The ESP32’s WiFi feature allows it to connect to wireless networks, such as home or office networks, and to other devices that are connected to the same network. This allows the ESP32 to communicate with other devices wirelessly, such as a computer, a smartphone, or another microcontroller board. This feature makes the ESP32 a popular choice for Internet of Things (IoT) projects, home automation, and other applications where wireless communication is needed.

The ESP32’s WiFi feature can be configured in different modes, such as Station mode, Access Point (AP) mode and both Station and AP mode (also known as P2P mode). Station mode allows the ESP32 to connect to a wireless network as a client, while AP mode allows the ESP32 to create its own wireless network that other devices can connect to. P2P mode allows the ESP32 to work as both a client and an access point, so it can connect to an existing network and create its own network at the same time.

The ESP32 also supports various security protocols to protect the communication, such as WPA2-PSK, WPA-PSK, and WEP.

Objective of this project:

A toy boat equipped with an ESP32 microcontroller board and WiFi capabilities can be a fun and educational project that allows you to control the boat wirelessly using a smartphone. The ESP32 microcontroller board is a low-cost and powerful device that can be programmed using the Arduino Integrated Development Environment (IDE) and the ESP-IDF (ESP32 IoT Development Framework).

The ESP32 board can be used to control the motors of the toy boat. It can also be programmed to communicate with other devices wirelessly, such as a remote control, a smartphone, or a computer, to control the boat’s movements or to receive status updates from the boat.

To build a toy boat equipped with an ESP32 board and WiFi capabilities, you will need to have a basic understanding of electronics and programming. You will also need to have access to the necessary tools and materials, such as a soldering iron, wires, and a power supply.

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

The ESP32 is a series of low-cost, low-power system on a chip (SoC) microcontrollers with integrated Wi-Fi and Bluetooth capabilities. It is developed by Espressif Systems and is based on the ESP32 microcontroller. The ESP32 is a popular choice for IoT projects, home automation, and other applications that require wireless connectivity. It is also commonly used in combination with other sensors and devices to build IoT systems.

pump of water of 5V

To pump water to a toy boat using a 5V power source, you would need a pump that is designed to run on that voltage and a way to connect the pump to the power source and the boat. You may also need additional components such as tubing or valves to direct the flow of water to the boat. It is important to make sure that the pump is rated for the type of water it will be used with (e.g. freshwater or saltwater) and that it is rated for the volume of water that needs to be pumped.

relay

A relay is an electronic switch that is used to control the operation of a water pump or other electrical devices. It is an electromechanical device that uses an electromagnetic coil to open or close a set of contacts, which in turn can control the power supplied to the water pump.

When the relay receives a control signal, such as a current flowing through the electromagnetic coil, it causes the contacts to change state, either opening or closing the circuit that controls the water pump. This allows the water pump to be turned on or off remotely, or based on certain conditions, such as a sensor reading or a timer.

supply power module 5V/3.3V

A power supply module that provides 5V/3.3V is a device that can output both 5V and 3.3V DC voltage from a single input source. These modules are commonly used in electronic projects where different components require different voltages to operate.

9V battery 

A 9V battery is a type of primary battery that provides a nominal voltage of 9 volts. It is commonly used in small electronic devices such as radios, smoke detectors, and portable guitar amplifiers.

toy boat

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