Skip to content

feature request: log DS18B20 temperature sensors #204

Description

@jerabaul29

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions