Multi sensor how to change basic script
-
Hi there
can i make a multi arduno with 2 sensors? To monitor my power and water usage
the example @ the website is for 1 if i put the other sensor on other pin and copy script and change the pin number and put the 2 script after ichother wil that work?Greetz
BigDog
-
It is possible, but you have to 'merge' the code from two scripts. Only one 'void setup()' , only one 'void loop()' , etc.
Use multiple gw.present( x , y ) where x = sensor number and Y = sensor type.
You are only limited by the memory available in arduino, and number if IO pins
-
1 out of 3
Suggested Topics
-
Vera Gateway Versions
Troubleshooting • 29 Mar 2014, 19:59 • karenbobiv 30 Mar 2014, 07:20 -
Questions about an old setup
Domoticz • 4 May 2022, 02:55 • dbemowsk 9 May 2022, 17:30 -
eventsystem: problem writing file
Domoticz • 27 Feb 2022, 00:11 • Feliw05 27 Feb 2022, 17:50 -
Roller shutter(s_cover) on Domoticz
Domoticz • 5 Aug 2019, 08:43 • Tmaster 21 Jun 2022, 20:48 -
Calculate Delta T of two temperature sensors with lua
Domoticz • 5 Oct 2022, 10:06 • Mela 5 Oct 2022, 10:06