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

Can't get it to low power during sleep - Samd21 #19

Open
maxholgasson opened this issue Sep 29, 2019 · 2 comments
Open

Can't get it to low power during sleep - Samd21 #19

maxholgasson opened this issue Sep 29, 2019 · 2 comments

Comments

@maxholgasson
Copy link

Hi,
I'm using a ATSAMD21G18A with this library and while sleeping the power consumption doesn't go 2mA. Unfortunatly that's to much for my application. Is there any chance to get it lower with this lib?

@facchinm
Copy link
Contributor

Hi @maxholgasson ,
do you have anything connected to the chip? All pins should be high Z to reach the maximum powersave, so you can skip pin initialization by declaring VERY_LOW_POWER at board level

https://github.com/arduino/ArduinoCore-samd/blob/b0eb400803cadf9727ab38d5b1c2fb46ab8eeec9/cores/arduino/wiring.c#L85-L91

https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt#L219

@maxholgasson
Copy link
Author

Thanks for your answer!!
Yes I had some other parts connected but tried it also with the blank chip, only a crystal attached
I will try your suggestion

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

2 participants