I'm trying to create a simple puzzle:
There are 3 wires: red, green, and blue.
There are 3 pins: pin 1, pin 2, and pin 3.
I simply want the user to attempt to guess which wires goes into which pin.
When they get the correct combination, I will trigger the phrase "SUCCESS" in the Serial monitor.
IF (Red wire is connected to Pin 2 && Green wire is connected to Pin 1 && Blue wire is connected to Pin 3)
Serial.println("You haven't figured it the right combination yet!)"
This will be incorporated as part of a larger puzzle... Initially I was thinking that the red, green, and blue wires could simply be connected to three digital pins, each with a different PWM signal value which could then be read by the Analog Pins. Unfortunately I can't seem to figure out how to make that work (code wise)...
So basically, is there a way for me to connect to pins on the Arduino (e.g. Digital Pin 2 to Analog Pin A0) and have it read a specific numerical value of some kind? This way, I can assign the Red wire, Green Wire, and Blue wire different numerical values so I know which one is connected.