Différences entre versions de « ENG-CANSAT-PICO-GPS »
(Page créée avec « {{ENG-CANSAT-PICO-NAV}} == Forewords == x == Installing the GPS library == The GPS-Ultimate is provided with a MicroPython library available on GitHub. You can download… ») |
|||
| Ligne 1 : | Ligne 1 : | ||
{{ENG-CANSAT-PICO-NAV}} | {{ENG-CANSAT-PICO-NAV}} | ||
| + | |||
| + | {{traduction}} | ||
== Forewords == | == Forewords == | ||
| Ligne 18 : | Ligne 20 : | ||
The [https://github.com/mchobby/esp8266-upy/tree/master/gps-ultimate GPS-Ultimate library repository] '''contains examples''' of usage. Do not hesitate to check them! | The [https://github.com/mchobby/esp8266-upy/tree/master/gps-ultimate GPS-Ultimate library repository] '''contains examples''' of usage. Do not hesitate to check them! | ||
| + | |||
| + | == Connect the GPS == | ||
| + | |||
| + | === Cansat GPS === | ||
| + | |||
| + | xxx | ||
| + | |||
| + | === GPS Ultimate Wiring === | ||
| + | |||
| + | xxx | ||
| + | |||
| + | == GPS code == | ||
| + | {{traduction}} | ||
| + | Now we will load and executes the {{fname|simpletest.py}} script. The script must be downloaded from the repository. | ||
| + | |||
| + | {{download-box|'''simpletest''' Python script|https://github.com/mchobby/cansat-belgium-micropython/blob/main/test-gps/simpletest.py}} | ||
| + | |||
| + | The script can be either executed from Thonny -OR- transfered to the Pico and executed directly on the microcontroler. | ||
| + | |||
| + | It will output the messages on the REPL/Shell (over the USB-serial connexion) when the GPS got a fix. | ||
| + | |||
| + | xxx | ||
| + | |||
| + | == GPS test == | ||
| + | :::: indiquer qu'il faut attendre le fix ::: | ||
| + | |||
| + | {{traduction}} | ||
| + | |||
| + | ::::: showing the code and the result :::::: | ||
| + | |||
| + | |||
| + | {{ENG-CANSAT-PICO-TRAILER}} | ||
Version du 21 octobre 2025 à 01:55
Forewords
x
Installing the GPS library
The GPS-Ultimate is provided with a MicroPython library available on GitHub.
You can download and copy the library manually to your board from the Repository.
First, open the repository, then navigate to the file lib/adafruit_gps.py and lib/gps_config.py.
Follow the steps describes in the "BMP280 library installation" to copy the GPS library files to your micropython board.
Once copied, you can also check the proper installation by typing from adafruit_gps import GPS .
The GPS-Ultimate library repository contains examples of usage. Do not hesitate to check them!
Connect the GPS
Cansat GPS
xxx
GPS Ultimate Wiring
xxx
GPS code
Now we will load and executes the simpletest.py script. The script must be downloaded from the repository.
The script can be either executed from Thonny -OR- transfered to the Pico and executed directly on the microcontroler.
It will output the messages on the REPL/Shell (over the USB-serial connexion) when the GPS got a fix.
xxx
GPS test
- indiquer qu'il faut attendre le fix :::
- showing the code and the result ::::::
Written by Meurisse D. for MCHobby
