+21622886281
ESP32 Project

Switch a lamp on and off via bluetooth with computer and ESP32

Objective of this project:

In this project we will create a system allowing to turn on and off a lamp (by bluetooth) using ESP32 and a computer.

This is why we are going to create two programs: one for the computer and the other for ESP32.

Components required

  • ESP32
  • computer
  • lamp
  • relay
  • plaque d’essai
  • des fils d’essai

Assembly:

Communication between computer, HC-06 and ESP32:

Micropython Program

Here is the program which allows you to connect the ESP32 to the HC-06 bluetooth module and to receive a message containing the order to turn the lamp on or off.

Python program executed in the computer:

Here is the program which allows the computer to connect and send data to the HC-06 bluetooth module.




0 commentaire


Leave a comment

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

Scroll to Top