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

SCD41 Breakout low-power mode not activated #1028

Closed
marc-git opened this issue Nov 17, 2024 · 11 comments
Closed

SCD41 Breakout low-power mode not activated #1028

marc-git opened this issue Nov 17, 2024 · 11 comments

Comments

@marc-git
Copy link

Greeting,
it seems that the SCD-41 should have a low-power version available according to Sensirion documents, which would help a lot when monitoring CO2 from battery-run devices.

Any interest in developing that functionality in the python module?

@Gadgetoid
Copy link
Member

#1029

Grab a build from here and try start_low_power, I haven't been able to test it but it's just calling one of Sensiron's API functions so it should work!

@marc-git
Copy link
Author

@Gadgetoid Thanks a lot! I can see exactly what needs doing but I am not experienced enough to compile an uf2 file yet i.e. my own badger os plus micropython. I did get the hello_world.c file compiled though. Perhaps it isn't so complicated but it will take me time to figure out without a walkthrough

@marc-git
Copy link
Author

ok well that was a can of worms. It seems the Badger UF2 files are not intended to be user-compilable. I've commented on an issue there to encourage that.

@marc-git
Copy link
Author

I got the micropython code to compile no problems though...

@Gadgetoid
Copy link
Member

Ooof, yes, distilling these changes down to Badger OS might be quite tricky since I haven't approached how much damage the Pico SDK 2.0.0 and 2.1.0 releases have done to that codebase yet 😬

I am slowly trying to move away from the GitHub actions workflows to build scripts regular folks (including myself) can follow. That's on the pile of nice-to-have, though, which is buried somewhere underneath all the AAAAAAAAAA.

@Gadgetoid
Copy link
Member

If you grab one of the Badger builds here it should include the new low power mode: pimoroni/badger2040#91

Slowly working toward getting everything merged down, tested and released.

@marc-git
Copy link
Author

mental, literally just had the commits open to see if it had been migrated! Thanks a lot.

@marc-git
Copy link
Author

@Gadgetoid is it your expectation that it will work with the breakout_scd41 python module? I still only see the following:

  • start
  • stop
  • get_temperature_offset
  • init
  • measure
  • ready
  • set_ambient_pressure
  • set_sensor_altitude
  • set_temperature_offset

but they were all there before.

@Gadgetoid
Copy link
Member

There should be a new start_low_power but you'll need the pre-release build from the linked PR.

Will prod it and double check!

@Gadgetoid
Copy link
Member

Gadgetoid commented Jan 16, 2025

Ah yup, I see it too (Or don't, as it were). Apparently I completely failed somewhere, bear with me!

Edit: Second time's a charm: https://github.com/pimoroni/badger2040/actions/runs/12789751616?pr=91

@marc-git
Copy link
Author

thanks! works well now

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