simpleairquality / SimpleAQ-Device

Firmware for SimpleAQ Devices
https://www.simpleaq.org
MIT License
5 stars 0 forks source link

Adafruit I2C GPS is Discontinued #56

Open theGOTOguy opened 11 months ago

theGOTOguy commented 11 months ago

The Adafruit I2C GPS we supported is now discontinued, and the new V3 is USB only.

We will have to:

  1. Redesign our hat to support the new V3 (or whichever GPS we decide to support going forward,)
  2. Update our firmware to automatically select between the legacy and the new USB GPS.
  3. Update our build instructions.

For now, I am going to buy out all of the remaining stock from Digi-Key.

theGOTOguy commented 11 months ago

Update: I am ordering one for testing.

bensonk commented 11 months ago

Well, darn. I'm not sure if USB is the right play, I think maybe we should go to a UART gps instead. It'll probably require about the same amount of nonsense to connect it, and we can get much much cheaper GPS units.

theGOTOguy commented 11 months ago

Sure, link me whatever product you prefer and we can standardize on that instead.

theGOTOguy commented 11 months ago

These may be options for us:

Flashtree BN-180 SparkFun GPS Breakout DFRobot GNSS/GPS

theGOTOguy commented 11 months ago

Dr. Hood wants 20 more units. I'm going to buy a couple more to evaluate.

I do have the new Adafruit USB one, but it's expensive, awfully large, and I agree with @bensonk 's concern that USB isn't the right play for us.

theGOTOguy commented 11 months ago

Ok, I'm going to try the DFRobot GNSS/GPS.

Pros:

Cons:

And a question: Since you can't even buy Adafruit's GPS anymore, is it reasonable to drop support for it? Or should we code in the possibility of different GPS units?

bensonk commented 11 months ago

If we drop support for it, won't all the existing units break?

theGOTOguy commented 11 months ago

If we drop support for the old GPS units, it will not affect existing units unless they update their firmware.

On Tue, Nov 28, 2023, 6:07 PM Benson Kalahar @.***> wrote:

If we drop support for it, won't all the existing units break?

— Reply to this email directly, view it on GitHub https://github.com/simpleairquality/SimpleAQ-Device/issues/56#issuecomment-1830901658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKYP2UYLRLQGWFLCP4LMXDYGZVENAVCNFSM6AAAAAA7PFWS2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZQHEYDCNRVHA . You are receiving this because you were assigned.Message ID: @.***>

theGOTOguy commented 10 months ago

Commit 3a1913e adds prototype support for DFRobot's GPS, while continuing to allow legacy support for the old Adafruit PA1010D.

If it works pending field testing, I like a lot of things to like about the DFRobot GPS.

  1. The lower price.
  2. Doesn't use any non-standard Python libraries.
  3. Also provides altitude and number of satellites used.
  4. Allows multiple modes, separately or in concert: GLONASS, GPS, and BeiDou
  5. No asynchronous processes leading to intermittent data corruption, something we actually saw in the Adafruit one.

In fact: we can even support multiple different GPS units attached at once! The behavior will be a race, but it will work.

theGOTOguy commented 10 months ago

57 Adds support for DFRobot's I2C GPS unit, but I think we're actually going to move to UART GPS support instead.

theGOTOguy commented 10 months ago

Based on the recommendation of @bensonk , I bought a UART GPS: https://www.amazon.com/dp/B078Y4XZN9/?th=1

theGOTOguy commented 9 months ago

This is now done, save for updating build instructions