Open IOrtegAmp opened 4 years ago
Just to double-check: are you actually using the TFmini Plus? The code I wrote is for the older TFmini I2C, not for the TFmini Plus.
A quick look at the datasheet for the TFmini Plus suggests that it uses a different set of commands, and returns the data in a different format, so my code is not going to be directly applicable. If you want to, you could probably modify it to work, though.
It looks like you also first need to switch the sensor from serial into I2C mode to get it working, but that might depend on where you bought it (and which specific model).
Thanks for your help providing the code, was struggling reading it on a Rpi 4, but sometimes I got wrong measures, aiming to the same object the distance can trigger from 90 to 600, 300, etc, and the strength signal remains the same, what can cause it?