Menu Close

Sensors

2.1) Sensors

Various sensors are supported in MT-FW 4.34v. Not all of them are currently sufficiently described. Therefore, I will try to create a detailed description with the individual parameters for the respective sensors.

2.1.1) Environmental data

The most important common environmental data are: Temperature [°C], relative humidity[%rH], air pressure [hPa]
Further parameters are: Air quality, CO2 [ppm] and others.

Type IO Addr Measured values
BMP280 I²C 76 T* [°C] - P [hPa]
/T=[°C] /P=[hPa]
BLE: ...
BME280 I²C 76 T* [°C] - H [%rH] - P [hPa]
/T=[°C] /H=[%rH] /P=[hPa] /Q=[hPa]
BLE: ...
BME680 I²C 76/77 T [°C] - H [%rH] - P [hPa] - GASres [kΩ]
/T=[°C] /H=[%rH] /P=[hPa] /F=[m] /G=[kΩ] /V=3
BLE: ...
DS18B20 1-W - T [°C]
/O=[°C]
BLE: ...
MCU811 I²C 5A CO2 [ppm]
/C=[ppm] /V=2
BLE: ...
  • Addr in Hex
  • /X = Identifier in POS-Msg (V=2 has priority over V=3)
  • (*) = the temperature is used for internal compensation and is therefore slightly higher than the real environment.
  • MCU811 WAK-GND connection in addition to I²C.

2.1.2) Measured values

Currently, only one INA226(voltage[V]-current[A]-power[W] sensor in the 20A version with an RS=2 [R002]) is officially supported.

Type IO Addr Measured values
INA226 I²C 40 /U=vbus[V], /I=vcurrent[A] /V=5
BLE: ...

2.1.3) Digital I/O MCP23017

An MCP23017 16-pin I/O on I²C Addr=0x20 is supported.
The 16 IOs are identified by A0..A7, B0..B7. Control is possible via terminal, BLE & UDP (web client).

Type IO Addr Measured values as BLE-JSON package
MCP23017 I²C 20 D{„TYP“:“IO“,“MCP23017″:true,“AxOUT“:“00000000″,“AxVAL“:“11111111″, „BxOUT“:“00000000″,“BxVAL“:“11111111″}
Parameter
MCP23017 {true | false} = recognized?
AxOUT "00000000" = A7..A0, "1" = OUTPUT, "0" = INPUT
AxVAL "00000000" = A7..A0, "1" = HIGH, "0" = LOW
BxOUT "00000000" = B7..B0, "1" = OUTPUT, "0" = INPUT
BxVAL "00000000" = B7..B0, "1" = HIGH, "0" = LOW

Commands via terminal & BLE APP:

  • --io delivers a JSON package on BLE
  • --setio clear sets all IOs to INPUT
  • --setio {A0..A7,B0..B7} {in | out} sets the function of the selected IO to INPUT or OUTPUT
  • --setout {A0..A7,B0..B7} {high | low} sets the selected IO to HIGH or LOW

©️ 11.7.2025 by OE3WAS - Wolfgang