AI-Thinker is famous in the maker world for their ESP8266 modules, but they’ve also recently launched a WiFi RGB light bulb that sells for about $12.5 and up on eBay and Aliexpress. Some people noticed, and bought samples online, including Xose Pérez (aka Tinkerman), ESPurna open-source firmware developer, who could confirm ESP8266 was used in the light bulb, did some investigations, and eventually added the light bulb into ESPurna, which means it can be managed using MQTT or a web interface.
AI Light looks very similar to Philips Hue, but comes with WiFi instead of Zigbee. AI Light “M1636” key features:
- RGBW LED E27 bulb with 16.7M colors
- Connectivity – 802.11 b/g/n WiFi
- Encryption – AES
- Voltage Range – 110-240V
- LED Power – 5 watts
- WiFi Power Consumption – ≤0.3W
- Temperature Range – -5~45degree
- Humidity – ≤80%
- Certifications – FCC, CE, ROHS
If you’re going to use the stock firmware, you can control the LED with Tuyasmart Android app. You’ll find the user’s manual and more photos on the FCC page for the light bulb. But there are already plenty of Wifi light bulbs on the market, and what makes this light bulb interesting is that it’s based on ESP8266, and you can have full control over it using open source firmware.
The bulb cap is allegedly very easy to pop out, as it’s not glued to the board.A close up on the board itself reveals it’s indeed powered by Espressif ESP8266EX WiSoC connected to a 1MB Winbond 25Q80BVSIG flash, and MY-Semi MY9291QD LED driver.
If you look from the bottom left to middle left of the inner circle, you’ll see 3V3, GND, RX, TX and IOO pads, which we can use after soldering some wires, and connect a USB to TTL board in order to flash the firmware. Note that IOO must be connected the GND to enter flash mode, you can remove the wire after flashing, in order to check the serial output during a normal boot.
After further investigation, Xose found out that there’s already some software implementation for MY9291 driver in Noduino OpenLight project, made by the developers who designed Noduino ESP8266/ ESP32 boards, and are likely the developers of AI Light. All needed source code can be found in Noduino-SDK released under a GPLv3 license, and includes a driver written in C language for MY9291 LED driver chip. Xose wrote a wrapper to make the driver work with Arduino ESP8266, and released the code on Github.
The code sample below shows how to set the LEDs to RED color at 100% duty cycle:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <my9291.h> #define MY9291_DI_PIN 13 #define MY9291_DCKI_PIN 15 my9291 _my9291 = my9291( MY9291_DI_PIN, MY9291_DCKI_PIN, MY9291_COMMAND_DEFAULT ); void setup() { _my9291.setColor((my9291_color_t) { 255, 0, 0, 0 }); _my9291.setState(true); } void loop() {} |
Ai-Thinker Ai Light / Noduino OpenLight have now been added to ESPurna 1.6.8 firmware, and you can turn the light on and off, select the color from the web interface, and/or control it via MQTT.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress
Might give these a try, have a dozen of the lifx ones but they are huge
Interesting antenna concept for aluminium PCBs… I wonder how well it works.
Let’s hope they/someone will ship these bulbs with ESPurna by default so no need to reflash a firmware prior to use.
I got mine from a different seller
https://www.aliexpress.com/item/E27-WiFi-RGB-Bulb-Light-Compatible-with-Alex-Echo-Remote-Control-by-app-Support-IOS-Android/32741634481.html?spm=2114.13010608.0.0.u2AX2K
The flash on this one is 25Q32ASSIC a 32M-bit (4mb) chip. I dare say you will find various variations of spec when you look around.
Speaking to the vendor, the Tuya app has an associated echo skill. I am waiting patiently for it to become available to Amazon UK customers so that I can try/review it. After that its flash time so that I can control it from OpenHab2
JM No problem with the Antenna in my home, (Though I don’t live in a mansion) which is a traditionally built (brick) 3 bed house.
Since today has so many posts on hidden back door found in China IOT devices, seems a article on good IOT security, might get interest?
🙂
Can anyone identify the power supply chip?
@Jon Smirl
Xose mentions MP1470 and MP2359 step-down converters.
@cnxsoft
Speaking of power, any idea about the topology and driver ic’s for ac conversion?
If anyone knows any good, ultra compact, low power (say 2w) ac/dc conversion modules I’d love to know. Hopefully something cheap and not a safety nightmare.
Excellent news! I will try to find them on the market. Maybe I can transform one in a MQTT PIR sensor (fake bulb), hard to spot in a house.
Those are not the right type of chips to build this. It has to be some type of hot ground AC supply, then the MY9291 does the current control thing for the LEDs. It is that 6-pin chip at top of photo, I just don’t know what chip that is.
The 3V3, GND, RX, TX and IOO pads are required to initially flash it. You power the PCB from an external isolated 3.3 supply during programming. Don’t use those pads while AC is flowing, you’ll likely destroy anything attached to them since this is a hot ground scheme.
Is there a flyback power supply under the PCB inside the base?
http://tinkerman.cat/wp-content/uploads/2017/02/mosaic3x.jpg
Then that six pin chip at top is probably some kind of regulator needed to make different voltages.
So what is a IAD JG
@Jon Smirl
https://fccid.io/document.php?id=3130460
@Jon Smirl
6 pin chip is MP1470 for 3.3v. Probably 12v led supply from ac/DC module.
@Jon Smirl
I have not removed the PCB but there is a 12V power supply inside the base as you can see in the FCC pictures. The 6 pin chip on the pic is an MP1470 (http://www.monolithicpower.com/desktopmodules/documentmanage/api/document/getdocument?id=418) step down to 3V3 to power the controller, flash memory and LED driver.
And you are right: never use the programming pads with the bulb connected to mains!
Butlerian jihad can’t come soon enough if you ask me.
There are several sonoff light bulb and socket adaptors on Aliexpress also a sonoff TH temperature sensor.
@GanjaBear
Well, these aren’t exactly “thinking machines”…
But still, we aren’t that far from it being relevant
@Theguyuk
By “sonoff light bulb” I guess you mean the Slampher, right? It’s not exactly a light bulb but an adaptor for an E27 socket. It basically converts a normal light bulb into a slightly-smarter light bulb. I reviewed it some months ago: http://tinkerman.cat/new-firmware-for-the-slampher/
Got this today, very quick delivery from Aliexpress and nicely packaged in a sturdy box.
The bulb looks far better than I expect, it’s just like the Philips Hues I have. Board is very good quality no shoddy manufacturing.
Will give the programming pins a go. Thanks for the tip!
As of two days ago, Theo has added support for this bulb into Sonoff-Tasmota, too: https://github.com/arendst/Sonoff-Tasmota/blob/development/sonoff/_releasenotes.ino
anyone considered making a jig for programming a light quickly? I want to make 100 bulbs.. but don’t want to solder each bulb individually..
It Looks like a good candidate for 3d printed part to pressure and hold pins in place.if usa I can try to make one and ship. Just need a picture and one dimension. Just to make sure no design changes..
@joe
You may not even need to open the lights with SonOTA: https://github.com/mirko/SonOTA
I planed to test it, but I have a few other things to do, so the earliest would be November.
@joe
@cnxsoft
Sorry, it’s not a sonoff device, so it will probably not work. I can’t think of any good solution with this lightbulb.
@Karl Johnson
exactly what i was thinking.. i’m not skilled to make that, but I would pay to have one made for me, and I’m sure others would be able to make use as well
@joe
Karl — i can ship you a bulb so you have can physically measure yourself and test too. want to reach out to me on linkedin or github — https://www.linkedin.com/in/joebarneson/
prahjister0 at the Google domain. Seems like a fun project.
@Karl Johnson
yeh — that’s probably easier… joe.barneson at the gmail domain
Has anyone heard of BR30 form factor lights with the ESP chip?
Article about Karl’s 3D printed jig to flash firmware to the light bulb without having to solder anything.
https://www.cnx-software.com/2017/09/18/designing-a-3d-printed-jig-to-flash-firmware-to-esp8266-based-light-bulbs/
@Justblair
Any news on controlling these with Alexa or Google Home then?
link to purchase not active
Thanks I’ve removed the links for now and asked the manufacturer if they were still available. But right now, if you’d like an ESP8266/ESP8285 based light bulb, I’d go with Sonoff or Yeelight, and maybe others. They can be adapted with Tasmota and/or ESPHome.
The manufacturer has confirmed the AI light has been discontinued for many years.