This example project demonstrates how to interface NEO-6M GPS or any similar GPS module that outputs GPS data in NMEA format with Vega Aries using CASP.

Target

Aries v2.0 development board is used in this project. However, any supported micro-controller board can be used.

Pre-Requisites

  • CASP software is installed on the host PC
  • Vega Aries BSP is installed.
  • The project files are located at CASP installed directory ‘CASP/support/examples/vega_aries_examples/hw_interface/10_gps’. These are also available for download at this link.

Connection Diagram

NEO-6M GPS module is connected to the target board as shown in the circuit diagram. A model is developed to communicate with the GPS module and measure some of the parameters such as time in hours, minutes and seconds and location in latitude and longitude. The on-board LED blinks steadily if the GPS module position is locked. The measured values are sent to the USB serial port for viewing on the host PC. User can see the measured data from the ‘Configure Simulation Hardware’ interface window by clicking on Simulation->Configure Simulation IO menu item from the CASP main tool bar.

Model

Procedure

  • Connect the peripherals as shown in above connection diagram and connect the target board to the host PC.
  • Launch CASP and open the downloaded project.
  • Click ‘Setup Simulation’ to open a dialog box.
  • Select ‘Target Programmer’ to ‘Programmer0’ to upload the program to RAM or ‘Programmer1’ to upload the program to flash memory of the target board.
  • Set the ‘Target Programmer Port’ to which the board is connected.
  • Save and Close the dialog box.
  • Click Run button to build and program the board.
  • The measured values are sent to the USB serial port for viewing on the host PC. User can see the measured data from the ‘Configure Simulation Hardware’ interface window by clicking on Simulation->Configure Simulation IO menu item from the CASP main tool bar as shown in below figure.

Related Links