logo elektroda
logo elektroda
X
logo elektroda

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

leśny_ziutek 4332 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 utilizes a CB2S Tuya Module (BK7231N) and a Holtek HT66F3195 microcontroller. The power section features two SLD8N65SV MOSFETs and S3M diodes for rectification. Users discussed the flashing process via OTA and the configuration of the device using autoexec.bat scripts to control dimming and toggle functions. The device operates in AP mode for flashing, and users shared experiences with configuring GPIO for rocker switches to control the dimmer without affecting dimming functionality. The discussion also touched on the compatibility of the MS-105B with Home Assistant and the potential for using alternative dimmers like the Martin Jerry model.
Summary generated by the language model.
ADVERTISEMENT