Range data for the vl53l4cx is correct on ESP32, but constantly returns 1 mm when using Atmega1284 #2346
Unanswered
gramcracker
asked this question in
Libraries
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am unsure if this is a problem with the Atmega1284 or some quirk with the registers on this sensor, but I am using the exact same setup and example code for each MCU, and the distance returned on the Atmega1284 is constantly just 1 mm. The code works perfectly on the ESP32. The rest of the Range Data returned seems fine also. E.g. I get status 12 when there is a lack of signal. it is just the distance that is wrong. Here is an example of the Range data output:
status=0, D=1mm, Signal=170.66 Mcps, Ambient=170.66 Mcps, VL53L4CX_RANGESTATUS_RANGE_VALID
Beta Was this translation helpful? Give feedback.
All reactions