Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GU10 Lamp - Similar to AI-Thinker #1549

Closed
jkalousek opened this issue Feb 13, 2019 · 17 comments · Fixed by #1650
Closed

GU10 Lamp - Similar to AI-Thinker #1549

jkalousek opened this issue Feb 13, 2019 · 17 comments · Fixed by #1650

Comments

@jkalousek
Copy link

jkalousek commented Feb 13, 2019

I have got this GU10 led lamp from Ebay .

I assumed that it will be similar to AI-Thinker lamps as it uses same mobile app etc.
Board is in fact very similar, well half of it...

I tried to flash espurna-1.13.3-aithinker-ai-light.bin but no matter what I do in the web interface light is still at maximum brightness.

20190213_201155 - kopie

Chip at the top left is SLM211A (LED PWM driver) which is controlling white channel on GPIO4.
It is using GPIO0, GPIO2 & GPIO15 for RGB, I cannot say exactly which one is which but I'm going to figure it out.

I will add more info.

@jkalousek jkalousek added the enhancement New feature or request label Feb 13, 2019
@albyg
Copy link

albyg commented Feb 28, 2019

I have this same bulb from Tuya. I flashed the ESP with Tasmota 6.4.1
Then...

  1. Defined as Module Type "Generic"
  2. Define GPIO14 (R) as PWM1
  3. Define GPIO012 (G) as PWM2
  4. Define, GPIO13 (B) as PWM3
  5. Define GPIO04 (W) as PWM4
  6. SetOption15 1
  7. SetOption30 0
  8. SetOption19 1 <-- for HASS discovery

If using HASS, it will then operate as a light with fully adjustable colour and white light. You can use the web interface (IP address) to turn on/off/brightness in white or MQTT in HASS to operate.

@xoseperez
Copy link
Owner

@albyg, @jkalousek says it has a LED driver on board, it doesn't make sense that it can be directly controller using PWM from the microcontroller....

@albyg
Copy link

albyg commented Mar 18, 2019 via email

@Wferr
Copy link

Wferr commented Mar 22, 2019

I just got a light bulb that uses the same control board and am wondering what firmware to use on it? Thanks.
From here on Aliexpress: https://www.aliexpress.com/item/Smart-bulb-7W-E27-Wifi-Smart-LED-Light-Wireless-Bulb-Lamp-Works-with-Amazon-Alexa-Google/32911721514.html

PaNrBg1

@ColinShorts
Copy link
Contributor

There are no suitable devices currently defined in espurna that will work with this device, so someone will need to test and add it via pull request.

I'd suggest using something like the definitions for the IWOOLE_LED_TABLE_LAMP (RGBW over pwm) as a base to start on.

Ignoring my accidental change to Readme.md and poor git skills, take a look at PR #1198 of you're unsure what should be changed.

@albyg
Copy link

albyg commented Mar 22, 2019

Tasmota will support this board with set up mentioned earlier.

@ColinShorts
Copy link
Contributor

ColinShorts commented Mar 22, 2019

@albyg - based on the gpio pinout above I've built the attached firmware (unimaginatively called "generic gu10".

@Wferr - if your bulb is based on the exact same board then it might work for you too.

Please test if you can and confirm/deny if any changes need to be made, I could probably do a PR for you.

firmware.bin.zip

EDIT: you will need to unzip the file before flashing it.

@Wferr
Copy link

Wferr commented Mar 22, 2019

@ColinShorts Just flashed and working perfectly! RGB is correct and white channel works! Thanks!

Maybe its a good idea to start classifying firmware based off the controller board and not the name of the bulbs?

@ColinShorts
Copy link
Contributor

No worries, I'll submit a pull request sometime tomorrow. Do you have a manufacturer and device name for this bulb/controller?

@Wferr
Copy link

Wferr commented Mar 22, 2019

Don't really have a name for the bulb or controller, the aliexpress link where I bought it from is above, its all super generic.

@ColinShorts
Copy link
Contributor

I was starting to think a naming convention based on purpose and gpio assignment might make sense, but I'd bow to @xoseperez and @mcspr for guidance on that. Version 2.0 will likely resolve most of these device configuration issues, but I don't know how far off it is.

@TimelessNL
Copy link

@jkalousek may I ask how you removed the plastic top cover from this GU10 style bulb? Is it easily removable without much damage to the bulb?

@TimelessNL
Copy link

To answer my own question, there is no need to remove the cover. These can now be flashed with tuya-convert

@Wferr
Copy link

Wferr commented Dec 2, 2019

With the espurna 1.14.0 release I cant update my light that used the generic GU10 bulb without getting "There was an error trying to upload the new image, please try again (ERROR 8)." Which I think is due to a issue with flash size #433 but I don't know.

@mcspr
Copy link
Collaborator

mcspr commented Dec 3, 2019

@Wferr It is. Error codes are from the Core, device flash config is set to >1MB.
Same as #1959, atm only way is to re-flash .bin with correct values.

@Wferr
Copy link

Wferr commented Dec 3, 2019

@mcspr Is there no way to OTA a flash to correct? I have to reconnect the light to a serial adapter and flash?

@mcspr
Copy link
Collaborator

mcspr commented Dec 4, 2019

@Wferr Yes. Updater class won't allow OTA and there is no mechanism to avoid that check. Just make sure to either specify 1MB size or, if using esptool.py, allow it to autodetect that value by using --flash_size detect or skipping that switch altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants