LC-WF-1-24

From LCWIKI
Jump to: navigation, search

Product name

DC24V power supply ESP8266 WIFI 24-way relay module ESP-12F development board secondary development


Overview

LC ESP8266/24-way 10A relay development board is equipped with ESP-12F WiFi module, all I/O ports are drawn out, and supports DC5V/12V/24V power supply. Provide Arduino development environment reference code, suitable for ESP8266 secondary development learning, smart home wireless control and other occasions.
LC-WF-1-24-1.png


Features

  • Onboard mature and stable ESP-12F WiFi module, large capacity 4M Byte Flash
  • The I/O port of the WiFi module and the UART program download port are all exported to facilitate secondary development
  • The power supply mode supports DC5V, 12V, 24V respectively
  • Onboard WiFi module RST reset button and a programmable button
  • ESP-12F supports the use of development tools such as Eclipse/Arduino IDE, and provides reference programs in the Arduino development environment
  • Onboard 24-way of 5V/10A relays, 12V/10A relays, 24V/10A relays, output switching signals, suitable for controlling loads with operating voltages within AC 250V/DC30V
  • Onboard power indicator light, relay indicator light and 1 module comes with LED
  • Onboard three shift registers 74HC595 control relay switch



Interface description

1. Board size: 165*90mm Weight: 254g
LC-WF-1-24-2-1.png

2. Interface Introduction
LC-WF-1-24-3-1.png

The 24-way relays are controlled by cascading three 74HC595, so the corresponding control program of 595 is needed to open and close the relay, and the reference program has been provided.
Programming port: GND, RX, TX, 3.3V of ESP8266 are respectively connected to GND, TX, RX, 3.3V of the external TTL serial port module. When downloading, IO0 needs to be connected to GND. After the download is completed, disconnect the connection between IO0 and GND
Relay output:
COM: Common
NO: Normally open, suspended before the relay pulls in, shorted with COM after the pull-in

No. Name Function Description No. Name Function Description
1 ADC A/D conversion result. Input voltage range 0-1V, value range 0-1024 9 IO0 GPIO0
2 EN Enable pin, default pull-up 10 IO2 GPIO2; UART1_TXD
3 IO16 GPIO16 11 IO15 GPIO15; MTDO; HSPI_CS; UART0_RTS
4 IO14 GPIO14; HSPI_CLK 12 TXD UART0_TXD; GPIO1
5 IO12 GPIO12; HSPI_MISO 13 RXD UART0_RXD; GPIO3
6 IO13 GPIO13; HSPI_MOSI; UART0_CTS 14 GND Power Ground
7 IO5 GPIO5 15 3.3V 3.3V power supply
8 IO4 GPIO4 16



Connection instructions

Arduino development environment setup:
ESP8266 supports Eclipse/Arduino IDE and other development tools. It is relatively simple to use Arduino. The following is how to build the Arduino development environment:
1. Install Arduino IDE 1.8.9 or the latest version;
2. Open the Arduino IDE, click File--Preferences in the menu bar, enter the preferences and click Add Network in the "Additional Development Board Manager URL"
http://arduino.esp8266.com/stable/package_esp8266com_index.json;
LC-WF-1-8-3.png

3. Click Tools--Development Board--Development Board Manager in the menu bar, and then search for "ESP8266" to install Arduino's support package for ESP8266 2.5.2 or the latest version;
LC-WF-1-8-4.png
Note: Since the download URL is from abroad, the access speed is relatively slow, and there may be download errors. When the network is good, try a few more times.


Program download:
1. Use jumper caps to connect IO0 and GND pins, prepare a TTL serial port module (for example: FT232) and plug it into the computer USB; GND, RX, TX, 3.3V are respectively connected to GND, TX, RX, 3.3V of the external TTL serial port module V;
2. Click Tools--Development Board in the menu bar, and select the development board as ESPino (ESP-12 module);
3. Open the program to be downloaded, click Tools--Port in the menu bar and select the correct port number;
4. After clicking "Upload", the program will be automatically compiled and downloaded to the development board;
LC-WF-1-8-5.png
5. Finally, disconnect the connection between IO0 and GND, power on the development board again or press the reset button to run the program.