Multiple relay arduino nano
-
Hi.
I would like to connect an 8 channel relays to arduino nano. I use rs485 communication. Rs485 uses pins 2,8,9. How to make 2,3,4 used? I miss pins.
Thx.
-
@robert Use an array to address all available PINs. As a reference (more complicated, as there are buttons used, too), see @korttoma's example here: https://forum.mysensors.org/topic/4847/multi-button-relay-sketch/33.
-
Hi
Or use a Mcp23017, 16 extra pins and only sda/scl pins from Arduino (I have a functioning sketch for this including reading multiple ds1820 sensors that can be used as a template. Let me know of you want this)
Regards Håkan
-
@hakha4 said in Multiple relay arduino nano:
Hi
Or use a Mcp23017, 16 extra pins and only sda/scl pins from Arduino (I have a functioning sketch for this including reading multiple ds1820 sensors that can be used as a template. Let me know of you want this)
Regards Håkan
ds18x20 need 1 pin for up to 255 sensors(can't remember exactly but more than practical).@robert said in Multiple relay arduino nano:
Hi.
I would like to connect an 8 channel relays to arduino nano. I use rs485 communication. Rs485 uses pins 2,8,9. How to make 2,3,4 used? I miss pins.
Thx.Without knowing what else you're using it's impossible to know how to help you. but you may use A0-A7 as digital outputs too.