-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library work well with TF mini but error for TF mini Plus #9
Comments
That's interesting... can you point me to a datasheet for the TF mini plus? |
http://en.benewake.com/res/wuliu/docs/15487893679657874SJ-GU-TFmini%20Plus-01-A02-Datasheet_EN.pdf here is the page for datasheet download |
Here's a datasheet from Sparkfun: https://cdn.sparkfun.com/assets/2/b/0/3/8/TFmini_Plus-01-A02-Datasheet_EN.pdf It looks like it's using very different commands than the TF mini. Feel free to update the driver (I would make a second class, TFMiniPlus). Or if someone sends one my way, I can try to do this update in between things. |
thank Peter, 204 cm sigstr: 1354 |
I notice that no matter the output distance is correct or not, checksum byte comparison will always be different. checksum : checksumByte |
I found the cause that make checksum error. // Store running checksum code in file TFmini.cpp Line No. 140 // Store running checksum |
Thanks thats worked for me to. |
In addition to Ratthanin's check sum change, I found I had to change takeMeasurement() also. From uint16_t dist = (frame[1] << 8) + frame[0]; To uint16_t dist = (frame[1] << 7) + frame[0]; |
my controller is Arduino Pro mini
the library works well with TFmini model
36 cm sigstr: 119
36 cm sigstr: 120
36 cm sigstr: 120
36 cm sigstr: 119
36 cm sigstr: 120
but when I connect to TFmini plus (a model come with IP56 enclosure)
the error occurred repeatly.
Last error:
ERROR_SERIAL_BADCHECKSUM
65535 cm sigstr: 65535
Remark: TFmini plus work well with Benewake TF test software
The text was updated successfully, but these errors were encountered: