On and off gps ultimate breakout


I am a beginner in using ultimate gps breakout but i want to learn on how to on and off the gps using enable and a push button.

The Adafruit Ultimate GPS breakout has a EN pin. It has a pull-up on the breakout board. If left unconnected (or pulled high), the GPS is turned on, which is the default.

All you need to do is connect the EN pin to an available GPIO. Use:

pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);

to turn the GPS off.

The caveat to this is this is that in SLEEP_MODE_DEEP, GPIO pins are not powered, so the signal will float back high and turn the GPS back on. This is why the Particle AssetTracker shield defaults to off, instead of on.