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 ;-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login