VL53L0X1 Showing only High Repeated Number

Use this section to discuss your embedded Flowcode projects.
Post Reply
Matrixv8
Posts: 30
http://meble-kuchenne.info.pl
Joined: Mon Jun 03, 2024 2:51 am
Been thanked: 4 times

VL53L0X1 Showing only High Repeated Number

Post by Matrixv8 »

Hi everyone, I am working with the VL53L0X1 component. As per the attached program I am only getting the value 7903mm from the module. The component is set to long range. I tested other modules and I got the same result. I looked at the forum and no solution for my problem. I am using an Attiny84 chip. I tested the module with an Arduino Uno VL53L0X1 example sketch and the module works fine.

I would appreciate if someone could help please

Regards,
Pierre
Attachments
Station Sensor VL530L0X Attiny84.fcfx
(14.63 KiB) Downloaded 23 times

BenR
Matrix Staff
Posts: 2161
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 587 times
Been thanked: 773 times

Re: VL53L0X1 Showing only High Repeated Number

Post by BenR »

Hello Pierre,

The ATTINY is running at 8MHz, half the speed of the Uno. Is it possible to try changing the crystal and boostig this to 16MHz to see if that makes a difference

Matrixv8
Posts: 30
Joined: Mon Jun 03, 2024 2:51 am
Been thanked: 4 times

Re: VL53L0X1 Showing only High Repeated Number

Post by Matrixv8 »

Thank you for your reply. Yes you are right, I reconfigured my program for the UNO and it worked but only on short range. I also boot loaded an Attiny85 at 16MHZ and it worked on short range not long, I do not know why.

Pierre

Post Reply