Open spcqike opened 4 years ago
Do a Google search for "TYWE2S pinout". There are a bunch of little modules like you have, that are used in these lights, and they all have similar names.
https://docs.tuya.com/en/iot/device-development/module/wifi-module/wifie2smodule?id=K9605u79tgxug
You'll also find a lot of these modules by searching for the FCC page.
https://fccid.io/2ANDL-TYWE2S/Users-Manual/Users-Manual-3596121
Sometimes they keep the pinout restricted. I have a couple lights here with the TYWE2L chip, and they didn't have the manual available for the first year. That just expired a few days ago. Whoohoo!
For yours, viewing where there are 6 silver and 5 copper pins, the pins you're interested in are... 1 - 3.3V 3 - GND 5 - RX 7 - TX
There are just a few GPIO pins on these. It'll save you a lot of guessing. They are 4, 5, 12, 13, 14.
If this is like some I've played with, just start setting each of those to be PWM, and see what lights up.
If that doesn't work, you'll need to use your multimeter, and see what is connected to the GPIO pins with no resistance, and then check the specs on the chip they are attached to.
Good luck.
I managed to flash a couple of LOHAS GU10 bulbs with tuya-convert, and they have very similar internals based on your photos. In case it's useful, here is my esphome config for the GPIO:
output:
- platform: esp8266_pwm
id: output_red
pin: GPIO5
- platform: esp8266_pwm
id: output_green
pin: GPIO4
- platform: esp8266_pwm
id: output_blue
pin: GPIO13
- platform: esp8266_pwm
id: output_warm_white
pin: GPIO12
- platform: esp8266_pwm
id: output_cold_white
pin: GPIO1
thank you both, but i meant, that it's not possible to remove the blue module (TYWE2S) from the white PCB. it's soldered flat (reflow?) and i dare not solder it. i would need a hot air gun / hot air solder station and heat the whole module to ~ 300°C. i'm afraid that i damage something...
so, this post was more a "warning" to others, who might buy these modules :) as long as tuya convert doesn't work with the new firmware, it's not possible or at least really difficult to flash theses bulbs.
That's a shame - I also have a couple of LOHAS bulbs's which were unflashable OTA due to the new firmware, and I was going to look into flashing the TYWE2S - but as you say it appears like it would require additional equipment.
You should be able to solder onto the fingers sticking down from the module. The part with 6 silver and 5 gold parts. It may be necessary to scrape some paint. It may be necessary to drill through just the module's PCB (not the PCB holding the LEDs), but only on 1,3,5,7.
If you look up the other ICs on the opposite side, you can probably find the one responsible for handing the low voltage power over to it. Clip on those for 3v3 and GND with your TTL adapter. With that, you'd only need connect to pins 5, and 7 on the module.
You can accomplish all that with a regular soldering iron, TTL adapter, razor knife, and maybe a dremel.
Don't give up. You already voided the warranty. You may as well make it work. You're almost there.
[Edit] Found the voltage regulator. It's the 6 pin IC, marked 1F8JK. Google took me through some asian sites to identify it from there, but it seems to be MP2359DJ-LF. 3v3 on pin6, ground on pin2. Look around for more info on the chip before attaching to it, I could have the wrong one. It's also identified as MP2359DJ-LF-Z, but -Z is only to indicate that it was provided on a tape & reel.
Thanks for your suggestion, but I still need GPIO0 BC it must be hold LOW for flashing :) or at least to enter flash mode, mustn’t it?
We already know the design of the TYWE2S, so we know that the “silver” pins are 3V3, GND, TX and RX. If I manage to connect to TX and RX, it should be easy to get 3V3 and GND too. But what about GPIO0? :(
Somehow I can’t imaging that it’s used to control one of the PWMs. And I can’t find any information about the LED driver. Just that it uses a PWM from the esp. my guess is that 5 PWMs (one per color and one per white (warm and cold)) are used. And as we have 7 possible GPIOs on the lower side of the module, It would be to easy if GPIO0 would have been used to control one PWM ....
Maybe it’s best to wait till WiFi flash is possible again :)
Just a quick update:
A friend of mine managed to desolder the esp-Module from The LED PCB.
If anyone is interested, here are two pictures. As thought, GPIO0 isn’t used to control a pwm. So one must desolder the PCBs or the metal shield from the esp directly.
Thanks for a useful update - gives me some confidence that I could attempt this. Was it a particularly difficult task to de-solder, just a conventional soldering iron used?
Hey,
I've asked my friend. They've used a RD-500V rework machine. So nothing one has at home. but he said, it's possible to do similar things with an hot air rework station. it may need some training/testing, so nothing that you would like to test on your first bulb :) a conventional soldering iron is not sufficient.
Definitely not then! - thanks very much for enquiring - will wait until tuya-convert hopefully is able to flash bulbs with the newer firmware.
Hi thought I would ask this here if that is all good.
Any idea if these A19 Lohas light bulbs can be flashed over wifi or will they run into the same issue as the E14 bulbs?
https://www.amazon.com/LED-LOHAS-2700K-6000K-Daylight-Equivalent/dp/B07T7W7ZMW
Thanks
I just bought the A19 Lohas in the link above and I can't flash with Tuya convert either of course. Here are the internal pics:
I haven't started probing for voltages yet but I'm about to if no one else has done this yet.
I just bought the A19 Lohas in the link above and I can't flash with Tuya convert either of course. Here are the internal pics:
I haven't started probing for voltages yet but I'm about to if no one else has done this yet.
Darn... Thanks for the update
Hey @chrisphotonic did you probe for voltages with the Lohas A19. Do you think it will be possible to create a template for these? Thanks.
@chrisphotonic / @jdubz666 Any luck with manually flashing these? 3/4 worked with tuya convert but I have one I need to manually flash...
As thought, GPIO0 isn’t used to control a pwm. So one must desolder the PCBs or the metal shield from the esp directly.
Actually the cover pries off fairly easy. I just used a scribe on mine, though on another one I did have to use a small pair of needle nose to wiggle one side completely loose.
For the original Lohas Candelabra bulb question, I can confirm that with some moderate soldering ability you can flash the ESP chip without desoldering the TYWE2S module from the LED board. here's the instructions with some updated pics:
That's pretty much it. When you're done flashing desolder your fine wire strands and reassemble the light. For those that are curious, there is no need (nor should you really try) to reattach the TYWE2S module cover. It's just there to protect the components during manufacturing and distribution. Also I recommend a magnifying visor, glass, or scope to accomplish all of this... the pins and soldering tasks are pretty small, and you don't want to short or touch the wrong things while working on this. Visors go for as little $15 on Amazon, and they make this project a heck of a lot easier!
Hi, sorry to bump this year old issue I just have to ask, for anyone who did desolder the chip using hot air gun similar to led bulb posted by @spcqike
How difficult can it be without melting/damaging leds surrounding the chip?
FYI he didn't use a "hot air gun," but rather a professional level solder rework station. Industrial/commercial ones like he listed can easily cost thousands of dollars, and sometimes tens of thousands! Using a heat gun or entry level consumer rework set is pretty much guaranteed to damage the components, especially if you're inexperienced at it. Where this one is more difficult than say the Costco dimmer switches that also uses this module that some desolder, is that it has a few pads soldered down on the back of the board. You're just super likely to damage something while solder flowing it off AND then back on.
The method I listed above is doable by even novice electronic techs, and only requires a decent soldering iron, a magnifying glass/headset/scope, some fine wire, and a very steady hand. I've done nearly a dozen of these bulbs this way, and haven't lost one yet (though came close once while removing the ESP chip cover... broke a smd cap off, but was able to find/solder it back on). If you remove the board from the bulb housing (which you would have to do if you planned to desolder the entire TYWE2S module as you alluded to), then you only need to uncover the TX and RX points, as you can use the voltage regulator IC pin 6 (3.3v) and the white negative power lead (ground) as listed above.
Obviously feel free to wait for someone else to chime in here if you'd like, but unless you have the equipment and skills to do this professionally, then my professional opinion is you're going to absolutely damage the components.
Hot air rework stations aren't expensive. Please don't try to talk with authority about topics you know nothing about.
It is perfectly practical for him to desolder and resolder any component shown in the pictures. I can. It only cost me about $137, and I use it all the time.
This is the hot air rework station. It was only $90 USD. I could change every single smd component in the light with no problems. There are a bunch of these, sold under different brand names. They are all the same thing, from the same factory. Don't try to compare reviews between them, one that looks the same isn't any better or worse than another. It's just the randomness of who reviewed on which. Buy the cheapest one you can find.
https://www.amazon.com/gp/product/B07SCPZJYS
My only problem is when I start working with the really small components, like the resistors around the ESP8285 chip in the photos. So I use this microscope. It cost $47 USD. The same thing about different brands selling the same one. They're all the same. Buy the cheapest one you can find.
https://www.amazon.com/gp/product/B081L4Y98G
There is a flaw with that microscope. For some reason, the board stays on after it's shut off, and won't let it turn back on until the battery dies. If you get it, pop the top off, and disconnect the battery. You don't need it if you use it with USB power. I either plug it into my computer, and use the Windows Camera App to view, or I pull it up on my phone or tablet. You can clearly see the smallest traces, so it's more than you'll need. It isn't like a biology microscope, so you won't see cells and microbes. :)
There are other small tools and consumables that you will need.
On the ones I noticed not as plumbing, they use a different flux. Their flux will make a mess of your electronics, and it will corrode pretty soon after you've done the work.
And, finally, don't bump unrelated posts to ask new questions. You could have asked this on reddit or somewhere, and gotten more useful answers. I just didn't want you thinking technowizard was right, and this is an impossible as a hobby. I bought some of that to fix a blown diode on an ESP8266 dev board. I bought the rest to expand my ability. Now I will fix most any electronics that I come across, and I have been designing new boards, and having them manufactured.
At some point, I will be making a replacement module for lights like this, to replace the Ali/Tuya module that we can't flash. I want to make those with a USB port on them too, but it might just get marked header pins. It'll depend on how small I can make it. I have designed some really small electronics, and that isn't beyond my ability, I just haven't gotten around to it.
Hot air rework stations aren't expensive. Please don't try to talk with authority about topics you know nothing about.
You're right, I've only been working with this stuff on multi-million dollar electronics for nearly 30 years... what do I know?
Seriously though, I didn't say "hot air rework stations" were expensive... I said the one that spcqike used (a Den-On RD-500V unit) was an industrial grade one, and those type are in fact quite expensive (at least for a regular consumer/hobbyist). Also I didn't say it was "impossible" to accomplish the removal of the module with one of the sub-$100 cheapy hot air stations... no I just determined that the fact the poster was even asking the question, let alone calling the RD-500V a "hot air gun," that he was likely very inexperienced with this type of work, and that he was "pretty much guaranteed" and "super likely" to melt/damage components.
@JWSmythe I'm glad to hear that people like yourself are getting proficient with more advance tools, and passing that knowledge on to others. That said, don't presume I know nothing about this topic just because I cautioned an inexperienced electronics person (who let's be honest is probably just wanting to up their smart home game, and nothing more) towards an alternative and novice friendlier method. As I said above I do this professionally for a living, and I made and posted the above directions for this device and others after reading/seeing numerous ESP based module boards and various components getting destroyed by cheap Amazon hot air setups, and overall lack of skill/experience by smart home hobbyists.
Thanks guys, for clearing that up I don’t have a hot air workstation yet I’ve been using hot air gun to desolder beken chips and replace with esp chip to flash tasmota. It’s been quite an easy task especially when the beken chip is far away from any fragile components that might get damaged from high temperature. Although one time i did messed up with led bulb when I accidentally melted plastic header pin.
Recently, i have 2-3 switches with the beken chip sitting right next to the button switch.
If i were to desolder this and not damage/melt the button switch next to it. What would be the best approach with hot air rework station?
hi all,
i recently bought a pair of smart light bulbs (LOHAS E14 from Amazon https://www.amazon.de/dp/B0796MX6DP/), that seems to be not compatible. flashing over wifi with tuya convert fails, like many others, because of new firmware/ssl?
after i opened one bulb i found out, that it's kind of tricky, if not impossible (for me), to solder and flash it. the TX/RX/GPIO0 pads are hidden on the lower side of the PCB.
if anyone has an idea, where to measure or solder, i can try. but i guess, it's not compatible. :(
best regards