logo elektroda
logo elektroda
X
logo elektroda

[Solved] Custom Binary Request for Ai-WB2-12F (BL602) with VEML7700, IR, and Relay Drivers

klotil59 423 9
ADVERTISEMENT
  • #1 21860723
    klotil59
    Level 3  
    Posts: 5
    Hi,
    I am trying to use Ai-WB2-12F (BL602) for my home automation project. I need to use VEML7700 sensor, IR control, and relay, but the standard public binaries do not have these drivers enabled. Could someone please generate a custom binary for me?
    Thank you!
    Jan
  • ADVERTISEMENT
  • #2 21860734
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    IR is already enabled, but there is no VEML7700 driver in OpenBeken.
  • #3 21860736
    klotil59
    Level 3  
    Posts: 5
    Hello.
    Thank you for your quick reply. I know that IR is ready on this board, and I need to solve the problem with VEML7700 driver. I have tried to install but I am not skilled enough.
    Can you help me?
    Jan
  • ADVERTISEMENT
  • #4 21860738
    insmod
    Level 31  
    Posts: 1353
    Help: 160
    Rate: 425
    Someone who has it would have to write a driver.

    If you can swap it, LTR-303 and LTR-329 sensors are supported
  • #5 21860767
    klotil59
    Level 3  
    Posts: 5
    Hello.

    I am aware of this. But I wasted all my energy for two days on how to create a bin file that contains the necessary drivers. AI advised me to contact this forum.

    Jan
  • #6 21860842
    DeDaMrAz
    Level 22  
    Posts: 594
    Help: 34
    Rate: 122
    I got a couple on order but I don't expect them for 5-7 days. @p.kaczmarek2 maybe has something in his leave?
  • ADVERTISEMENT
  • #7 21861377
    max4elektroda
    Level 24  
    Posts: 745
    Help: 47
    Rate: 183
    Which IR driver do you need?
    I tried a VEML7700 driver
    Since I don't have them, I added them to the I2C simulator and it works there.


    Maybe you can try in real life? You can fetch the binary for BL602 here (must be logged in to get the artifacts)
    https://github.com/MaxineMuster/OpenBK7231T_App/actions/runs/23042548404

    startDriver VEML7700 [SCL-pin] [SDA-pin] [chan_lux] [chan_white]

    Table of VEML7700 commands: ALS, Cycle, INT, Measure, and Reinit with descriptions and examples.

    Added after 3 [hours] 51 [minutes]:

    Using simulated VEML7700 in Linux (not in artifacts, but you can dowmload the windows sim here https://github.com/MaxineMuster/OpenBK7231T_App/actions/runs/23050852818) :

    backlog Sim_AddI2Csensor type=VEML7700 SCL=13 SDA=23; startdriver veml7700 13 23 5 4
    

    Info:MAIN:Time 52, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 53, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 54, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:SENSOR:No device address given, using default 0x10!
    Info:SENSOR:Adding VEML7700 sensor at address 0x10 SDA=23 SCL=13
    Info:SENSOR:VEML7700 (SDA=23 SCL=13): Init ok (ID=0xC481).
    Info:MAIN:Started veml7700.
    Info:CMD:[WebApp Cmd 'backlog Sim_AddI2Csensor type=VEML7700 SCL=13 SDA=23; startdriver veml7700 13 23 5 4' Result] OK
    Info:MAIN:Time 55, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:GEN:CHANNEL_Set channel 5 has changed to 2901 (flags 0)
    
    Info:GEN:CHANNEL_Set channel 4 has changed to 4749 (flags 0)
    
    Info:SENSOR:VEML7700 (SDA=23 SCL=13): Lux=290.17 ALS=4318 WHITE=4749
    Info:MAIN:Time 56, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 57, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 58, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 59, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 60, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 61, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:GEN:CHANNEL_Set channel 5 has changed to 2818 (flags 0)
    
    Info:GEN:CHANNEL_Set channel 4 has changed to 4613 (flags 0)
    
    Info:SENSOR:VEML7700 (SDA=23 SCL=13): Lux=281.84 ALS=4194 WHITE=4613
    Info:CMD:[WebApp Cmd 'VEML7700_Measure' Result] OK
    Info:MAIN:Time 62, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    Info:MAIN:Time 63, idle 0/s, free 100000, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 1/9999 
    
    



    Screenshot of LinuxSim web panel showing VEML7700 readings: Lux292.05 and WHITE4780
  • #8 21862148
    klotil59
    Level 3  
    Posts: 5
    Hello, all.
    Thank you very much for your cooperation. My system is working. You can close this topic.
    Jan
  • ADVERTISEMENT
  • #9 21862239
    max4elektroda
    Level 24  
    Posts: 745
    Help: 47
    Rate: 183
    So the driver is working on your system?
  • #10 21873006
    klotil59
    Level 3  
    Posts: 5
    Finally, I gave up the possibility to update this board with all the functions I wanted. I bought original ESP S3 board. With this board everything works fine.

    Jan

Topic summary

✨ The discussion centers on creating a custom binary for the Ai-WB2-12F development board based on the BL602 chip, intended for a home automation project requiring support for the VEML7700 ambient light sensor, IR control, and relay drivers. While IR functionality is confirmed to be enabled in the standard OpenBeken firmware, there is no existing driver support for the VEML7700 sensor. Alternatives such as LTR-303 and LTR-329 sensors are supported by OpenBeken. The original poster seeks assistance in generating a binary including the VEML7700 driver, but no ready-made solution is available. One respondent mentions awaiting hardware delivery and suggests a community member might have relevant resources.
Generated by the language model.
ADVERTISEMENT