The GPS Bricklet 2.0 can be used to extend Bricks by the possibility to determine their position via GPS. Additionally it is possible to receive movement (direction and velocity), altitude (altitude and geodial separation), as well as high precise time/date information and PPS signal.
Current values for elevation, azimuth and SNR for each of the GPS and GLONASS satellites can be read out.
The GPS module is optimized to get a fast fix, has a high input sensitivity (-165dBm) and a update rate of 10Hz suitable for drones or the like. Internal interference canceller rejects RF interference from other devices like Bluetooth or Wi-Fi.
A 25 x 25mm active patch antenna with high gain is permanently attached to the bottom side of the Bricklet and connected by a U.FL connector. You can remove the connector and connect your own external antenna.
A CR1025 coin cell battery is also included. It is used as a battery backup for the last satellite position data. With this information a fix can be obtained faster if the power was lost.
Note
Hardware version 2.0 does not work properly with a HAT (Zero) Brick, due to a hardware design flaw on the Bricklet. This flaw is fixed in hardware version 2.1. Existing hardware version 2.0 GPS Bricklets can be successfully connected to a HAT (Zero) Brick using an Isolator Bricklet.
Property | Value |
---|---|
GPS Module Chipset | GlobalTop Firefly X1 |
Sensitivity | -148dBm (acquisition), -165dBm (tracking)* |
Position Accuracy | 3.0m (50% CEP)* |
Time to first Fix | < 35s (without battery), < 1s (with battery)* |
Update Rate | 10Hz |
Dimensions (W x D x H) | 40 x 35 x 12mm (1.57 x 1.38 x 0.47") |
Weight | 20g (with battery and antenna) |
Current Consumption | approx. 73mA |
* datasheet values
The GPS Bricklet 2.0 does not have an internal antenna. An external antenna has to be connected to the U.FL connector.
The connector is short-circuit protected and supplies the antenna with 3.3V/20mA.
A compatible 25 x 25mm patch antenna is included with the Bricklet and attached to the bottom. You can disconnect the U.FL connector and connect your own antenna. A compatible antenna with a long lead is available in the shop.
The antenna should always look upwards, so if you use the antenna that is attached to the bottom you need to mount the Bricklet accordingly.
To test a GPS Bricklet 2.0 you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the GPS Bricklet 2.0 to a Brick with a Bricklet Cable.
If you connect the Brick to the PC over USB, you should see a new tab named "GPS Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. If everything went as expected the Brick Viewer should look as depicted below.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the GPS Bricklet 2.0 and examples in different programming languages.
The green LED labeled "Fix" indicates the status of the position data. The LED blinks during fix acquisition and is turned on if a fix is achieved.
If the GPS module is battery powered the LED is turned off to save power.
A laser-cut case for the GPS Bricklet 2.0 is available.
The assembly is easiest if you follow the following steps:
Below you can see an exploded assembly drawing of the GPS Bricklet 2.0 case:
Hint: There is a protective film on both sides of the plates, you have to remove it before assembly.
The case has a hole for a U.FL to SMA adapter cable that can be used to connect an external SMA antenna instead of the antenna that is glued to the bottom of the Bricklet.
See Programming Interface for a detailed description.
Language | API | Examples | Installation |
---|---|---|---|
C/C++ | API | Examples | Installation |
C/C++ for Microcontrollers | API | Examples | Installation |
C# | API | Examples | Installation |
Delphi/Lazarus | API | Examples | Installation |
Go | API | Examples | Installation |
Java | API | Examples | Installation |
JavaScript | API | Examples | Installation |
LabVIEW | API | Examples | Installation |
Mathematica | API | Examples | Installation |
MATLAB/Octave | API | Examples | Installation |
MQTT | API | Examples | Installation |
openHAB | API | Examples | Installation |
Perl | API | Examples | Installation |
PHP | API | Examples | Installation |
Python | API | Examples | Installation |
Ruby | API | Examples | Installation |
Rust | API | Examples | Installation |
Shell | API | Examples | Installation |
Visual Basic .NET | API | Examples | Installation |
TCP/IP | API | ||
Modbus | API |