-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doing some small tests and reporting #17
Comments
I was just about to open an issue. There is a problem with connecting to GPS I think.
|
Thanks for the report, I will look into this :) . |
(just to make sure, you have good GPS reception when using the other sketch?) |
(when you show serial outputs, can you add the timestamps? :) If using the Arduino IDE serial viewer there is an option for showing timestamps; in platformio, I have added an extra parameter to platformio.ini that should enable timestamping, let me know if it does not show up :) ). |
About the GPS problem:
|
(I have pushed a first fix attempt, so will be curious to see how it goes with latest version :) ) |
Yes, I used the main-branch so see whether GPS is working, and it does. I now get the following output, still doesn't seem to grasp the GPS:
However, this time the GPS breakout does seem to have a fix. So during the 'init GPS, get first fix' the LED was blinking with long gaps, so it should have a fix. |
Ok, thanks, I will double check the code. These standby / wake-up routines seem troublesome, interesting. |
Never had so much trouble using a GPS before ^^ . I will try to find some components around me to test. Should have time to look into this over the weekend, I let you know when you can test again. |
I got my hand on a chip thanks to a friend; I really do not understand what happens, it looks like I can receive data from the GPS module just fine, but that I cannot send any data to it; I opened an issue at sparkfun/Arduino_Apollo3#477 . First time I use the Adafruit GPS with the Artemis Redboard, I did not expect this would cause so many troubles :( . |
A possible (ugly) fix: just let the GPS run freely all the time, without trying to switch it between standby not standby etc. That means that it will draw 30mA all the time, instead of going to low power mode when not needed (which is most of the time), so will need much more battery than actually needed. What is the typical deployment time you expect / aim for? |
(note that this may be annoying but is likely not missing critical; the consequence is that with 1 D battery you may get 1 week of autonomy instead of a couple of months, but I guess you can always put 3 or 4 D batteries if needed...) |
Sorry about that. We can always swap back to the I2C GPS from Sparkfun.
What about the EN pin? Or doesn't that work? From the tutorial it reads
like it can be easily turned off. Then can put a coin battery behind GPS to
keep the memory?
…On Fri, 13 Jan 2023 at 22:50, JR ***@***.***> wrote:
(note that this may be annoying but is likely not missing critical; the
consequence is that with 1 D battery you may get 1 week of autonomy instead
of a couple of months, but I guess you can always put 3 or 4 D batteries if
needed...)
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIGDYGM3WKPGFSWVI7DGOTWSE6RVANCNFSM6AAAAAATXICMKM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Aaah, do you have some I2C SF GPS available under your hand? If so that would be much better indeed :) . |
We could use the EN pin, but then you will need to use the battery, so extra work to prepare, one more thing that can go wrong etc. But if you like better keeping the Adafruit GPS and adding the external battery, fine to keep the Adafruit GPS then :) . |
(and will need to add an extra wire and a pull-down I think so that the state is consistent when off :) ). |
We can go back to the I2C SF GPS, it is in the lab, not at home. I'm just a bit turned off with the I2C problems I had. Nothing more frustrating to get a 'GPS not found' message, even though Qwiic cables are used to connect it. I prefer to keep the Adafruit GPS therefore. With pull down you mean have the extra wire also connected to ground with a resistor? |
Ok, when did you have I2C issues? (just curious, the Adafruit GPS is fine to me using the EN pin and the battery :) ) Yes, exactly - using a high R resistor to "fix" the voltage of the EN when no output is provided by the digital control pin. I will have to check regarding the pull ups / down needed - the idea is that if the MCU goes to sleep, there will be no power output on the pin. I think there is already a pull up (so that it is on by default), so we would need a pull down that is stronger (so it is off by default). But I am not sure, I will check tomorrow :) . |
Two months ago or so. It sometimes just can't find the I2C, then disconnecting reconnecting it does find it, but next time it doesn't. Tried different qwiic cables and also tried a second I2C GPS. I think the problem could be anywhere, from the cable to connectors of the controller and GPS. Either way, such robustness issues are a bit difficult to handle especially to cope with in testing phase. Perhaps then can be solved with soldering the pins. I'm not sure if you remember, but I had similar problems with the IMU and qwiic when building the first OMB. When moving the IMU too much while keeping the AGT fixed, it suddenly hangs, suggesting a glitch with I2C. Of course, in the field this is not a problem, as the artemis and sensors move equally, thus the qwiic cables or connections are not being tested that much... |
I have added support for the EN control, and removed the annoyingly not working standby instructions, so it should work now :) . Could you give it a try again, and let me know how it goes (if you can capture the serial output with timestamps and provide in a file that would be great :) ). Note that you will need to add one wire (great if you can add on the schematic :) ) between pin 2 and GPS EN. I think (may change in future) that there is no need for pulldown, but will be checked later on. |
Sorry, late response. I will test today! |
No worries :) |
Output after GPS fix, sleep and on again: 10:17:07.192 > $GPRMC,231708.000,A,3747.9561,S,14457.6844,E,0.00,77.42,190123,,,D46 |
@jvoermans there is still quite a bit to code, but if you have time for a small test today and letting me know how the serial over USB output looks like and how the files on the SD card look like that could be great :) . Will need a GPS reception to work. Of course no hurry, if it does not fit for you to test today another day is fine :) .
The text was updated successfully, but these errors were encountered: