cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with the ToF Sensor VL53L0X not working propperly

EddyK
Visitor

Hello Guys, 

currently, im trying to get the VL53L0X to work with my MSP430 Controller but my biggest problem is the communication with the Device. Ive copied the Software from Artful Bytes and changed it to match my board. Here is the Link:

https://www.artfulbytes.com/mcu-i2c-driver

 

Ive tried to write a simple byte to the Sensor but all it does is pulling SCL and SDA down right after transmitting the last digit (write). It doesnt even give an ACK and it willbe pulled down until i cut the power supply.

Writing ByteWriting Byte

Ive also tried to read a byte from the Sensor and strangly it seems work. All i did was to write a simple code to read right from the VL53L0x. There was no init for the Sensor but it didnt pull the line down.

Reading ByteReading Byte

I need help with my Sensor. Do i have to write some data to an other Slave-address before writing to 0x29? 

 

Sincerely

EddyK

1 ACCEPTED SOLUTION

Accepted Solutions
EddyK
Visitor

Id like you to inform, that the only Problem here was me. 

 

I didnt read the Usermanual carefully of my Microcontroller trusted other sources on how to write the TX Buffer. It turns out that my Controller discards the whole Buffer and waits until it is writen (the Microcontroller pulled the SCL line). Ive always wrote to the Buffer before waiting for the Startbit to be set. Ive changed the position so that i write to the buffer after waiting for the Startbit to be set. I use the MSP-TS430RHA40A package if anyone is interested

 

Sincerely

EddyK

Successfully written a ByteSuccessfully written a Byte

Reason it didnt WorkReason it didnt Work

View solution in original post

1 REPLY 1
EddyK
Visitor

Id like you to inform, that the only Problem here was me. 

 

I didnt read the Usermanual carefully of my Microcontroller trusted other sources on how to write the TX Buffer. It turns out that my Controller discards the whole Buffer and waits until it is writen (the Microcontroller pulled the SCL line). Ive always wrote to the Buffer before waiting for the Startbit to be set. Ive changed the position so that i write to the buffer after waiting for the Startbit to be set. I use the MSP-TS430RHA40A package if anyone is interested

 

Sincerely

EddyK

Successfully written a ByteSuccessfully written a Byte

Reason it didnt WorkReason it didnt Work