meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:rp2040_eth_modul_bme680_modbus [2026/05/12 18:58] – created vamsancode:rp2040_eth_modul_bme680_modbus [2026/05/12 21:04] (current) vamsan
Line 1: Line 1:
-====== lamaPLC: RP2040_ETH_Modul: Read BME 680 sensor data and store in Modbus input registers  ====== +====== lamaPLC: RP2040_ETH_Modul: Read BME 680/688 sensor data and store in Modbus input registers  ====== 
-The program receives and analyses incoming TCP Modbus telegrams, but does not respond.+The program reads the following data from the [[sensor:bmp_bme|BME680 sensor]] and displays it in the Modbus input registers: 
 +  * Temperature: Provides ambient temperature readings. 
 +  * Humidity: Measures relative humidity. 
 +  * Barometric Pressure: Can be used to calculate altitude or track weather changes. 
 +  * Gas (VOC): Features a heated metal-oxide sensor that detects Volatile Organic Compounds (VOCs) to estimate indoor air quality. 
 + 
 +The program is also suitable for reading the **BME688 sensor**.
  
 <WRAP center round important 100%> <WRAP center round important 100%>
Line 6: Line 12:
  
 //uart1 = UART(1, baudrate=115200, tx=Pin(20), rx=Pin(21), timeout=50)// //uart1 = UART(1, baudrate=115200, tx=Pin(20), rx=Pin(21), timeout=50)//
 +
 +Required library: https://github.com/robert-hh/BME680-Micropython/blob/master/bme680.py
 </WRAP> </WRAP>