This is what I did. Works well and it is simple.https://github.com/danjperron/rp2040-modbus_exampleRemark: A system based on RS485 for transport is for sure a 'state of the art' solution. But this needs intelligent sensors, which you can develop/build/test/deploy yourself (with e.g. a raspberry pico and an RS485 to serial adapter and the sensors needed ) or buy ready to use.
I also add a small script to log the data on to a text file. Just add it on crontab.
Code:
daniel@benchpi4:~/sensor_log $ tail log_2024_02_11.txt 02/11/24 16:20:0118.2642.636718751009.0517.941.26464843751008.4718.781010.117.4443.72949218751008.7702/11/24 16:21:0118.1942.68457031251009.1317.8841.21777343751008.5218.761010.1317.4443.67968751008.8502/11/24 16:22:0118.242.63183593751009.0917.8741.251008.5518.751010.1317.4143.6777343751008.8802/11/24 16:23:0118.1642.5722656251009.0917.8641.20410156251008.5218.731010.1617.4243.61816406251008.82
Statistics: Posted by danjperron — Sun Feb 11, 2024 9:24 pm