Pressure sensor added
This commit is contained in:
13
CHANGELOG.md
13
CHANGELOG.md
@@ -13,3 +13,16 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
- First working version. But without pressure sensor. Physical RS485 bus untested, but did test ModBus over TTL serial.
|
||||
|
||||
## [0.2.0] - 2024-01-04
|
||||
|
||||
### Added
|
||||
|
||||
- BMP280 pressure sensor via I2C
|
||||
|
||||
### Fixed
|
||||
|
||||
- Calibrated wind vane (analog input)
|
||||
|
||||
### Changed
|
||||
|
||||
- Heater of humidiy sensor only on when humidity is above 96% (was 80%). When heater is on temperature sensor also heats up, so use temperature sensor of BMP280 when heater is on.
|
||||
|
@@ -14,7 +14,7 @@ Garni RS1 Passive Radiation Shield
|
||||
|
||||
- SparkFun SEN-15901 Weather Station (wind speed, wind direction and rain fall)
|
||||
- Silicon Labs Si7021 (humidity and temperature)
|
||||
- Bosch BMP280 (pressure and temperature)
|
||||
- Bosch BMP280 (pressure)
|
||||
|
||||
## Measurements
|
||||
|
||||
@@ -46,7 +46,7 @@ The measurments and order of the measurements are the same as for APRS weather r
|
||||
| 30006 | Rain last 24 hours | l/m2 * 100 |
|
||||
| 30007 | Rain since midnight | NOT IMPLEMENTED |
|
||||
| 30008 | Humidity | percent * 100 |
|
||||
| 30009 | Barometric pressure | hPa * 100 |
|
||||
| 30009 | Barometric pressure | hPa * 10 |
|
||||
|
||||
The ModBus registers are 16 bit wide. For better precision, some units are scaled by a factor of 100. This way, values with up to two decimal points can be stored as 16 bit integer values. Just divide by 100 to get the floating point values.
|
||||
|
||||
@@ -65,7 +65,7 @@ Libraries are included with the source code of this project
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2023 M.T. Konstapel
|
||||
Copyright (C) 2023, 2024 M.T. Konstapel
|
||||
|
||||
### Software
|
||||
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -92,4 +92,4 @@ class EpeverChargeController(minimalmodbus.Instrument):
|
||||
|
||||
def get_pressure(self):
|
||||
"""Charging mode: 0x0001 = PWM"""
|
||||
return self.retriable_read_register(9, 0, 4)
|
||||
return self.retriable_read_register(9, 1, 4)
|
||||
|
Reference in New Issue
Block a user