Skip to main content
Divesh Dutt
Associate III
April 4, 2021
Question

Control the tfmini incoming data.

  • April 4, 2021
  • 3 replies
  • 1103 views

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.

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    April 4, 2021

    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Divesh Dutt
    Associate III
    April 5, 2021

    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?.

    waclawek.jan
    Super User
    April 6, 2021

    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