English | 中文
examples
├─DS18x20_Temperature # External DS18B20 Example,The default is that there is no such sensor, which requires an external connection
├─HomeAssistant # Example of easy configuration for accessing Home Assistant+OLED SS1306
├─NimBLE_Server # uses BLE to control the relay
├─RTC_DS3231_External_Module # using DS3231 External RTC module
├─RTC_PCF8563_TimeSynchronization # using On board PCF8563 RTC
├─TFT_ESPI # using a 2.4 'inch resistive touch screen
├─UnitTestExample # Test programt
├─HT74HC595 #HT74HC595 test program
└─T-Relay6-S3-W5500_Original_Test #T-Replay6-S3 External W5500 Factory Test Procedure
- Install VisualStudioCode and Python
- Search for the
PlatformIO
plugin in theVisualStudioCode
extension and install it. - After the installation is complete, you need to restart
VisualStudioCode
- After restarting
VisualStudioCode
, selectFile
in the upper left corner ofVisualStudioCode
->Open Folder
-> select theLilyGo-T-Relay
directory - Click on the
platformio.ini
file, and in theplatformio
column, cancel the sample line that needs to be used, please make sure that only one line is valid - Click the (✔) symbol in the lower left corner to compile
- Connect the board to the computer USB
- Click (→) to upload firmware
- Click (plug symbol) to monitor serial output
- Install ArduinoIDE
- Copy all the folders in the
LilyGo-T-Relay/lib
directory to<C:\Users\UserName\Documents\Arduino\libraries>
. If there is nolibraries
directory, please create a new one. Please note that you are not copying thelib
directory, but copying the folders in the lib directory - Open ArduinoIDE -> Tools
- Board -> ESP32S3 Dev Module
- USB CDC On Boot -> Enable
- CPU Frequency -> 240MHz
- USB DFU On Boot -> Disable
- Flash Mode -> QIO 80MHz
- Flash Size -> 16MB(128Mb)
- USB Firmware MSC On Boot -> Disable
- PSRAM -> OPI PSRAM
- Partition Scheme -> 16M Flash(3MB APP/9.9MB FATFS)
- USB Mode -> Hardware CDC and JIAG
- Upload Mode -> UART0/Hardware CDC
- Upload Speed -> 921600
- ⚠
T-Relay
usesOctal SPI
Flash, so GPIO35 ~ GPIO37 are not available, please do not use these IOs in the software - ⚠
T-Relay
3v3* The maximum external current allowed is 500mA, please do not exceed this supply current - ⚠
T-Relay
5V Pin The maximum allowable current is 3000mA, ESP32S3 and other external components require nearly 800mA current, so please do not connect external components greater than 2000mA - ⚠
T-Relay
The maximum allowable current for electric shock on relay pins is 10A load current, please do not connect load devices exceeding 2500W - ⚠If an external relay load greater than 48V is connected, please power off the main board and connected equipment first to prevent electric shock.
- ⚠
T-Relay
is a serial-to-parallel design for74HC595
, allowing multipleT-Relay
sub-boards to be connected, but please note that due to the design of the power supply of the main board, it is currently recommended that cascaded devices not More than 3 relay sub-boards, cascading three sub-boards, the power supply of the main board will be hot, which is normal, please do not touch it with your hands to prevent burns. If you work for a long time, it is recommended to paste a heat sink on the inductor of the power supply to assist the main board to dissipate heat. - ⚠ The DS18B20 sensor interface is reserved by default, and there is no such sensor by default
- External reserved expansion screen interface Support TFT Module Link , Relay-S3 default design size is 2.4 inches
- The board uses USB as the JTAG upload port. When printing serial port information on USB_CDC_ON_BOOT configuration needs to be turned on.
If the port cannot be found when uploading the program or the USB has been used for other functions, the port does not appear.
Please enter the upload mode manually.
- Connect the board via the USB cable
- Press and hold the BOOT button , While still pressing the BOOT button, press RST
- Release the RST
- Release the BOOT button
- Upload sketch
Shift register | DATA | CLOCK | LATCH |
---|---|---|---|
GPIO | 7 | 5 | 6 |
RTC | SDA | SCL | IRQ |
---|---|---|---|
GPIO | 16 | 17 | 18 |
Relay Channel | CH1 | CH2 | CH3 | CH4 | CH5 | CH6 | CH7 | CH8 |
---|---|---|---|---|---|---|---|---|
GPIO | SR1 | SR2 | SR3 | SR4 | SR5 | SR6 | GREEN LED | RED LED |
T-Relay6-S3-W5500 Pin | ESP32S3 Pin |
---|---|
SCLK | IO9 |
MISO | IO11 |
MOSI | IO13 |
CS | IO3 |
RST | IO8 |
INT | IO12 |