Newbie, adding more than one relay to nodemanager
-
I just started using nodemanager. GREAT WORK! Might be a dumb question but how do i add more than one relay to the sketch? I would like to control 4 but only can get one to work. Thanks in advance!
-
Hi @mghaff, just add additional instances of the relay and you can configure them individually. E.g.
#include <sensors/SensorRelay.h> SensorRelay relay1(4); SensorRelay relay2(5); SensorRelay relay3(6); -
Hi @mghaff, just add additional instances of the relay and you can configure them individually. E.g.
#include <sensors/SensorRelay.h> SensorRelay relay1(4); SensorRelay relay2(5); SensorRelay relay3(6); -
Hi @mghaff, just add additional instances of the relay and you can configure them individually. E.g.
#include <sensors/SensorRelay.h> SensorRelay relay1(4); SensorRelay relay2(5); SensorRelay relay3(6);@user2684 Another Question.... Thanks in advance!
Where do i put this to get my relay to invert operation?
// [109] Invert the value to write. E.g. if ON is received, write LOW (default: false)
void setInvertValueToWrite(bool value);And how should it be written.
I tried this.
#include <sensors/SensorRelay.h>
SensorRelay relay1(8);
SensorRelay relay2(5);
SensorRelay relay3(6);
SensorRelay relay4(7);
// [109] Invert the value to write. E.g. if ON is received, write LOW (default: false)
SensorRelay setInvertValueToWrite(true); -
@user2684 Another Question.... Thanks in advance!
Where do i put this to get my relay to invert operation?
// [109] Invert the value to write. E.g. if ON is received, write LOW (default: false)
void setInvertValueToWrite(bool value);And how should it be written.
I tried this.
#include <sensors/SensorRelay.h>
SensorRelay relay1(8);
SensorRelay relay2(5);
SensorRelay relay3(6);
SensorRelay relay4(7);
// [109] Invert the value to write. E.g. if ON is received, write LOW (default: false)
SensorRelay setInvertValueToWrite(true);
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