logo elektroda
logo elektroda
X
logo elektroda

Inside MoesGo Two Channel Smart Dimmer Module MS-105B: CB2S Tuya Module & Holtek HT66F3195

leśny_ziutek 4614 34
ADVERTISEMENT
  • ADVERTISEMENT
  • #32 20901151
    p.kaczmarek2
    Moderator Smart Home
    The Martin Jerry Dimmer uses PWM dimmer, which is different from what MCU does. It's like a TuyaMCU dimmer but with different communication, in this case controlled via PWM:
    Screenshot of a webpage section with information about the PWM dimmer module.
    Getting other dimmers to work directly with OBK would require porting MCU functionality to OpenBeken, so OpenBeken would need to be able to detect phase via optocoupler and then quickly turn the light on at the specific point of sine wave. It is certainly doable, but there were no requests ever to that.

    Why would you like such a feature? Would you help with testing?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #33 21348324
    hulakov
    Level 1  
    >>20899239 With this config, the dimmer works in a very small range. In particular, minimal brightness is too bright. Is there a way to fix it?
  • ADVERTISEMENT
  • #34 21351383
    leśny_ziutek
    Level 12  
    Different light bulbs behave differently. I have two dimmable bulbs: Osram Glow Dim and Philips WarmGlow, both with the adjust of the color temperature when dimming. Both have their pros and cons but only the Philips one can be dim very deeply: 0-100%. The Osram one is more like 30-100%.

    You can try change the range with the tuyaMcu_setDimmerRange command.

    My current autoexec.bat is below:

    
    startDriver TuyaMCU
    
    tuyaMcu_defWiFiState 4
    tuyaMcu_setDimmerRange 100 900
    
    setChannelLabel 1 L1 1
    setChannelType 1 toggle
    linkTuyaMCUOutputToChannel 1 bool 1
    
    setChannelLabel 2 L2 1
    setChannelType 2 toggle
    linkTuyaMCUOutputToChannel 7 bool 2
    
    setChannelType 3 dimmer
    linkTuyaMCUOutputToChannel 2 val 3
    
    setChannelType 4 dimmer
    linkTuyaMCUOutputToChannel 8 val 4
    
    setChannelLabel 5 toggle_L1_after
    setChannelType 5 textField
    linkTuyaMCUOutputToChannel 6 val 5
    
    setChannelLabel 6 toggle_L2_after
    setChannelType 6 textField
    linkTuyaMCUOutputToChannel 12 val 6
    
    mqtt_broadcastInterval 120
    
    PowerSave 1
    
  • #35 21351390
    p.kaczmarek2
    Moderator Smart Home
    tuyaMcu_setDimmerRange takes two arguments, min and max. And in the post you linked I can see:
    Screenshot of code where the tuyaMcu_setDimmerRange function has a missing space between arguments.
    did someone lost a space?
    Helpful post? Buy me a coffee.

Topic summary

The MoesGo Two Channel Smart Dimmer Module MS-105B features a CB2S Tuya Module based on the BK7231N microcontroller and a Holtek HT66F3195 MCU for dimming control. The power stage uses two SLD8N65SV MOSFETs (650V, 7A) and rectifying bridges with S3M diodes (1000V, 3A). It operates as a trailing edge dimmer with voltage waveform characteristics demonstrated at various dimming levels. The device employs a TuyaMCU architecture requiring external MCU communication, flashable OTA only with matching firmware profiles, and UART port management for flashing. Configuration and control are managed via OpenBeken firmware using autoexec.bat scripts to set channel types, link TuyaMCU dpIDs to channels, and define dimmer ranges. The dimmer supports toggling and dimming channels with dpIDs mapped for boolean and value types, including additional dpIDs for toggle-after timing functions. Flash memory wear is minimized by optimized write operations. Integration with Home Assistant via MQTT is possible, though initial issues with dimming control were resolved by correcting JSON configurations. Workarounds for using rocker switches involve assigning unused GPIO pins with TglChannelOnToggle roles due to TuyaMCU's autonomous handling of physical buttons. The Martin Jerry MJ-SD01 dimmer differs by using PWM control without an external MCU, unlike TuyaMCU-based dimmers. Adjusting minimal brightness levels depends on the bulb type and can be tuned via the tuyaMcu_setDimmerRange command. The community provides detailed flashing instructions, configuration examples, and troubleshooting for OTA flashing, dpID mapping, and device integration.
Summary generated by the language model.
ADVERTISEMENT