If I have two Nano's. (Nano1 and Nano2) Every digital and analog pin is being used except D13 and A0 on Nano1 and everything except D2 on Nano2. Is there a way to send data to Nano2 using only one of the remaining pins on Nan01?Then recieve that data on Nano2 to work relays, stepper motors, dc motors etc. Would something like this example work? The question marks aren't part of the code, I just don't know what to do there or if it's even possible.
They would be separate (200 feet apart) and running 2 seperate codes. Why would it be a bad idea? Is it possible though? Has it ever been done before? I could use a Mega but I would have to run another 200 feet of cat5. So my question was can a single digital pin on Nano1 write different values (other than HIGH and LOW) to a single digital pin that can read those values on Nano2? Is there a more simple solution? Do beginners usually send wiring diagrams like this?
If you are 200’ apart you need some form of signal driver at one end and opto coupled input at the receiver .
When you say all the pins does that include the Tx /Rx pins ? These are shared with USB .
You could use a multiplexer to give more I/O , but an easier option is a different processor such as a Mega .
What does the project do ?
By definition a digital pin is either HIGH or LOW.
However, the digital pin could be used to send a pattern of pulses to be decoded by the receiver. We would need a name for this process. We could perhaps call it a serial link because a series of pulses is being sent
Please note that this may not be an original idea on my part
You only need one pin to transmit on N1 and one to receive on N2 plus common ground.
The problem is more the wire length than anything else.
You could try software serial at baud rate 300. If it doesn't work you need to use something even slower.
If you only need to send a command to switch one of your relays, it could be something super simple like 100ms pulse for relay 1, 200ms pulse for relay 2 etc...
And with 200 ft of wire. Actually 400 ft of wire, total. You no longer have a common ground! That is why a bipolar communications scheme is always used. No common ground.