Home‎ > ‎IoT‎ > ‎

Tuya Based Devices

Welcome to my list of Tuya based battery powered devices.

When I gave up on designing my own lighting controller (for the moment that is) I also looked around at what I could commandeer for use as a temperature sensor.  As it turn out, most every "smart" temperature sensor uses a cheap temp / humidity combo sensor that is panned by the few people who have looked at its reliability.  So I started looking for products based on the ESP8266 (to take advantage of Tasmota/ESPEasy/ESPurna/etc), was battery operated and that I could add a genuine DS18B20 onto.  It turns out that there are several versions of door/window sensors that are battery operated and use the Tuya module that is much simpler to solder to than the QFN of the ESP8266.   These complete assemblies run as low as $7.00, with free shipping and two AAA batteries - impossible to compete with even if you start with a D1 Mini.

When I settle on a wiring system and firmware load, I will add that here also.

Here are the modules, which will change as time goes on.  Some have more extensive "documentation" than others, which merely means I've spent some quality time with these units.

NOTE:
  • When changing the firmware it is best to directly connect and use a serial uploader such as the bed of nails programmer I developed.  One person's attempts to program them over the air using Tuya-OTA are documented at the Tasmota Template website.  When I first tried programming these I thought the problem was Tuya-OTA and labeled it fragileware, but it is not its fault.

Door Sensor 1

Synopsis

Module Tuya TYWE3S

Power 2 x AAA batteries

Price $7.60 + tax, no shipping, Aliexpress


Product artwork for searching

         





Major Parts

Module Tuya TYWE3S

Power Supply SG Micro SGM6603-3.3 Boost Converter

Auxiliary Proc STC Micro STC15W204S


Board Image


Notes

R5 and C4 form an RC for the EN pin of the module

The AUX processor is powered directly from the battery

A divider is used for the boost converter’s enable

AUX pin 3 to R13 + Enable + R1 to GND

R9 to Battery or R12 to GND appear to provide a strapping option to the AUX processor

R2 appears to be a bleed down between the boost output and ground

Resistor values:

R1 - 104 - 100KΩ

R2 - 101 - 100Ω

R3 - 102 - 1KΩ

R4 - 102 - 1KΩ

R5 - 103 - 10KΩ

R7 - 100 - 10Ω

R8 - 100 - 10Ω

R9 - 106 - 10MΩ

R12 - N.P.

R13 - 103 - 10KΩ




Door Sensor 2

Synopsis

Module Tuya TYWE3S

Power 2 x AAA batteries

Price $8.00 + tax, no shipping, Aliexpress (in lots of 5)


Product artwork for searching

          




Major Parts

Module Tuya TYWE3S

Power Supply -

Auxiliary Proc -


Board Image


Notes

EN pin of the module has 10K to 3.3V


Door Sensor 3

Synposis

Module Tuya TYWE3S

Power 2 x AAA batteries

Price $7.00 + tax, no shipping, Aliexpress 


Product artwork for searching

          

Major Parts

Module Tuya TYWE3S

Power Supply -

Auxiliary Proc -

Board Image


Notes

EN pin of the module has 10K to 3.3V


Comments