Add an Adafruit SD Card Logger and LCD Display to ZED-F9P
Channel: Sky Horse Tech
Date: 2020-06-20

Supplemental post: https://skyhorsetech.com/recent-projects/how-to-add-sd-card-logger-to-zed-f9p/

Here we show the steps we took in adding an Adafruit Feather M0 SD logger to our existing ZED-F9P rover. This allows us to log our uBlox RAWX messages to an SD card and ultimately create navigation and observation RINEX files in RTKLIB for PPK processing. Previously we were using a logging app on our bluetooth connected smart device, however dropped connections caused our observation files to have incomplete data.

Update #1: Please see the Materials List at the bottom of this post for a complete list of items needed to complete this project.
Update #2: Check out our latest article on how to make an even smaller version using the same components, swapping out the LCD screen for OLED, and can be used with Pixhawk drone systems (optional): https://skyhorsetech.com/recent-projects/how-to-add-rtk-to-pixhawk-uas/ We will make a separate video for that build. Stay tuned. 

We leveraged the original code that Paul Clark (PaulZC) created for linking the Feather M0 logger to the F9P and we added these additional components:
 - LCD display that shows real-time status info for the logger
 - Updated code to restart the logger when external button pushed, this will close existing log file and open/start a new file
 - New Arduino sketch (RAWX_Logger_F9P_I2C_LCD.ino) to facilitate the LCD display and button reaction 
 - Updated wiring diagram (see Hardware.md file in our fork below)

PaulZC's original code: https://github.com/PaulZC/F9P_RAWX_Logger
Our updated Arduino code/fork: https://github.com/SkyHorseTech/F9P_RAWX_Logger
RTKLIBExplorer for RTKLIB code: https://rtklibexplorer.wordpress.com/category/rtklib/rtkconv/
RTKLIBExplorer RTKLIB download for ZED-F9P: http://rtkexplorer.com/downloads/rtklib-code/
CORS (US;free) for base corrections data (PPK): https://geodesy.noaa.gov/CORS/

Materials list for this project (note we will receive a small pct of sales if you buy through Amazon links below, that will go directly back into future projects): 
SparkFun ZED-F9P SMA version*: https://amzn.to/3iFAc9p
  *For non-SMA (older) version of F9P get U.fl to SMA connector: https://amzn.to/3hEOSVd
SparkFun Bluetooth module: https://amzn.to/3hDHiKj
Header kit for connecting wires to F9P: https://amzn.to/3iEK4R1
SparkFun 20x4 SerLCD - RGB Backlight (Qwiic): https://amzn.to/33Mc7cb
Qwiic Cable Kit: https://amzn.to/2SNfr0u
Adafruit SD card logger: https://amzn.to/3iPcJlD
Adafruit headers kit: https://amzn.to/3dilIKK
Waterproof case with mounting plate (size optional): https://amzn.to/2RM51xH
Waterproof wire connectors: https://amzn.to/32z2mNU
Waterproof USB connector: https://amzn.to/33DORLY
Momentary push buttons: https://amzn.to/2SNfx8m
Optional items:
Survey pole: https://amzn.to/3iJELjm
V-mount adapter: https://amzn.to/32zREGR
V-mount male clip: https://amzn.to/3c4qZFg
Pole clamps for Blind Spot and phone bracket (get 2): https://amzn.to/35HThnP
Blind Spot Power Junkie port: https://amzn.to/3c4s3sE
Batteries for Blind Spot (w/charger): https://amzn.to/3iEjkQr
Phone bracket with 1/4" screw: https://amzn.to/3ktBBQT
Wire for rover and base: https://amzn.to/3iER1kO
Harxon higher end GPS500 or GPS1000 antenna (see Harxon website or eBay)
  or use simple GNSS antenna for initial setup: https://amzn.to/3c6R5HV

Watch the original video in this series for the initial setup of base and rover. We also write about it here: https://skyhorsetech.com/recent-projects/how-to-build-an-rtk-base-and-rover/

Follow us on... 
   Twitter: https://twitter.com/SkyHorseTech
   Facebook: https://www.facebook.com/skyhorsetech
   Website: https://skyhorsetech.com/