arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.97k stars 4.77k forks source link

Sunix RGBWWCW doesn't work correct #2117

Closed ich777 closed 6 years ago

ich777 commented 6 years ago

Hello,

i've got the Sunix RGBWWCW Led Controller (looks similar to the AriLux AL-LC06 PWM LED) and flashed it sucessfull with your Firmware, configured it first as this led controller in the WebUI and executed the command "SetOption15 1" in the console, all colors except the warm white work correct (the warm white doesn't work and it mixes the colors of the RGB LED's to look white).

Then i tried to configure it as H801 PWM LED and all colors work but they a switched (warm white = blue & warm white; blue = green; red = warm white; green = blue).

Can i change this in some way?

Also i can give you the GPIOS for the colors: 5 = cold white 12 = green 13 = blue 14 = red 15 = warm white

Also i've attached pictures from the product itself and the PCB (it says ZJ-ESPM-5CH-B V1.3 on the back).

Edit: Forget to say that i am using it with Home-Assistant and followed the guide at https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant (MagicHome-Led Controller).

index 20180309_001010 20180309_001019

zewelor commented 6 years ago

I think that's the same as here: https://github.com/arendst/Sonoff-Tasmota/pull/1414 . It should work correctly when you choose arilux lc06 as board type.

ich777 commented 6 years ago

@zewelor Thanks for the quick reply, forget to say that i've allready tested all the Arilux devices and non of them worked correctly (oh, my first post was wrong, should be AriLux AL-LC06 not LC11, edited it). I've read somewhere that they have changed the GPIO layout in newer PCB versions.

Jason2866 commented 6 years ago

Use search in issue. You will find the solution

ich777 commented 6 years ago

@Jason2866 Thank you for the not helping answer... 👎 And what should i search for?

timota commented 6 years ago

Use generic module instead of defined and assign GPIO yourself. You can check GPIO in this file https://github.com/arendst/Sonoff-Tasmota/blob/development/sonoff/sonoff_template.h

As an example:

{ "Arilux LC01",
// (PwmFrequency 1111Hz) GPIO_KEY1, // GPIO00 Optional Button GPIO_USER, // GPIO01 Serial RXD and Optional sensor GPIO_LED2_INV, // GPIO02 RF receiver control GPIO_USER, // GPIO03 Serial TXD and Optional sensor GPIO_ARIRFRCV, // GPIO04 IR or RF receiver (optional) GPIO_PWM1, // GPIO05 RGB LED Red 0, 0, 0, 0, 0, 0, // Flash connection GPIO_PWM2, // GPIO12 RGB LED Green GPIO_PWM3, // GPIO13 RGB LED Blue GPIO_USER, // GPIO14 RGBW LED White (optional - set to PWM4 for Cold White or Warm White) 0, 0, 0 },

where your GPIOs are: GPIO_PWM1, // GPIO05 RGB LED Red GPIO_PWM2, // GPIO12 RGB LED Green GPIO_PWM3, // GPIO13 RGB LED Blue GPIO_USER, // GPIO14 RGBW LED White

in Generic module configuration choose GPIO pin and choose correspond PWM. You can find correct mapping Color <-> GPIO. Thats it.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.

ElwayDenmark commented 5 years ago

20180309_001010

how did you flash it? I have flashed a few devices with Tasmota - but this one, does not have GND. It has IO, RT, TX, -V, 3.3.... When I flash other devices, I have RT, TX, GND, 3.3v that I connect to my FTDI board for flashing. I cannot find info anywhere on how to hook up this for flashing.

Jason2866 commented 5 years ago

-V = GND

ElwayDenmark commented 5 years ago

-V = GND

ohh... I feel a bit stupid now. Will try - Thanks!

ElwayDenmark commented 5 years ago

-V = GND

ohh... I feel a bit stupid now. Will try - Thanks!

That did it - many thanks! Now running on Tasmota. Now I only have to figure out how to control the light. Getting there... :-)

ich777 commented 5 years ago

That did it - many thanks! Now running on Tasmota. Now I only have to figure out how to control the light. Getting there... :-)

@ElwayDenmark Have you managed to get all the channels working as intended? If yes, please share it.

ElwayDenmark commented 5 years ago

That did it - many thanks! Now running on Tasmota. Now I only have to figure out how to control the light. Getting there... :-)

@ElwayDenmark Have you managed to get all the channels working as intended? If yes, please share it.

I run it with only one color channel - warm white channel (WW). My led strip is also just a white-only one - and this was always my plan. It runs under the kitchen cabinets to light up/reflect on the floor - so I never wanted full color palette - just white.

When I got into the tasmota interface, I changed the type to Arilux 06. Now, I can toggle on/off and set brightness (via slider) in Tasmota. I played a bit with the GPIO settings in tasmota to get it working. I think I set GPIO 15 to "PVM4", but I have to re-check when I get home (at work now). I never managed to find any documentation (at least none that I could understand) on these GPIO mappings - so I just played with a bunch of combinations - and eventually found on that works.

I did not yet include it into Home Assistant, but will try later. I think there is a "Flux Led" plugin that should work with LED controllers that out-of-the-box come with MagicHome app (which mine did).

ich777 commented 5 years ago

@ElwayDenmark Thanks for the feedback, i've never got it to run the right way with tasmota so i've changed to "espruna" and everything worked perfectly OOB and integrated it into HomeAssistant, there is a well written documentation on the espruna github for integrating it into HomeAssistant.

kellertobias commented 5 years ago

With the new Generic Board type, where you can setup the GPIOs as you want, it works, when you set the colors to PWM1...PWM5

MrAlfabet commented 5 years ago

Did you just flash the sonoff.bin? I've tried flashing sonoff, sonoff basic, erasing then flashing, but I'm not seeing a sonoff SSID (also not after power cycle). Do I have a dud?

fremut commented 5 years ago

GPIO05 ... CW, GPIO15 ... WW, GPIO13 ... B, GPIO12 ... G, GPIO14 ... R, GPIO02 ... onboard green status LED

SilverFire commented 4 years ago

In order to use AriLux AL-LC06 in CW/WW mode set

GPIO05 > PWM1 GPIO15 > PWM2

Or use the following config:

{"NAME":"Arilux LC06 in WW/CW mode","GPIO":[17,0,0,0,0,37,0,0,0,0,0,38,0],"FLAG":0,"BASE":18}

markianwallace commented 4 years ago

In order to use AriLux AL-LC06 in CW/WW mode set

GPIO05 > PWM1 GPIO15 > PWM2

Or use the following config:

In order to use AriLux AL-LC06 in CW/WW mode set

GPIO05 > PWM1 GPIO15 > PWM2

Or use the following config:

{"NAME":"Arilux LC06 in WW/CW mode","GPIO":[17,0,0,0,0,37,0,0,0,0,0,38,0],"FLAG":0,"BASE":18}

Just to confirm, this is what fixed it for me.