Fetching contributors…
Cannot retrieve contributors at this time
82 lines (44 sloc) 1.4 KB

GPS - Sparkfun GP-20U7

When using GPS class with an Arduino (or similar microcontroller), be sure to upload the StandardFirmataPlus firmware to your board.

Breadboard for "GPS - Sparkfun GP-20U7"


Fritzing diagram: docs/breadboard/gps-GP-20U7.fzz


Run this example from the command line with:

node eg/gps-GP-20U7.js
var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
  var gps = new five.GPS({
    pins: {
      rx: 11,
      tx: 10,

  // If latitude, longitude data log it.
  // This will output zero until a valid
  // GPS position is detected.
  gps.on("data", function() {
    console.log("  latitude   : ", this.latitude);
    console.log("  longitude  : ", this.longitude);
    console.log("  altitude   : ", this.altitude);

Learn More



Copyright (c) 2012-2014 Rick Waldron Licensed under the MIT license. Copyright (c) 2015-2018 The Johnny-Five Contributors Licensed under the MIT license.