Realization

     

Realization of a drone tracking system 


What is GPS ?

The Global Positioning System (GPS) is a navigation system using satellites, a receiver and algorithms to synchronize location, velocity and time data for air, sea and land travel .




1/ Hardware used :

NEO-6M GPS module :

The NEO-6M GPS module has four pins: VCC, RX, TX, and GND. The module communicates with the stm32 via serial communication using the TX and RX pins ,So , the GPS module transmits the data via the UART* in the NMEA *format . 



 Nucleo l476rg :


           


2/ CubeMX Setup  :


* UART configuration :

the UART Baud Rate is configured at 9600 bps. This is according to the Neo 6M .


Eanable the  UART interrupt  .
**the STM32 Nested Vectored Interrupt Controller ( NVIC) : https://embededsystem12.blogspot.com/2022/10/stm32-interrupts-tutorial-nvic-exti.html

2/ the Code :    


  • Copy the library header and source file to the appropriate project directories (Inc, Src) .
  • Config the GPS module UART  on gps.h file
  • In the head file of the project (main.c), include the header file
  • add UART call back
  • add in main function section for initial initialization of the GPS module NEO-6M






**To get the full code , click on the link below github link : https://github.com/Belkacem-roukaya/stm32GPS/tree/main

N.B :

For more information about  UART* : https://embededstm32.blogspot.com/2022/10/uart.html


For more information about  GPS* : https://gpsintership22.blogspot.com/2022/10/gps.html
 


Commentaires