Hi there, for a project i would like to meaure the distance in cm with the Grove - 80cm Infrared Proximity Sensor which thought should be straight forward since it is a sensor for distance measunring. But i din`t find a code that works for Python / Raspberry Pi with the GrovePi.
Can someone help out ?
Hi there,
You can easily adapt this simple code to python,
Check out this Video
and thereโ alink to working code.
HTH
GL PJ
If you need smaller byte size Chunks this code example would be a good one to emulate.
Ready to REALLY get going then This one is What I used to test one.
Thank you so much for this, looks exactly like i was looking for.
Only thing is: The library is not a python lib, i might be able to convert with chat gpt the skretch code to python. But what to do with the library?
I am a bloody beginner as you see a reply would be much appreciated.