2020-06-04 8:37 AM - last edited on 2025-06-25 1:43 AM by Andrew Neil
Hi Guys,I'm using an STM32F401 board, accompanied an expansion board, and by a VL53L1X (people counter) sensor. It works for 10minutes then the board crashes and the only way to get it working again is by resetting the board.
Hi Guys,
What I'm using
STM32F401 board accompanied by a expansion board (X-Nucleo-53L1A1) and using one VL53L1X (people counter) sensor.
Process
I managed to flash the board and use the counter with success.
To view the board USART messages I use the mini USB port on the nucleo board.
To see the serial message, I have a raspberry pi and through port ttyACM0 I can view the message from the board at a 460800 baud rate.
The message looks like this: 0,0,0,0 - with the fields being zone, range status, distance, people counter.
Code
Here is my python code:
import serial import time while 1: ser=serial.Serial('/dev/ttyACM0',460800) readedText = ser.readline() print (str(readedText)) time.sleep(0.1)
Issue
I've been testing for around 2 weeks now, everything worked great, I even left the program running for 4 days straight and it counted people coming in and out of the room without and issue.
Yesterday, after shutting off the board, I found that the board would only send messages for around 15 minutes, and after, it would simply not send any messages at all. The USART would be open, but no messages would come through.
My question is, why does the board stop sending messages after a 15min-30min. And only works again after resetting the board if it worked fine a while ago.
More Info
Please help...