Pressure sensor added

master
marcel 12 months ago
parent 2674dba521
commit 761ff1c5f3
  1. 13
      CHANGELOG.md
  2. 6
      README.md
  3. BIN
      hardware/ds-15901_interface/ds-15901_interface-backups/ds-15901_interface-2024-01-04_184412.zip
  4. 481
      hardware/ds-15901_interface/ds-15901_interface.kicad_sch
  5. BIN
      hardware/ds-15901_interface/ds-15901_interface.pdf
  6. BIN
      test_software/__pycache__/epever_control.cpython-36.pyc
  7. 2
      test_software/epever_control.py

@ -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

File diff suppressed because it is too large Load Diff

@ -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)

Loading…
Cancel
Save