Replies: 3 comments
-
I succed to use this sensor on a raspberry PI with
Any idea of the smbus specificity compare with the micropythonI2C lib ? |
Beta Was this translation helpful? Give feedback.
-
Some more news, I have perform a test on raspberry with the same sensor : Raspberry with low level i2c : read all the sensor range Micropython with i2c read It seem's it works but I have to understand how to convert this sum of hexa to a distance. (and what is the first hexa and last hexo for the distance) another question... the hexa read is not so "clean" in both low level case.. |
Beta Was this translation helpful? Give feedback.
-
A result more simple to try to find the way to translate.
Note1 : if I read after the 35 byte I get 0x7B always One strange thing, in the datasheet they are talking about 2 Bytes for the value of the register 2 and 3. I am lost ;-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
Trying to read the distance from a SRF02 sensor with I2C.
I am on a RP2040 zero board
The datasheet of SRF02 is there : srf02_i2c.pdf
I try the folowing code :
and get
b'\x06\x18\x00\x00\x00\x00'
it seems it works as it is not null but I expect distance in the byte 2 and 3.
And there where an obstacle in front of the sensor 50cm forward...
Where am i wrong?
Thnaks for help
Beta Was this translation helpful? Give feedback.
All reactions