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

feature request: log DS18B20 temperature sensors #204

Open
jerabaul29 opened this issue Dec 4, 2024 · 1 comment
Open

feature request: log DS18B20 temperature sensors #204

jerabaul29 opened this issue Dec 4, 2024 · 1 comment

Comments

@jerabaul29
Copy link

feature request for DS18B20

DS18B20 are convenient small temperature sensors that are sold by SF: https://www.sparkfun.com/products/11050 . I (and several colleagues) use a lot of them, and it would be convenient if these could be logged automatically by the OLA default firmware.

It would be great to be able to:

  • over serial, set up DS18B20 logging, providing over serial the ID of the pin used for communications, setting the sample rate, etc
  • get in the SD card file the periodically logged DS18B20 data

it would be great to support an arbitrary number if DS18B20 if possible (we often log 4 to 10 of these, but we have plan to log maybe up to 30)

example of use by other project using the same ambiq MCU

The DS18B20 can "easily" be logged by the Ambiq chip; for example, the OpenMetBuoy logs several of these; note that on the core v1, this requested using a fixed OneWire library, provided by @paulvha :

https://github.com/paulvha/apollo3/tree/master/OneWire_on_uart
https://github.com/paulvha/apollo3/blob/master/OneWire_on_uart/1-wire_uart.odt

not sure how this looks like on the core v2.

use in OMB, that uses the Artemis Global Tracker:

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/main/legacy_firmware/firmware/standard_gps_waves_drifter/thermistors_manager.cpp

in particular:

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/0e8607db8061866b2f30f4a3e185a25b359a920a/legacy_firmware/firmware/standard_gps_waves_drifter/thermistors_manager.cpp#L195-L242

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/0e8607db8061866b2f30f4a3e185a25b359a920a/legacy_firmware/firmware/standard_gps_waves_drifter/thermistors_manager.cpp#L268-L276

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/0e8607db8061866b2f30f4a3e185a25b359a920a/legacy_firmware/firmware/standard_gps_waves_drifter/thermistors_manager.cpp#L294-L358

@PaulZC
Copy link
Collaborator

PaulZC commented Jan 7, 2025

Hi JR (@jerabaul29 ),

(Apologies - this came in while I was away on holiday.)

This would be a nice feature to have. I'm happy to leave this request open in case anyone has time to work on it.

Best wishes,
Paul

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