1

How can I navigate the car with Neo 6m gps with my RPI-4 model-B. I'm receiving the data from gps correctly but how can I get the turn angle form gps data to rotate the steering to get the directions. I have placed a dc motor and motor driver on the steering of car to rotate the steering. but I'm unable to find the way how much I have to rotate the motor using that gps data.

Note: The car will run on constant speed and plane road. The purpose is only to auto-steer the car using the gps data

The Component I already have:

  1. Raspberry pi - 4
  2. Dc motor
  3. Motor driver(bts6760)
  4. Ultra sonic distance sensor

Any other component needed for this?

thanks

1 Answers1

1

One method to achieve this is to use the pynmea2 library to parse the GPS position and get the true_course (the direction the car is heading). Then use the pure pursuit algorithm to work which way your car needs to turn to achieve its desired waypoint.

https://uk.mathworks.com/help/robotics/ug/pure-pursuit-controller.html

CoderMike
  • 7,102
  • 1
  • 11
  • 16