Replacing the Twye1s chip with D1 mini #23
Replies: 2 comments 2 replies
-
Not so fast.... decoding the data stream coming from the control module so I could see the temps updated in Real-time proved fruitless. Using 2 uarts on the Tywe1s didn't work and after hours (days) of staring at HEX codes in excel I ultimately couldn't find a way to decode the data stream. So, new line of attack. I'm going to tap the line of the exhaust thermocouple and read the voltage to determine the temp. Then I can use this D1 mini I replaced the TYWE1S with which gives me an A0 analog line input. There isn't one on the tywe1s. So it wasn't wasted effort afterall. That will only take 1 more wire from the control to the display. Continued here #30 |
Beta Was this translation helpful? Give feedback.
-
Hey Friend! I'm blowing the dust off my pellet stove project. Work and family time have definitely taken their rightful priority lately (new grandson arriving any day now!). I'm amazed to see the progress you have made over the last few months. I have been unsuccessful in getting my hands on a spare WiFi module. I've had my stove manufacturer send me two different display boards but neither came with a WiFi module. What would be the possibility of replacing the manufacturer's WiFi board completely with a D1 Mini or even an ESP32-based board? I know the pin alignment won't match but if all that is actually needed is the RX, TX, VCC, and GND, those could be connected with jumpers from the D1 Mini to the 8-pin sockets on the display board. Looking at the Tuya WiFi module, I don't notice any components other than those found on any standard ESP8266 dev board... Resistors, capacitors, a couple of transistors, a voltage regulator, an LED, and a button switch. If fact, the only real difference I see between the Tuya board and the D1 Mini is the USB to serial UART and the auto-programming mode logic. In your work on this have you noticed any display or MCU dependencies on the specific N12210 board? |
Beta Was this translation helpful? Give feedback.
-
I ran into a nasty snag at some point and the tuya chip would randomly reboot. The only way to see why is to hook up the serial port for monitoring. No matter what I tried I could not get that to work. You should see the same thing over serial as you do Wifi except for low level stuff and things the Wifi log misses. I was getting nothing. After looong discussions on Discord, we felt the chip was malfunctioning. So I decided to try removing it and replacing it with a D1 mini. I used a heat gun to melt the solder and carefully pried it off the pcb, working on small sections at a time.
Amazingly, it worked. The only connections required to the old chip traces were RX &TX, +5v and gnd.
The GPIOs don't do anything anyway so I had a feeling it would work.
After replacing it, the serial log worked fine and It turns out that the random rebooting error was "OOM". Out of memory. A little sleuth work led me to figuring out that I had the web server enabled which caused the random reboots. Disabling the web server solved it!
The Only way I could actually see this was unsoldering the Tuya chip and putting in the D1 mini. I couldn't get the USB log to display on the Tuya chip no matter what I tried.
This turned out to be a completely unnecessary step for this project, but I was at a total impasse and had to try something. I have several of these display units so this will just become my low level Dev system and I'll put a stock unit back in my Pellet Stove.
Beta Was this translation helpful? Give feedback.
All reactions