@ajalexsmith wrote:
Hello,
I was wondering if someone would be able to help,
We’re currently building our robot for Pi Wars 2020, with the aim of trying to do everything on the Windows IOT platform. We have however run into a little snag with the TOF sensor.As there isn’t an IOT library for the sensor, we’ve been basing it on this:
we’ve used this as the basis and have tried numerous variations on writing/reading bytes at various registers based on the API, we have even recreated the SensorInit (as best I could) from the official API but I can’t get a sensing read.
we can get some readings (see pics attached) which confirms that I am connected to the device etc, i.e. the value 41 I believe to be the sensor address (0x29), but nothing which seems to relate to distance.
We only need functionality to be able to get a distance in mm, and a way to change the individual addresses so that we can have multiple sensors (~4) in each robot
Do you have any suggestions on where we could be going wrong?
Alex
Posts: 2
Participants: 2