Check the serial connection. Make sure that TX of Tuya board is connected to RX (PIN 2) of Arduino,
and RX of Tuya board is connected to TX (PIN3) of Arduino board.
Recommended RX,TX => use pin 2 and pin 3 of arduino!
Make sure it’s not connected to the TX,RX pin 1 and 2 of arduino!
See below the pin assignments for Arduino Mega as well.
* VMA354 Arduino UNO Arduino MEGA
* VCC 5V 5V
* GND GND GND
* TX RX (pin2) RX1 (pin19)
* RX TX (pin3) TX1 (pin18)
//selection of Serial port
#if defined(ARDUINO_AVR_UNO) //Arduino UNO board: use SoftwareSerial with pins you select, see https://www.arduino.cc/en/Reference/softwareSerial
SoftwareSerial mySWserial(2,3); //RX,TX (2 and 3 are recommended)
To set up the Wifi connection.
Use the TuyaSmart app.
For android devices: https://play.google.com/store/apps/details?id=com.tuya.smart&hl=nl
For apple devices: https://apps.apple.com/us/app/tuyasmart/id1034649547
Open the TuyaSmart app, and add a device.
Follow the wizard. Connect Your phone or tabled with Your Wireless router, and give in Your SSID and password. Now, push and hold the button on “Tuya board” (VMA354) for 5 seconds, till the RED LED flashes. Then confirm if the led blinks in the wizard. The app will now searching for Tuya boards (devices). If there’s found one, it will be added to Your Wifi network.