Skip to content
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

GPS: power off on EINT #1

Open
gauteh opened this issue May 23, 2024 · 30 comments
Open

GPS: power off on EINT #1

gauteh opened this issue May 23, 2024 · 30 comments

Comments

@gauteh
Copy link
Owner Author

gauteh commented Jun 3, 2024

d0eb11e

Now sleeping for 1 hour, hope that works. Should it sleep for longer?

@jerabaul29
Copy link
Collaborator

I guess it depends on the GPS measurement frequency you want to use? :)

@gauteh
Copy link
Owner Author

gauteh commented Jun 3, 2024

  • remember to remove the line that sets gpsEN HIGH after sleep.

gauteh added a commit that referenced this issue Jun 4, 2024
@gauteh gauteh mentioned this issue Aug 6, 2024
@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

I'm seeing around 24 mA @ 5V when logging IMU. Seems a bit high to me? I guess I will see the low when the IMU is done sampling and it goes to sleep, would be helpful if the IMU sample window could be decreased to e.g. 30 seconds for in the test-mode.

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

content: 0x47 | 0x1 | 0x46 | 0x5E | 0x16 | 0xB2 | 0x66 | 0xAB | 0xCF | 0xFD | 0x23 | 0x8E | 0x83 | 0x2D | 0x3 | 0x45 |
Rock7 format content: 4701465E16B266ABCFFD238E832D0345
--------------------
turn gnss off
putting gps to sleep.
Attempting to put gps to sleep
gnss wire started
success starting GNSS
gps sleeping...
gps sleeping.
success.
turn iridium on
turn gnss off
putting gps to sleep.
Attempting to put gps to sleep
gnss wire started
success starting GNSS
gps sleeping...
gps sleeping.
success.
Calling internalBegin
IridiumSBD::beginSerialPort
>> AT
Waiting for response OK

@jerabaul29
Copy link
Collaborator

Yes, this is surprisingly high, these are the values I was getting (from the OMB paper):

Screenshot from 2024-08-06 14-37-16

I.e. with the MCU on in boost mode + the IMU, all the rest off (no power to iridium not to gps), I would expect at most around 8mA (maybe even a bit less, since there was quite a bit of extra stuff on the artemis board).

@jerabaul29
Copy link
Collaborator

can it be that the gps / iridium modem are not really sleeping and taking quite a bit of power?

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

Yes, that is what I'm trying to get them to do :)

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

Pretty sure it's the GPS, because unplugging the LiIon on the rockblock does not change the current draw.

@jerabaul29
Copy link
Collaborator

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

the change is to hard code taking just a few imu measurements:

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/129916e1e05f97facc37a9b5c94781a2f2e4fec0/legacy_firmware/firmware/functionality_test_mode/wave_analyzer.cpp#L62

Thanks, I have to do this, since lots of ports and pins are changed from original OMB.

@jerabaul29
Copy link
Collaborator

ok - not sure how well the sleep gnss call works, since on the OMB I just "brutally" turn the GNSS on and off by using the provided mosfet - so I never really had a need for checking if / how well the gnss sleep mode works

@jerabaul29
Copy link
Collaborator

curious: if you unplug both the gnss and the iridiu, do you get down when logging the imu to O(8mA) at most? :)

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

Can't unplug the GNSS, its mounted on board.

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

Are the measurements above with the power led on? I'm at 19-20 mA when the IMU is logging now.

@jerabaul29
Copy link
Collaborator

the measurements above should be with no LEDs

@jerabaul29
Copy link
Collaborator

this may be a bit more hacky, but do you have the possibility to cut the GNSS power track "just for now" and put a jumper back on it for later on, to test if it is the GNSS using power?

@jerabaul29
Copy link
Collaborator

btw, you mention that you are @ 5V - the values I give were @ 3.3 V

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

I think that will destroy the board, I should probably just try this: https://github.com/sparkfun/SparkFun_u-blox_GNSS_Arduino_Library/blob/main/examples/Example22_PowerOff/Example22_PowerOff.ino

@jerabaul29
Copy link
Collaborator

ok! :)

one more thing: can it be a power leak somewhere else? some floating / non floating pins on the MCU, other cross talks etc? I would expect that these effects show up only when going to the uA domain, but never know. the OMB has quite a few of these "dark magics settings" set up in

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/129916e1e05f97facc37a9b5c94781a2f2e4fec0/legacy_firmware/firmware/functionality_test_mode/board_control.cpp#L24-L36

and is setting quite a few of these (just copied from SF examples) before sleeping

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/129916e1e05f97facc37a9b5c94781a2f2e4fec0/legacy_firmware/firmware/functionality_test_mode/sleep_manager.cpp#L90-L109

@gauteh
Copy link
Owner Author

gauteh commented Aug 6, 2024

Yes, good point. I can remove the Artemis to test that. There are also some broken artemises, that use much more power.

@jerabaul29
Copy link
Collaborator

can it also be the intrinsic power consumption of the artemis? (you use a nano right? :) ) I do not know how you measure the power draw and if for example the consumption you measure includes the serial to usb converter, if the microphone is off (but that should be quite little power), if there are leds, etc? :)

@gauteh
Copy link
Owner Author

gauteh commented Aug 28, 2024

If this dosen't work we need to add some on/off circuit.

@jerabaul29
Copy link
Collaborator

Ok! Yes, SF uses a simple mosfet, it should be possible to just copy their setup :) .

@gauteh
Copy link
Owner Author

gauteh commented Aug 29, 2024

Maybe @zerblatt007 has the chance to help us set up the MOSFET circuit, here's the schematic from SparkFun: https://cdn.sparkfun.com/assets/f/4/5/3/4/SparkFun_Artemis_Global_Tracker_SCHEMATIC_v10.pdf ?

@zerblatt007
Copy link
Collaborator

zerblatt007 commented Aug 30, 2024 via email

@zerblatt007
Copy link
Collaborator

zerblatt007 commented Aug 30, 2024 via email

@gauteh
Copy link
Owner Author

gauteh commented Aug 30, 2024

Nice. Adding the artemis module directly (with USB to serial) would be next on the wishlist ! (should have a JTAG header holes just in case as well).

@gauteh gauteh mentioned this issue Sep 10, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants