There should be a semi working build of espurna that supports the bulb at https://github.com/TomHodson/espurna I haven’t gotten the PWM white channel to work yet because I don’t really understand how espurna does PWM. I also bitbanged the protocol but it would probably be better to use FASTLED because it incorporates nice color correction code.
I actually have bought a very similar yet different light bulb on amazon. Also trying to get tasmota on it. I made a thread for it a while ago: Lyasi/Meamor Smart Bulb flashing?
First want to say thank you for the information people have already posted on here, it helped me out greatly in trying to hack this bulb to work in a way I wanted, so thanks!
I just created an account on here to share the work I had done on incorporating this bulb into a great project called diyHue, it still has some bugs, but is functioning. Check it out here:
Sorry if this has been answered elsewhere. I looked but couldn’t find it.
For flashing the TYWE3S module, do we need to ground GPIO0 ?
I’ve tried grounding it as well as just straight through, but couldn’t get upload the firmware.
Would appreciate any help getting me started off on this basic step.
It’s OK - I got it. Pushed a thin screwdriver through the little slots and then it unscrewed easily. Hopefully I can now add something to this discussion.
from machine import Pin, PWM
import utime
p5 = Pin(5) # define the pin
pwm5 = PWM(p5) # setup pwm on pin
pwm5.freq(500) # set pwm frequency
for i in range(1024): # ramp up from 0 to 1023
pwm5.duty(i) # set the duty cycle
utime.sleep(.05) # wait 50ms
The bulb comes up nicely
I am struggling with the rgb aspect. My bulb does not have any chips on the LED board. I tried the protocol for the SM16726, and it either lights the bulb full blue or turns it off. Testing then showed that clocking out a single 0 , or 1, will turn the blue off, or on, respectively.
Anyone got any ideas?
I now have a fully working bulb. The pcb was slightly damaged in my earlier attempts to dismantle the bulb. I have repaired that and now find the red, green and blue work from PCM, just like the white. I have uploaded my software, which is in Micropython.
Hi I was recently sent a rgbw wifi bulb with this module in, but it looks as tho the rgb leds are driven directly from the gpio pins of the module (through transistors). I have managed to find the white, red, and blue gpio pins but have not been able to find green, am running espeasy r120 on it and have been manually sending PWM commands to the listed gpio pins.
gpio4 - red
gpio5 - white
gpio14 - blue
??? - green
i forgot to do a continuity check on the pins leading to the led module before i reassembled and fitted the light in the socket and i cant be bothered getting it down again xD… if they are using either of the uart pins for green, how would i give the command for pwm to that pin?
Has someone any experience with this version?
There are two ICs I can’t identify.
One is labeled “SLM211A 1821” and one is labeled “AJ1818 25Q80CS1G U7S029”.
I tried getting it to work with FastLED and LED type SM16716 with CLK on GPIO4 and DAT on GPIO14.
But only red is working.
hey beantree. just wondering if you could do a quick write up on how you flashing the micropython, can i just follow a install guide for flashing micropython to esp8266?
thanks for your effort in this, im just trying to get my head around it all