cancel
Showing results for 
Search instead for 
Did you mean: 

Control the tfmini incoming data.

Divesh Dutt
Associate II

Hi I am using the tfmini lidar sensor with my nucleo-64 board.but the incoming data is so much fast that i can't control it and is going to error handler.It is a over run.Do anyone has any idea how could i control the burst of data.The link for the lidar sensor is right here https://www.robotshop.com/ca/en/benewake-tfmini-s-micro-lidar-module-uart-12m.html?gclid=CjwKCAjwpKCDBhBPEiwAFgBzj5-y0J80-Uf6w7ffpByIlS7BfydJki6lB6L2HUCM731YIbTIKIZ5kxoCiJEQAvD_BwE

if you want to go through datasheet.

thanks and looking for answer soon.

3 REPLIES 3

Groups of 9 bytes at 115200 baud should be manageable by an STM32 micro-controller.

Use interrupts rather than polling, buffer/queue complete packets.

Look at your architecture, determine how many measurements you need, and perhaps shed stale reports where you'd otherwise get overwhelmed with data.

You should also be able to configure the frame-rate for data reports.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Divesh Dutt
Associate II

I am only interested in 2nd and 3rd byte so my question is am i able to program microcontroller to get only these two bytes?.

There's no hardware enabling to pick individual bytes. As Clive said above, receive complete frames and then use only those bytes you are interested in.

JW