LC-WB-1-8

From LCWIKI
Jump to: navigation, search

Product name

DC5-30V power supply ESP32 WIFI Bluetooth BLE 8-way relay module ESP32-WROOM development board secondary development.


Overview

LC ESP32 8-way relay development board is equipped with the ESP32-WROOM-32E WiFi&BLE module, with all I/O ports and supports DC5-30V power supply. It is suitable for ESP32 secondary development and learning, smart home wireless control and other occasions.


Function

  • Onboard mature and stable ESP32-WROOM-32E module, large capacity 4M Byte Flash
  • The I/O port and UART program download port of the ESP32 module are all lead out to facilitate secondary development
  • Power supply voltage DC5V/7-30V
  • Onboard ESP32 module IO0 programmable button and reset button
  • ESP32 supports the use of Arduino IDE development tools and provides reference programs in the Arduino development environment
  • Onboard 8-way 5V relay outputs switching signal, suitable for controlling loads with working voltage within AC 250V/DC30V
  • Onboard 1 programmable LED and relay indicator


Introduction

1.Board size: 148*79.8mm Weight: 140g
2.Interface introduction


Programming port: GND, RX, TX, and 5V of the ESP32 are connected to the GND, TX, RX, and 5V of the external TTL serial port module respectively. IO0 needs to be connected to GND when downloading. After the download is completed, disconnect the connection between IO0 and GND.

Relay output:
NC: Normally closed end, short-circuited to COM before the relay closes, and left floating after closing.
COM: public end.
NO: Normally open end, the relay is left floating before closing, and short-circuited to COM after closing.
3.GPIO pinout port introduction
For details, please refer to "esp32-wroom-32e_esp32-wroom-32ue_datasheet_cn"

4.Arduino development environment setup
ESP32 supports development tools such as Eclipse/Arduino IDE. Using Arduino is relatively simple. The following is how to set up the Arduino development environment:
①Install Arduino IDE 1.8.9 or the latest version;
②Enter the espressif warehouse https://github.com/espressif/arduino-esp32, package and download all files;
LC-WB-1-1-2.png

③Find the installation path of the Arduino software, enter the hardware folder, and create a new blank folder named espressif;
LC-WB-1-1-3.png

④Then create a new blank folder named esp32 under the espressif folder;
LC-WB-1-1-4.png

⑤Unzip the downloaded compressed package and copy the contents to the esp32 folder;
LC-WB-1-1-5.png

⑥Enter the tools folder and click get.exe to run the program. (Provided that your computer has Python installed).
LC-WB-1-1-6.png
Restart the Arduino software, open the tools, development board, and select ESP Dev Module as the development board to indicate successful installation.


Program download
1.Use a jumper cap to connect the IO0 and GND pins, prepare a TTL serial port module (for example: FT232) and plug it into the computer USB. The connection method between the serial port module and the development board is as follows:

TTL Serial port module ESP32 Development board
GND GND
TX RX
RX TX
5V 5V

2.Click Tools--Development Board in the menu bar and select the development board as ESP32 Dev Module
3.Open the program you want to download, click Tools--Port on the menu bar and select the correct port number
4.After clicking "上传", the program will be automatically compiled and downloaded to the development board, as follows:
LC-WB-1-1-7.png

5.Finally, disconnect IO0 and GND, power on the development board again or press the reset button to run the program