Hello, I bought a TFmini-s Lidar for a project I am working on and am having trouble getting it to work on my Arduino Uno
" not a clone". I am using the sample code from the tfmini library written by Peter Jansen. First thing is I get these error messages before it uploads to my Uno. C:\Users\Eric\Documents\Arduino\libraries\TFMini\src\TFMini.cpp: In member function 'int TFMini::takeMeasurement()':
C:\Users\Eric\Documents\Arduino\libraries\TFMini\src\TFMini.cpp:160:11: warning: unused variable 'reserved' [-Wunused-variable]
uint8_t reserved = frame[4];
^~~~~~~~
C:\Users\Eric\Documents\Arduino\libraries\TFMini\src\TFMini.cpp:161:11: warning: unused variable 'originalSignalQuality' [-Wunused-variable]
uint8_t originalSignalQuality = frame[5];
^~~~~~~~~~~~~~~~~~~~~
Once it uploads I open the serial monitor and the only thing printed out is Initializing...
My hookup includes a bi-directional logic convertor.
Not sure what to do here this is my time using a Lidar sensor. Any help would be great.
Thank you for looking.
I am not sure if I posted in the correct place, if not sorry.
Eric
Your topic has been moved to the Programming section of the forum
Please post your full code using code tags when you do
Note that the messages you posted are warnings and not errors otherwise the code would not upload to the Arduino
The code I am using is an example code in the Adruino library under TFMini. I am not sure anyone is working with this sensor.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.