Seite 1 von 2

#1 Domiq TCP Sensor Library für Arduino

Verfasst: Mo 16. Jul 2018, 12:55
von Andre-sv650
Hallo,

ich habe ein Gartensprinklersystem mit dem Arduino Mega / Ethernet2 modul und Modbus TCP programmiert. Damit kann man bisher nur Relais (Ausgänge) schalten mit Domiq Base, ich werde allerdings es weiter ausbauen mit Temperatursensoren / Feuchte und Lichtsensor.

Wenn Interesse besteht, würde ich das bis Weihnachten verfügbar machen mit Anleitung und source Code. Kann das noch wer gebrauchen?

Gruß

Andre

#2 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Mo 16. Jul 2018, 17:11
von Thomas
Mit Sicherheit kann das wer gebrauchen, nicht nur für DOMIQ !
Das könnte man auch für Symcon benutzen usw...

Aber sprich doch mal Nils direkt an, es gibt da noch interne Hardware Bereiche.

Toll, hier kommt mal wieder was neues. :thumbup:

#3 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Mo 16. Jul 2018, 18:33
von mr_claus
Also ich habe Interesse, hatte mir auch schon einiges überlegt, bin aber noch nicht zur Realisierung gekommen.

Viele Grüße
Claus

#4 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Di 17. Jul 2018, 09:15
von Xtof
Hallo,

würde mich auch interessieren, weil ich bisher mit einem NodeMCU über WLAN ähliches mache (aber nicht mit ModBus).

Grüße

Xtof

#5 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Mi 18. Jul 2018, 15:14
von DOMIQ-Support
Hello:) I'm wondering why use Modbus for such task? Is is required by watering system?

#6 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Mi 18. Jul 2018, 17:40
von Andre-sv650
Hello,

I am using Modbus TCP, because it is an protocoll that is included in domiq base. If there is another protocoll or possibility, please let me know?

Arduino is an open source platform, it can be sold for very small budget (20€ for the arduino uno and 40€ for the mega, these are the original platines, alternative platines are sold for less than 10€). The sensors and relais are also very cheep. I bought a 8 relay module for 5€ and a outside temperatur sensor for 2€.

It is so cheap and with the wide range of sensors perfectly for almost every project.

I will setup the source code on github, but it will last at least 3 month.

#7 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Do 19. Jul 2018, 08:47
von DOMIQ-Support
Base offers integration over TCP port 4224. It's described in this tutorial: http://domiq.eu/tutorials/tu_0023. This kind of integration is when you need to send something to Base. In case you need to send something from Base over TCP you can just use the TCP.send command.

#8 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Mi 25. Jul 2018, 21:58
von Andre-sv650
Thank you for your response,

i will check, if this is an alternative. But modbus TCP is currently working perfect, which advantages are there for the protocol over port 2424?

Andre

#9 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Do 26. Jul 2018, 09:59
von DOMIQ-Support
If Modbus TCP suits your needs in this project, then OK :) In some implementations Modbus isn't just fast enough.

#10 Re: Domiq und Arduino mit Modbus TCP

Verfasst: Mi 6. Mär 2019, 21:32
von Andre-sv650
Hallo,

also ich hatte eine Arduino Modbus TCP library fast fertig und bin aber umgeschwenkt auf TCP/IP mit Port 2424.

Hier ist der erste Wurf für das Projekt. Was kann man machen:
1. DHT22 auslesen (Temperatur und Feuchtigkeit)
2. Relais Schalten und Zustand in Domiq zurück lesen.

Was kommt als nächstes:
One Wire Temperatursensor (Hatte ich schon mal am laufen, funktioniert aber im Moment nicht).
Hellligkeit
Interrupt (Für Windsensor oder Regensensor)
Bewegungsmelder.
Baumarkt Funksteckdosen.

Hier der link:
https://github.com/Andre-sv650/DomiqTcp ... reElements

Known Bugs:
1. Wenn mehrere Nachrichten direkt nacheinander von Base kommen, dann wird nur die erste Nachricht überprüft.