Meshtastic 02 try to work with sensors

 It's possible to config client with attached sensor, in 2.4 version, there is IIC ones, maybe we can also use serial  function for sensors as well.(Serial Module Configuration)

Currently Supported Sensor Types2.4

SensorI2C AddressData Points
BMP0850x76, 0x77Temperature and barometric pressure
BMP1800x76, 0x77Temperature and barometric pressure
BMP2800x76, 0x77Temperature and barometric pressure
BME2800x76, 0x77Temperature, barometric pressure and humidity
BME6800x76, 0x77Temperature, barometric pressure, humidity and air resistance
MCP98080x18Temperature
INA2600x40, 0x41, 0x43Current and Voltage
INA2190x40, 0x41, 0x43Current and Voltage
INA32210x423-channel Current and Voltage
LPS220x5D, 0x5CBarometric pressure
SHTC30x70Temperature and humidity
SHT310x44Temperature and humidity
PMSA003I0x12Concentration units by size and particle counts by size
PMSA003I0x12Concentration units by size and particle counts by size
DFROBOT_LARK0x42Temperature, barometric pressure, humidity, wind direction, wind speed

These sensors are built in IIC sensor, there is demo video based on rak module.

As I remember there are 2 IIC port on esp32, which one?

base on the file in meshtastic for ttgo lora 32 V2:

https://github.com/meshtastic/firmware/blob/master/variants/tlora_v2/variant.h



it use one IIC, on 21 and 22. same as lora32 2.1 

I use a BMP280, hook up to IIC(GPIO21 as SDA, GPIO22 as SCL)

there are some parameters to set in meshtastic configuration ad telemetry save and reboot.



Data goes through to another node



Now, how I can get these data and present it locally on other device.

Local MQTT may be a solution, or I can get a serial output?


















留言

這個網誌中的熱門文章

Heltec ESP32+OLED+Lora, hardware testing

micro SD card for ESP32, on lolin32 with OLED and heltec 32 lora oled

AIS0. understanding AIS NMEA 0183: How it's coded