TCP remote Water flow/pressure/temperature meter #265
Replies: 9 comments
-
Hi Adrian, I will be glad to help with the plugin. There are also some MQTT plugins that may prove useful. And check out the cli-control plugin that allows using command line commands to communicate with SIP. I have also developed some Arduino modules that use MODBUS over RS-485 serial but have not yet made a plugin for it or published the code. That of course requires a wired connection although I have been using it with standard sprinkler wire rather than the recommended twisted pair. |
Beta Was this translation helpful? Give feedback.
-
Just for discussion. Maybe useful to define and use a simple and open mqtt based protocol, something like tasmota fw. Using this approach the plugin can be generic allowing the development of any kind of sensors with very simple integration. The mqtt broker, if not already present on the lan, can be hosted by the raspi that host SIP. The only constraint remain the use of tcp/ip based communication but IMHO the presence of a WiFi coverage may be an assumption. |
Beta Was this translation helpful? Give feedback.
-
Hi, What i'm doing right now it's a pump controller for wells and tanks The hardware and software for this it's almost ready, but what i'm trying to decide it's what interface to use for communicating with SIP. On the other hand if i go with can bus, which i have more experience with, then i will have to integrate socketCan in SIP https://github.com/linux-can/can-utils. Also in this case it will be easier to wire multiple sensors/modules that are far away from SIP module Regarding SIP interface, i will do it like this, at least for testing, displaying the values from the pump controller in the left side of the page under the clock and date. |
Beta Was this translation helpful? Give feedback.
-
Looks like you have made a good start. I like the fact that you will be using a wired buss. The reason I like using MODBUS over RS-485 is that there is a great Python MODBUS library: It only takes a few lines of code to implement the MODBUS prorocol in Python: There is also a good Arduino library: You can connect the Pi to the serial bus with an inexpensive USB adapter and not use any GPIO pins. I should mention that I am using a 4 wire cable. 2 wires carry the control/data signals and 2 wires carry 12v DC to run the arduino and some other devices such as small valves and sensors. I have used standard sprinkler wire for this but recently started using extension cables for connecting wiring of a trailer to a car/truck, this makes the system more modular and the connectors on the towing cable are weather resistant and polarized winch eliminates the chance of a wrong connection. |
Beta Was this translation helpful? Give feedback.
-
Hi Dan, The reason i was proposed can-bus is that i already have some nodes working with can-bus like this motorized valve: Also, now im having some STM32 boards that im playing with, and on these i have a can-bus bootloader that uses UAVCAN protocol, which it's very useful when updating firmware in remote locations https://uavcan.org/GUI_Tool/Overview/ Maybe we can use both can-bus and MODBUS :) I believe having a bootloader on these node it's a must. |
Beta Was this translation helpful? Give feedback.
-
Cool! |
Beta Was this translation helpful? Give feedback.
-
Hi, I've just finished my pump controller based on STM32F1, it uses UAVCAN over can-bus. |
Beta Was this translation helpful? Give feedback.
-
Hello all, After a long pause, i would like to resume work on this project :) |
Beta Was this translation helpful? Give feedback.
-
I'm planning to develop a remote unit based on Arduino and Ethernet communication with SIP.
I believe a modular approach will be better because not all system can be in the same place all the time.
A similar idea was used here with a remote relay board:
https://blog.danman.eu/wifi-enabled-sprinkler-controller/
I can do all the Arduino firmware and hardware but i will need some help on the plugin side.
Adrian.
Beta Was this translation helpful? Give feedback.
All reactions