issue with status code using ST VL53L4CD_Sat_HelloWorld.ino sketch.ino
- July 8, 2024
- 2 replies
- 1692 views
I am a beginner in this field. Can anyone help me?
I am testing Adafruit VL53L4CD and Arduino Nano with Atmel ATmega328P 16 MHz processor.
Only 10 cm. wire is connecting the Adafruit board and the Nano board.
I have an issue with status code using ST VL53L4CD_Sat_HelloWorld.ino sketch.ino
When distance is below approx. 500 mm. Status = 0 (OK).
When distance is below approx. 1.400 mm. Status = 2 (Wire: Received NACK on transmit of address?)
When distance is above approx. 1.400 mm. Status = 4 (Wire: Other error?)
Some times also status = 7?
The status may originate from Wire.endTransmission()
I have analyzed the I2C protocol using PicoScope. I can't figure out what's wrong. Se oploaded image.
I would expect nice square shapes for SDA and SDC. But that is not the case?
Regards Joergen
