logo elektroda
logo elektroda
X
logo elektroda

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

klotil59 687 9
Best answers LABEL_AI_GENERATED

How can I get a BL602 binary for Ai-WB2-12F with VEML7700 support for my home automation project?

IR is already enabled on the board, but the standard OpenBeken binaries do not include a VEML7700 driver, so you need a build that adds that sensor driver or another supported sensor instead [#21860734] [#21860738] A custom BL602 binary was provided in the GitHub Actions artifacts, and the suggested driver command is `startDriver VEML7700 [SCL-pin] [SDA-pin] [chan_lux] [chan_white]` [#21861377] The driver was also tested in the I2C simulator and reported working there, with `Sim_AddI2Csensor type=VEML7700 ...` and `startdriver veml7700 13 23 5 4` producing valid lux and white-channel readings [#21861377] If VEML7700 cannot be used on your hardware, LTR-303 and LTR-329 are mentioned as already supported alternatives [#21860738]
AI summary based on the discussion. May contain errors.
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: 1432
    Help: 168
    Rate: 455
    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: 1432
    Help: 168
    Rate: 455
    Someone who has it would have to write a driver.

    If you can swap it, LTR-303 and LTR-329 sensors are supported
  • ADVERTISEMENT
  • #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
  • ADVERTISEMENT
  • #6 21860842
    DeDaMrAz
    Level 23  
    Posts: 621
    Help: 34
    Rate: 130
    I got a couple on order but I don't expect them for 5-7 days. @p.kaczmarek2 maybe has something in his leave?
  • VEML7700 driver works in I2C simulator

    #7 21861377
    max4elektroda
    Level 24  
    Posts: 758
    Help: 49
    Rate: 189
    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
  • #9 21862239
    max4elektroda
    Level 24  
    Posts: 758
    Help: 49
    Rate: 189
    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

LABEL_AI_GENERATED
The discussion concerns a custom firmware binary request for an Ai-WB2-12F board based on BL602 for home automation. IR support was already available, but the missing VEML7700 light sensor driver was the main issue. It was clarified that OpenBeken did not yet include a VEML7700 driver, while supported alternatives such as LTR-303 and LTR-329 were suggested if the sensor could be swapped. A test build with a VEML7700 driver was later provided for BL602, including I2C simulator support and a startup command for the driver. The topic ended after the system was reported working, although the board was eventually replaced with an ESP32-S3 board to achieve all desired functions.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT