The Tuya TYWE3S is a Wi-Fi module based on the ESP8266 chip, designed for Internet of Things (IoT) applications. It supports 2.4 GHz Wi-Fi and provides a reliable and cost-effective solution for wireless communication in smart home devices. The module is widely used in various applications, including smart lighting, home automation, and wireless sensor networks.
Parameter | Value |
---|---|
Wi-Fi Standard | IEEE 802.11 b/g/n |
Frequency Range | 2.4 GHz |
Operating Voltage | 3.0V - 3.6V |
Operating Current | 80 mA (average) |
Peak Current | 500 mA |
Flash Memory | 1 MB |
Operating Temperature | -40°C to 85°C |
Dimensions | 24mm x 16mm x 3mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V) |
2 | TXD | UART Transmit Data |
3 | RXD | UART Receive Data |
4 | GND | Ground |
5 | GPIO0 | General Purpose I/O |
6 | GPIO2 | General Purpose I/O |
7 | GPIO4 | General Purpose I/O |
8 | GPIO5 | General Purpose I/O |
9 | GPIO12 | General Purpose I/O |
10 | GPIO13 | General Purpose I/O |
11 | GPIO14 | General Purpose I/O |
12 | GPIO15 | General Purpose I/O |
13 | GPIO16 | General Purpose I/O |
14 | ADC | Analog to Digital Converter |
15 | EN | Chip Enable (Active High) |
16 | RST | Reset (Active Low) |
#include <SoftwareSerial.h>
// Define the pins for SoftwareSerial
SoftwareSerial esp8266(2, 3); // RX, TX
void setup() {
// Start the hardware serial communication
Serial.begin(9600);
// Start the software serial communication
esp8266.begin(9600);
// Send AT command to check communication
esp8266.println("AT");
}
void loop() {
// Check if data is available from the ESP8266
if (esp8266.available()) {
// Read the data and print it to the Serial Monitor
while (esp8266.available()) {
char c = esp8266.read();
Serial.write(c);
}
}
// Check if data is available from the Serial Monitor
if (Serial.available()) {
// Read the data and send it to the ESP8266
while (Serial.available()) {
char c = Serial.read();
esp8266.write(c);
}
}
}
By following this documentation, users can effectively integrate the Tuya TYWE3S Wi-Fi module into their IoT projects, ensuring reliable and efficient wireless communication.