Open ConnorRigby opened 5 years ago
ICP-10111.pdf
The new soil sensor has an ICP-10111 i2c device required to measure temperature and pressure.
New GCODES could look something like F85 P<sensor type> for reading a sensor. and R85 P<sensor type> V<sensor value> for the report from the firmware.
F85 P<sensor type>
R85 P<sensor type> V<sensor value>
Types would be: 0 - temperature 1 - pressure
temperature
pressure
We may also need to add new params for Celsius and Fahrenheit.
SENSOR_TEMPERATURE_UNITS
F22 P224 V0
F85 P0 R85 P0 V20.33
F85 P1 R85 P1 V101.35
I've only lightly tested the sensor but sending 0x68, 0x25 to i2c address 0x63 resulted in 2 bytes for temperature, 4-1 bytes for pressure.
0x68, 0x25
The sensor also exposes calibration values. Maybe we need to implement this as well?
ICP-10111.pdf
The new soil sensor has an ICP-10111 i2c device required to measure temperature and pressure.
New GCODES could look something like
F85 P<sensor type>
for reading a sensor. andR85 P<sensor type> V<sensor value>
for the report from the firmware.Types would be: 0 -
temperature
1 -pressure
We may also need to add new params for Celsius and Fahrenheit.
SENSOR_TEMPERATURE_UNITS
F22 P224 V0
read temperature ( Celsius )
read pressure ( kpa?)
I've only lightly tested the sensor but sending
0x68, 0x25
to i2c address 0x63 resulted in 2 bytes for temperature, 4-1 bytes for pressure.bonus points
The sensor also exposes calibration values. Maybe we need to implement this as well?