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.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 3 days ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 25 days ago -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 12 days ago -
Combination of networks
General Discussion • 1 Feb 2025, 17:30 • Sniker 4 Feb 2025, 01:02