Hello, I am a absolute dummy in terms of electronics and have - I think - a small problem.
I have an Arduino 2560 of which all 54 digital channels are used. Now I want this Arduino to be able to receive signals at analog inputs. These signal come from another Arduino.
This is what I want:
I need five different states to be recognized by the 2560. Now I was already starting to solder a CMOS 4066 as a four channel switch and connect them to four different analogue inputs, but then I wondered if it was not possible to do that much easier by using only one analogue channel but measuring the values at the analogue in, which then indicate the states by ranges, like this:
value 0 = state 1 value 1-250 = state 2 value 251-500 = state 3 value 501-750 = state 4 value 751-1023 = state 5
What do I have to do on the sending Arduinos side to achieve this, and what on the receiving Arduinos side?
Thanks a lot for your help!