Everyone knows that there is a minimal MicroPython port in the TuyaOpen SDK, but developers have long been unable to improve it due to various trivial issues. Recently, I participated in Tuya’s AI Creation Competition and found the SDK’s quite complex operation method. Even with TuyaOpenIDE, it is still difficult to escape the pain of environment configuration. Therefore, I improved this port. As of this post, machine already supports Pin / I2C / SoftI2C / SPI / SoftSPI / PWM / Timer / UART / RTC / AudioCodec. Meanwhile, network stack libraries such as network and socket are supported, and asyncio and _thread have also been tested. The overall completeness is quite high. Through mpy, we can completely discard Tuya’s complex and bulky SDK and obtain the purest and lightest development experience.
URL: gitee.com/wth_iw0/micropython_tuya
If you like it, please give it a star. Thank you for your support, and I will continue to improve the project.
Here is a brief explanation of how to flash it. The whole process takes 1 to 2 minutes, which is very lightweight and simple compared to traditional methods.
- Tools and Firmware
Go to https://github.com/tuya/tyutool/releases/
Find the latest release suitable for your system, download it, and extract or install it.
Go to https://gitee.com/wth_iw0/micropython_tuya/releases/
Find the latest firmware and download it.
-
Flashing
-
Open tyutool, find the serial port labeled
USB-Enhanced-SERIAL-A. This is the main serial port UART0. -
Select the firmware you just downloaded. Ignore the address; it will be filled in automatically.
-
Flash it.
- Use PyriteIDE, Thonny, mpremote, or other mpy serial tools or IDEs. You can download PyriteIDE from the release tags of
https://github.com/pyrite-project/pyrite-ide(This is an IDE developed by my friend, with good functionality and appearance).


