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

Integrate PHYTOS 31 leaf wetness sensor #58

Closed
jmadden173 opened this issue Apr 5, 2024 · 3 comments · Fixed by #74
Closed

Integrate PHYTOS 31 leaf wetness sensor #58

jmadden173 opened this issue Apr 5, 2024 · 3 comments · Fixed by #74
Assignees
Labels
enhancement New feature or request proto Protobuf related issues stm32 Issues relating to the STM32 MCU

Comments

@jmadden173
Copy link
Contributor

jmadden173 commented Apr 5, 2024

Describe the Enhancement
Read a voltage measurement from the leaf wetness sensor and upload over LoRa to Dirtviz.

Benefits
Add a new sensor to the platform

Possible Drawbacks
N/A

Additional Context
The scope of the work is the following:

  • Measure voltage from the sensor
  • Add protobuf message for leaf wetness sensor
  • Integrate with sensor library to TX measurements

Will need to coordinate with Dirtviz team to add capabilities to display data.

Also @jmadden173 will update the issue with fields required for the leaf wetness sensor. Currently will just be voltage, but maybe some calibration or offset to convert 24 bit ADC reading to 16 bit to save space. It looks like we only need a 12 bit measurement according to the datasheet.

Link to sensor page: https://metergroup.com/products/phytos-31/
Manual: https://library.metergroup.com/Manuals/20434_PHYTOS31_Manual_Web.pdf
^ the sensor page is broken for me so here's the manual if that's the case

Issues #53 #50 are blockers.

@jmadden173 jmadden173 added enhancement New feature or request stm32 Issues relating to the STM32 MCU proto Protobuf related issues labels Apr 5, 2024
@jmadden173
Copy link
Contributor Author

Tagging @cjosephson

Caden is going to take a look at this once a sensor is available (invite to Github is in progress). Depending on progress @jmadden173 or @stevegtaylor will assist as needed.

@jmadden173
Copy link
Contributor Author

I talked with Cristian who's doing the materials aspect of the leaf wetness sensor and it sounds like we should transmit the raw voltage reading and have another field for some future calibrated measurement. I guess both should be doubles after our experience with inconsistent float input parameters?

@jmadden173
Copy link
Contributor Author

@gxjacobs Steve is working on the 58-integrate-phytos-31-leaf-wetness-sensor this Friday, if you have the free time to work it on it merge from that branch in order to not duplicate work.

@jmadden173 jmadden173 linked a pull request Apr 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proto Protobuf related issues stm32 Issues relating to the STM32 MCU
Projects
None yet
3 participants