logo elektroda
logo elektroda
X
logo elektroda

Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control

mplum 5421 61
ADVERTISEMENT
  • #1 20521163
    mplum
    Level 3  
    Hi,
    Hello, I have the LED controller Miboxer Fut036w with WiFi and 2.4GHz.
    I have flashed with the ObenBK Firmware.
    The flashing and the CRC is OK.
    CRC matches 0x4ACF98A4!
    Writing file data to chip success.
    When I connect the power I can see the WiFi.
    Then I can connect to my home WiFi.
    I can connect to MQTT.
    But I can't control it via the web.
    Then I have seen that there is another µC. So I have dismounted it and have connected the pins from the CBS to the MOSFET, the WiFi LED, and the button.

    WiFi LED is working good.

    On the PCB, there are 2 MOSFETs, and there is both the same LED. It is only a backup when one MOSFET is damaged or is it for more power?
    The FUT036w is built for 12-24V 13A LED.

    The button I have some questions too.
    The layout has a pull-up. So I have 3.3V on the pin and when I press the button then I have 0V.
    But when I select button or smart button, the internal pull-up is active and it's not working.
    When I select Dinput_No_PullUp then I can use it. But then I can't use the smart button.
    Is it possible to make a script and can someone give me a tip on where I need to look?
    And the second, when I use the smart button you can switch on/off and increase the PWM. I will change it so that you can dim to the maximum and then wait. And when you press the button again long, you will decrease the value to the minimum (but not zero).
    Here I need also help to change the program.

    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control

    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control

    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control

    Here I have dismounted the other µC and quick and dirty a new connection for the CB3S.
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
  • ADVERTISEMENT
  • #2 20521194
    p.kaczmarek2
    Moderator Smart Home
    Hello, I have seen that device recently. It is indeed a bit more complicated version of an average LED strip controller.

    mplum wrote:

    Then i have see that there is an another µC.

    This is called TuyaMCU. The TuyaMCU is communicating with WiFi module via a simple UART protocol. TuyaMCU is supported by OpenBeken, but each TuyaMCU device has a device-specific packet types which we must first capture and analyze in order to support them.

    mplum wrote:

    So ih have dismount it und have connect the Pins from the CBS to the Mosfet, the Wifi LEd and the Button.

    This is an alternate solution and it's also a good approach. It should work, but please remember to connect one of PWM pins to MOSFET, because BK7231 has PWM only on 6 chosen GPIOs, and if you choose non-PWM GPIO, you won't get smooth control of light.

    mplum wrote:

    On the PCB there are 2 Mosfets, and there are both an the Same LED. It is only a Backup, when one Mosfet is damaged= or is sit for more Power?
    The FUT036w is build für 12-24V 13A LED .

    If they are connected together, then they are used to increase the current capability, more power.

    Keep in mind that you can sometimes get a strip where a MOSFET is left unused and not connected, and then you can repurpose such device to drive one extra colour channel.


    mplum wrote:

    The Layout have a Pull up. So i have 3,3V on the Pin and whe i press the Button then i have 0V.
    But when i select Button or Samrt Button the the internal pull up is active and its not working.
    Whe i select Dinput_No_PullUp then i can use it. But then i canßt use the samrt button.

    Really? Btn_SmarLED is not working because of pull up resistor on PCB?
    Well, the quickest solution would be to remove the pull up resistor from PCB.
    We don't need pull ups on PCB, OpenBeken GPIO has internal pull up resistors.
    Btn_SmartLED should work as long as it is connected between GPIO and GND. Pressing button shorts GPIO to GND.

    mplum wrote:

    And the Secon.d When i use Smart Button you can switch on/off and increase the PWM. i will change it, that you can dimm to the maximum. and then Wait.

    I am sorry but I am not sure if I understand correctly what you are trying to achieve. Can you be more clear and rephrase your question in I way that I can understand?
    The Btn_SmartLED should give you full LED control you need, as shown on our videos:
    https://www.youtube.com/watch?v=vDh8Y_NDrb4
    https://www.youtube.com/watch?v=e1xcq3OUR5M
    Btn_SmartLED, once setup, should allow you to:
    - turn on and off device
    - adjust brightness
    - scroll list of a predefined colours
    - toggle between 3 temperature modes: warm, cool, mixed

    mplum wrote:

    And when you press again long the button you will decrease the value to the minimum(but not zero)

    This is a desired behaviour, because holding button decrease brightness (not to zero), if you want to turn off device (0 brightness), then just click Smart Led Button once.
    Helpful post? Buy me a coffee.
  • #3 20521241
    mplum
    Level 3  
    p.kaczmarek2 wrote:
    mplum wrote:
    On the PCB there are 2 Mosfets, and there are both on the Same LED. It is only a Backup, when one Mosfet is damaged or is it for more Power?
    The FUT036w is built für 12-24V 13A LED .

    If they are connected together, then they are used to increase the current capability, more power.

    OK, can I use one PWM to control both mosfet? when I select 2 Pins with PWM1, then the second pwm channel is the color.
    I know that I can only use the 6 PWM pins.

    p.kaczmarek2 wrote:
    mplum wrote:
    The Layout has a Pull up. So I have 3.3V on the Pin and when I press the Button then I have 0V.
    But when I select Button or Smart Button the internal pull up is active and it's not working.
    When I select Dinput_No_PullUp then I can use it. But then I can't use the smart button.

    Really? Btn_SmartLED is not working because of pull up resistor on PCB?
    Well, the quickest solution would be to remove the pull up resistor from PCB.
    We don't need pull ups on PCB, OpenBeken GPIO has internal pull up resistors.
    Btn_SmartLED should work as long as it is connected between GPIO and GND. Pressing button shorts GPIO to GND.

    When I switch to button or do BTN_smart the internal Pull up is active. Then I need only switch the button to GND.
    But with the original Layout I have 3.3V on the Signal and when I press the Button it goes to zero. But when I connect the wire to the Pin, it is not going to zero.
    In my opinion there is now a double pull up. But is it possible to deactivate the internal Pull up of the CB3s when I use the BTN_SmartLED??


    p.kaczmarek2 wrote:
    mplum wrote:
    And the Second When I use Smart Button you can switch on/off and increase the PWM. I will change it, that you can dim to the maximum. and then Wait.

    I am sorry but I am not sure if I understand correctly what you are trying to achieve. Can you be more clear and rephrase your question in a way that I can understand?


    I know when you press short you can directly switch on and off. but when I press long I will increase until the value is max 100.
    Now when I hold the button longer, the value goes to zero and starts again to increase.
    I want that the increase stops at 100. then I need to press again the button for long. and then the value will decrease.
    In my opinion, it is easier to find the maximum value. now you press long and see the brightness going up and up and up. but you don't know when you have the 100. But when the value stops at the maximum you can see that the brightness is not increasing. When you are at 50% and you press long the value will increase to 60. Then I see that the value will increase. So I stop pushing the button and press again long the button and the Value will decrease until the minimum value is reached. When you decrease to zero and you switch on and off the led is off. When you have a minimum for example 5, the led is always on when you switch on and off.
    You know what I mean.

    Sorry for my English, I am from Germany

    Do you have a different model for me which is easier to use? I need only 1 PWM Channel and one button for local switching.
  • #4 20521323
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:

    OK, can i use one PWM to contol both mosfet? when i selecct 2 Pins with PWM1, then the second pwm channel is the color.
    i know that i can only use the 6 PWM pins.

    If you have two use one PWM to control two MOSFETs you can try connecting both MOSFETs to that PWM, but everything depends on the specs of the MOSFETs. It should be also possible to set two PWM pins to a single channel and they will both mimic value from this channel.

    mplum wrote:

    When i switch to button or du BTN_smart the internal Pull up is active. Then i need only switch the button to gnd.
    But with the original Layout i have 3,3V on the Signal and when i press the Button is go to zero. But when i connect the wire the the Pin. is not ggoing to zero.
    in my oppinion there is now a double pull up. But it is possible to deactivate the interal Pull up of the CB3s when i use the BTN_SmartLED??

    In my opinion it still should go to zero. It is possible to change the code Btn_SmartLED and add extra role: Btn_SmartLED_noPullUp, but still, maybe you can try removing the physical resistor (pull up) from the board, if you think it breaks the button mechanism?



    mplum wrote:

    i now when you press short you can directly switch on and off. but when i press long i will increase until the value is max 100.
    Now when i hold the button longer, the value goes to zero and start again to increase.
    I will that the increase stopp at 100. then i need to press again the button for long. and then the value will be decrease.
    in my opinion is easier to find the maximum value. now you press long and see the brightness going up and up and up. but you dont know when you have the 100. But when the value will be stopp at the maximum you can see that the brightness is not increase. When you are at 50% and you press long the value will increase to 60. Than i see that the value will increase. So i stop push the button and press again long the button and the Value will decrease until the minimum value is reched. When you decrease to thero and you switch on and off the led is off. When you have a minimum for exampel 5, the led is always on when you switch on and off.
    You know what i mean.

    Now I understand. I can try looking into it. Maybe it indeed is a better idea.

    mplum wrote:

    have you a different modell for me which is easyer to use? I need only 1 PWM Channel and one button for lokal switching.

    Well, any non-TuyaMCU would be faster to convert, but you have already figured out all the important things so I think your model is ok. Connecting PWMs and removing MCU can be a good solution.
    Helpful post? Buy me a coffee.
  • #5 20521347
    mplum
    Level 3  
    p.kaczmarek2 wrote:
    mplum wrote:
    OK, can I use one PWM to control both MOSFET? When I select 2 Pins with PWM1, then the second PWM channel is the color. I know that I can only use the 6 PWM pins.
    If you have to use one PWM to control two MOSFETs you can try connecting both MOSFETs to that PWM, but everything depends on the specs of the MOSFETs. It should be also possible to set two PWM pins to a single channel and they will both mimic value from this channel.


    OK and what I need to do? I have enough Ports. So I can use one port for one MOSFET. But then I select PWM with both number one then I can see on the web the slider for cold and warm white.

    p.kaczmarek2 wrote:
    mplum wrote:
    When I switch to button or do BTN_smart the internal Pull up is active. Then I need only switch the button to GND. But with the original Layout I have 3.3V on the Signal and when I press the Button it goes to zero. But when I connect the wire to the Pin, it is not going to zero. In my opinion there is now a double pull up. But is it possible to deactivate the internal Pull up of the CB3s when I use the BTN_SmartLED??
    In my opinion it still should go to zero. It is possible to change the code Btn_SmartLED and add extra role: Btn_SmartLED_noPullUp, but still, maybe you can try removing the physical resistor (pull up) from the board, if you think it breaks the button mechanism?
    Yes I will connect directly to the CB3s and disconnect the pullup.
    p.kaczmarek2 wrote:
    mplum wrote:
    I know when you press short you can directly switch on and off. But when I press long I will increase until the value is max 100. Now when I hold the button longer, the value goes to zero and starts again to increase. I want that the increase stops at 100. Then I need to press again the button for long. And then the value will decrease. In my opinion it is easier to find the maximum value. Now you press long and see the brightness going up and up and up. But you don't know when you have the 100. But when the value will stop at the maximum you can see that the brightness is not increasing. When you are at 50% and you press long the value will increase to 60. Then I see that the value will increase. So I stop pushing the button and press the button long again and the value will decrease until the minimum value is reached. When you decrease to zero and you switch on and off the LED is off. When you have a minimum for example 5, the LED is always on when you switch on and off. You know what I mean.
    Now I understand. I can try looking into it. Maybe it indeed is a better idea.
    OK super.

    Thank you.
  • ADVERTISEMENT
  • #6 20521355
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:

    OK and what i need to do? i have enough Ports. So i can use one port for one Mosfet. But then i select pwm with both number one then i can see n the web the slider for cold and warm white.

    Sorry, it seems I was wrong! There is a little bug currently that counts a number of pins with PWM ignoring channels. So maybe the "just connect one PWM to two MOSFETs" method is better, for now. Just do a jumper with solder and wire.

    I will try to fix that issue as well, I was not aware about that. The code must be counting a number of PWM pins to determine the kind of UI to be shown.
    Helpful post? Buy me a coffee.
  • #7 20521436
    mplum
    Level 3  
    ok thank you.

    it is possible to connect 1-wire sensors to the CB3s?? for example
    DS1820??
    i need to measure a temperature and then i will regulate a fan with pwm
  • ADVERTISEMENT
  • #8 20521459
    p.kaczmarek2
    Moderator Smart Home
    Currently we are supporting DHT family of sensors, I am playing with one on W600 platform (OBK runs on many platforms):
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
    The DS18B20 is on TODO list.
    Helpful post? Buy me a coffee.
  • #9 20521591
    mplum
    Level 3  
    ok. then I will buy some dht11. the dht11 is still working?
  • #11 20523906
    mplum
    Level 3  
    It is possible that Single click controls the led. And Double click sends only a value to the mqtt? I have only a White led Band and need only the Single Click. And the Long click.
    With the Double Click I will switch central off.
  • #12 20524147
    p.kaczmarek2
    Moderator Smart Home
    Yes, it is possible with events. I have added an example for you:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
    Please scroll down to: Simple example showing how to do MQTT publish on button event (double click, etc). It also includes button hold event to adjust dimmer.
    Helpful post? Buy me a coffee.
  • #13 20525549
    mplum
    Level 3  
    in the moment i have the problem with the mosfet. before with the tuyaMCU the mosfet get 5V. The CB3s only have 3,3V. So i have connect a level converter to switch from 3,3V to 5V. The voltage was ok. but now my Mosfets are broken. it is possible because i have connect both mosfets with one signal?
    you say the TuyaMCU is possible to use. What i need to do?
    At the beginning i have only dismount the tuyaMCU and connect the pins. all was working. but not with the right voltage, so its possible that the mosfets not complete open and going to be hot.
    i will build 10 pieces in my new caravan. but i don#t want to burn. so it is better when we use the tuya MCU? when i can use the tuya mcu i don`t need to change something on the PCB.
  • #14 20527025
    mplum
    Level 3  
    >>20524147

    it is also possible in the autoexec.bat. that i can read pwm channel 0 for example and set pwm channel 1 with the same value like channel 0?
  • #15 20527576
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:
    p.kaczmarek2 wrote:
    mplum wrote:
    OK, can i use one PWM to contol both mosfet? when i selecct 2 Pins with PWM1, then the second pwm channel is the color.
    i know that i can only use the 6 PWM pins.

    If you have two use one PWM to control two MOSFETs you can try connecting both MOSFETs to that PWM, but everything depends on the specs of the MOSFETs. It should be also possible to set two PWM pins to a single channel and they will both mimic value from this channel.


    OK and what i need to do? i have enough Ports. So i can use one port for one Mosfet. But then i select pwm with both number one then i can see n the web the slider for cold and warm white

    It is fixed now.
    Having multiple PWM outputs on a single channel should work now.
    https://github.com/openshwprojects/OpenBK7231...mmit/568c7fdbf1b051ffa0bd62419887694470077762

    mplum wrote:

    it is also possible in the autoexec.bat. that i can read pwm channel 0 for exampel and set pwm channel 1 with the same value like channel 0?

    Yes but it's not needed now, as said above, I submitted a firmware fix to support your use case. Can you check?

    mplum wrote:

    i will build 10 peaces in my new caravan. but i don#t wont to burn. so it is better when we use the tuya MCU?

    I haven't fully reverse engineered the TuyaMCU protocol of that device yet, so it might require a bit of more advanced knowledge. It would be more easy to just use any other LED strip, that is not a TuyaMCU based and uses PWM to control MOSFETs directly, without external MCU.
    Helpful post? Buy me a coffee.
  • #16 20528448
    mplum
    Level 3  
    Hi. Ok thank you for the Update. I will Test it. But I don't know when. I am on Holiday for 1.5 Weeks.
    I
  • #17 20528469
    p.kaczmarek2
    Moderator Smart Home
    There is no hurry, I can help you when you come back. Still, why do you want to use that Miboxer device exactly?

    I have tested many LED strip controllers and this is first one with TuyaMCU. This is especially problematic device.
    Helpful post? Buy me a coffee.
  • #18 20528650
    mplum
    Level 3  
    I Need a led Controller with Lokal Push Button. I will use this in my caravan. So I can use the Original Switch, Cable and so on to control the lights. And in the Moment is only on off. Then I can dimm it. And with the wifi I will use extra funktions. For example central on. Central off.
    And this led Controller was Not so expansiv. 16€.
    Have you a Suggestion for me? Is easier to use a led Controller who don't need a rebuilding.
    For me is Important that I can use the original connections and Push Button connector.
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
  • #19 20528776
    p.kaczmarek2
    Moderator Smart Home
    I don't have specific controller in mind but maybe there is another model with a button but that has PWM control used directly? Without extra MCU? I don't know where are you buying...

    You did good job with routing wires to MOSFET drivers but there are controllers that have it already done.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #20 20529544
    mplum
    Level 3  
    Is working. When you set Both pwm Channel to the Same number Then both Channels have the Same value.

    But, in the webfront you can See the Slider for the led Temperature. And when you Slide the temperature the Channel goes to zero. And you Need to restart
    When you Not restart the led so Not Go on. Channel 0 Always Zero Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
  • #23 20529653
    p.kaczmarek2
    Moderator Smart Home
    You are right, one file didn't make it into the build.
    Please try 1.15.662 and tell me if it works.
    Helpful post? Buy me a coffee.
  • #24 20529781
    mplum
    Level 3  
    Ok. With Version 1.15.663 all is Working. There is no 2nd slider. And Both Channels have the Same value
    👍👍

    And I have Activate flag 12 and 17 together. Then I can't activate. I can toggle on off But always value 0. Then I have deactivated Both flags. Then it was ok. Then activate only flag 12, is also ok. Then activate flag 17. Then is also Working. 🤔
    But with Flag 17 is only Working when I change the value in the Web. When the led is off and I Press the Smart Button the led going Not ON.

    Can you say something about Smart Button. About dimm up to the Maximum, and Then dimm down to the Minimum.
    Normally I can do it with a Script? When I Press the Button Long I get the actual value and increase with 1 until the Maximum is Reached. When I stop Pressing and Press Then Long again Then I decrease until the minus is reached. how Long is the Time for 1 Zyklus? When I increase oder decrease 1 Every Zyklus. How fast I reached the 100?
  • #25 20533740
    mplum
    Level 3  
    Can you say something to my questions? Have you seen my answer?
  • #26 20534186
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:

    And i have Activate flag 12 and 17 together. Then i cant activate. I csn toggle on off But always value 0. Then i have deactivsted Both flags. Then it was ok. Then activate only flag 12, is also ok. Then activate flag 17. Then is also Working. 🤔
    But with Flag 17 is only Working when i change the value in the Web. When the led is off and i Press the Smart Button the led going Not ON.

    Hello, can you provide more information, which value is always 0? When?
    What is the value of:
    - current temperature
    - dimmer
    - raw channels
    in case of the problem?

    I am trying to replicate your problem, so far on the simulator, but it seems ok:
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control

    Or do you mean that you've set brightness to 0 (or a very low value like 1%) and then on/off doesn't work?
    Helpful post? Buy me a coffee.
  • #27 20534271
    mplum
    Level 3  
    I only use a single white LED. I use PWM1 and 2 für Channel 0.
    When I have activated both flags, the fan toggles on and off, but the brightness was always 0. I can't select the brightness over the web or with the smart button. I restarted the device. Also no brightness. Then I switched both flags off and made a restart. Then it was working.
    Then I activated only flag 12, which is also ok. Then I activated flag 17. Then it is also working. 🤔
    But with flag 17, it is only working when I change the value in the web. When the LED is off and I press the smart button, the LED does not turn on.
  • #28 20534279
    p.kaczmarek2
    Moderator Smart Home
    mplum wrote:

    when i have activate Both flags i Fan toggle on off but the brightness was always 0. i cant select the brightness over the Web or with Smart Button. I restart the Device. Also no brightness.

    What if you HOLD smart button? Will it increase brightness then?
    Helpful post? Buy me a coffee.
  • #29 20534296
    mplum
    Level 3  
    No. There was no way to increase brightness.
  • #30 20534303
    p.kaczmarek2
    Moderator Smart Home
    Hmm that must be a bug. Can you please tell, if you have a single PWM pin, and BtnSmartLED, is there a way to increase brightness through that button?
    Can you check?

    Added after 14 [minutes]:

    I just tested with physical device (BK7231T):
    Miboxer FUT036w and CB3s Issues: Flashing Firmware, WiFi Connectivity, and Button Control
    For that configuration, I can use Button to both turn on and off and adjust dimmer....
    Both flags (12 and 17) set. Also works without them.

    Can you please tell me how to exactly reproduce your issue?
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around issues faced with the Miboxer FUT036w LED controller after flashing it with the ObenBK firmware. Users report successful WiFi connectivity and MQTT integration but encounter problems with web control and button functionality. The conversation highlights the complexity of the TuyaMCU protocol, the need for proper PWM pin connections to MOSFETs for effective light control, and the challenges of managing internal pull-up resistors affecting button operations. Solutions proposed include using a single PWM to control multiple MOSFETs, modifying button behavior through scripts, and addressing firmware bugs. Users also discuss the potential for connecting 1-wire sensors and the importance of maintaining device state across reboots. The conversation concludes with considerations for device configuration and the implications of using Flag 12 for state saving.
Summary generated by the language model.
ADVERTISEMENT