logo elektroda
logo elektroda
X
logo elektroda

[Solved] Using Tuya Aubess Mini Smart Switch (Belon2028N) with 16-Channel Relay Board: Shift Register Method

smkassist 3504 33
ADVERTISEMENT
  • #31 20533323
    p.kaczmarek2
    Moderator Smart Home
    I've did a little research and it seems that Tasmota is using this library:
    https://github.com/sui77/rc-switch
    So it's not IRLibrary, RC codes are different. They are similar, but different. But for that purpose I would need to get RF receiver... hmm.... maybe I will buy one and help you get that remote running.

    Right now, I am finalizing the clock:
    Using Tuya Aubess Mini Smart Switch (Belon2028N) with 16-Channel Relay Board: Shift Register Method Using Tuya Aubess Mini Smart Switch (Belon2028N) with 16-Channel Relay Board: Shift Register Method
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #32 20533340
    smkassist
    Level 4  
    I will look for some IR receiver in my shop tomorrow... Maybe I have one in my offscourings
  • ADVERTISEMENT
  • #33 20533505
    p.kaczmarek2
    Moderator Smart Home
    Hmm you are right, we are far from initial topic. Please start a new thread about simulator and I will reply there.

    That one can be closed, the basic functionality of ShiftRegister seems to be working.

    To sum it up, here's example autoexec.bat for Shift Register:
    
    // startDriver ShiftRegister [DataPin] [LatchPin] [ClkPin] [FirstChannel] [Order] [TotalRegisters] [Invert]
    startDriver ShiftRegister 24 6 7 10 1 1 0
    // If given argument is not present, default value is used
    // First channel is a first channel that is mapped to first output of shift register.
    // The total number of channels mapped is equal to TotalRegisters * 8, because every register has 8 pins.
    // Order can be 0 or 1, MSBFirst or LSBFirst
    
    // To make channel appear with Toggle on HTTP panel, please also set the type:
    setChannelType 10 Toggle
    setChannelType 11 Toggle
    setChannelType 12 Toggle
    setChannelType 13 Toggle
    setChannelType 14 Toggle
    setChannelType 15 Toggle
    setChannelType 16 Toggle
    setChannelType 17 Toggle
    
    

    Connections should be obvious.. according to datasheet.
    Helpful post? Buy me a coffee.
  • #34 20533517
    smkassist
    Level 4  
    Closing as solved.

Topic summary

The discussion revolves around integrating a Tuya Aubess Mini Smart Switch (Belon2028N) with a 16-channel relay board using shift registers. The user successfully flashed OpenBK firmware onto the Tuya module but faced limitations due to the limited number of IO pins. Suggestions included using I2C port expanders or shift registers, with a preference for the latter due to local availability. The 74HC595 shift register was identified as a suitable component for expanding IO capabilities. The conversation included technical details on wiring, scripting examples for OpenBK, and the potential for chaining multiple shift registers to control more outputs. The user also expressed interest in exploring other communication protocols and automation possibilities for home systems.
Summary generated by the language model.
ADVERTISEMENT