-
Notifications
You must be signed in to change notification settings - Fork 639
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
Add support for MagicHome RGBWW LED strip #1787
Conversation
This adds support for MagicHome 5 channel LED strip. It is using ESP8285 board, labelled as ESP-M4, has 5 powerful MOSFETs (M3006D, up to 80A! continuous/160A peak) at 12-24V. They are driven by smaller transistors. Red LED is connected to 3.3V power supply, and can't be controller. Green LED is connected to GPIO. Pin mappings: BTN IO0 R Q8 Q2 IO14 G Q6 Q3 IO12 B Q9 Q4 IO13 WW Q10 Q5 IO15 CW Q7 Q1 IO5 GREEN_LED IO2 Looks like the same board is used in another product which has support for RF remote, but mine doesn't, so I don't include RF config, if yours has it should be a simple copy/paste job to add it.
Some pictures and order link |
IO4 goes to R25, which is not populated on my board, and in the area of missing RF remote components, so I guess it received RF remote signal after processing by a decoder IC (probably U4). |
I also made a profile for this device because I couldn't find it in the hardware. Turns out it is listed in espurna as an Arilux AL-LC06. Perhaps the wiki page for that device should be updated to include the Magic Home device name as well. |
Huh, it does indeed. Only difference is in white channels: espurna/code/espurna/config/hardware.h Lines 1675 to 1696 in e445cf8
|
You sure that @user890104 configuration has the white channels correct? I have one of these devices that I've been using with my custom profile up until a week ago and when I flashed using the LC06 profile all the channels still work as expected. |
I'm pretty sure my configuration is correct, because I have measured the traces and marked which mosfet/transistor pair goes into which channel. Then I connected the wires according to the markings on the LED strip and it worked fine. |
Are you using an RGBWW strip? As for the button, I don't use it so it doesn't affect me. It could be added to the LC06 profile though. On a side note, you say those transistors can handle 80A continuous and 160A peak. While is is true, you need to have some massive heatsink and good fans to run that much power through them. You shouldn't be running more than 4A or so without adding cooling |
I am using this strip: https://www.aliexpress.com/item/32839614476.html type DC12V IP67 I am aware of the power dissipation limitations, just noted that they used a MOSFET which is rated for 20 times the advertised rating, so it should be possible to switch loads close to the specs. Based on my experience with chinese products that use components which are not rated for the purpose, this one looks like it's properly done. |
The MOSFET might be rated for 20x what they say the device can do, but if the board can't handle the current and you don't have proper cooling then you'll just turn your device into slag or worse start a fire. Don't know about the white pins being swapped then. From memory I have the exact same board as you, but my white channels work as expected with the LC06 profile. |
Give me some time, it is installed under my kitchen counter presently. I will try to do it tomorrow. |
Well I'm at a loss. Pictures below, my board is the exact same as yours. My only idea is that I have swapped my white channels in my config and been using the LC06 profile longer than I thought. I'm out of time to verify if that is the case right now (I am using it as a 5 channel dimmer device, not driving an RGBCW strip). |
Well I'm confused now. I did some more testing and have discovered two things:
When using this device and the LC06 profile with no colour options turned on, the channels map as follows:
But then if I turn on colour, rgb, white, and warm white the channels all behave as expected, with WW and CW being swapped as you have confirmed. I don't know what to make of this... |
This adds support for MagicHome 5 channel LED strip. It is using ESP8285 board, labelled as ESP-M4, has 5 powerful MOSFETs (M3006D, up to 80A! continuous/160A peak) at 12-24V. They are driven by smaller transistors. Red LED is connected to 3.3V power supply, and can't be controller. Green LED is connected to GPIO. Pin mappings:
BTN IO0
R Q8 Q2 IO14
G Q6 Q3 IO12
B Q9 Q4 IO13
WW Q10 Q5 IO15
CW Q7 Q1 IO5
GREEN_LED IO2
Looks like the same board is used in another product which has support for RF remote, but mine doesn't, so I don't include RF config, if yours has it should be a simple copy/paste job to add it.