2023-03-13 09:41 AM
Hello, so I have a question, about my problem, thats bothering me for a while now and its about my GPS sensor Neo m8n connected with USART2.
The sensor works well with my laptom connected with programmer via USB to u-center program, showing great values from selected messages from UBX.
When I connect it to my STM32 board with OLED display, It shows weird values, the time is sometimes correct, but mostly not. Values like heading or vertical and horizontal accuracy are showing random numbers, like the GPS never fixes. Its connected to own power supply, so that isnt causing any problems.
EDIT: I highly doubt its some software issue, since the time and date sometimes shows correct values.
Thanks for your help and answers.
2023-03-13 10:52 AM
You wired the NEO-M8N module directly, or via a board?
Needs to be powered properly, diagram what you've connected, and the board you're using.
Common ground?
The NMEA should be ASCII data at 9600 baud. Forward or output that data, and inspect it.
Needs visibility of satellites to work, best to be outside with a clear view of the sky.
Even without a fix the output is typically not random.
Present what's actually coming out better.