Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blockly][Codegenerator] VL53L8CX has same I2C address as LTR329 by default #362

Open
PaulaScharf opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
Blockly Everything which is related to blocks

Comments

@PaulaScharf
Copy link
Member

Block description

If both VL53L8CX and LTR329 are connected it is not possible to read sensor values.

Expected block behaviour

Before the begin() function for the VL53L8CX is called we need to change the I2C address with the following command:
sensor_vl53l8cx.set_i2c_address(0x51);
I propose 0x51, which is 0x29 in 8-Bit, but if you are aware of any sensors already using that address let me know.

Easy enough, but the issue is, that if the set_i2c_address() function is called after the LTR has already been initialized, the LTR somehow reads different values, than it would usually do. I guess, that whatever is happening under the hood of the set_i2c_address() function is messing with settings of the LTR.
So we need to make sure, that the set_i2c_address() is always called before, actually probably best to call it before anything else in the setup.

@PaulaScharf PaulaScharf added the Blockly Everything which is related to blocks label Nov 14, 2024
@PaulaScharf PaulaScharf self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blockly Everything which is related to blocks
Projects
None yet
Development

No branches or pull requests

1 participant