by FACE » Thu Jan 23, 2014 11:04 am
There is in fact a section here that covered the #10 conflict. Now that we have an understanding about the jumpers,
I don't see any "tweaking" that could be done with them to further my troubleshooting.
From what we've done, I know that by relay board is functioning properly. With the sample code that you gave me,
I was able to run the code in a loop and watch the relay open/close about every 30 seconds.
Correct me if I'm wrong, but I believe my next step is to use your INO file and put the #2 value in like this:
//static const uint8_t relayPins[] = { 9 }; // single device at pin #9
static uint8_t relayPins[] = { 2 }; // select if using DFRobot RelayShield
//static uint8_t relayPins[] = { 2, 3 }; // two devices at pins #2 and #3
//static uint8_t relayPins[] = { 2, 3, 4, ... }; // even more devices at pins #2, #3, #4, etc ...
// status contact should be connected to these analog input pins (anologRead).
// Adjust to match the number of devices you have hooked up (examples provided below in comment) ...
//static const uint8_t statusPins[] = { 3 }; // single device at pin #3
static uint8_t statusPins[] = { 2 }; // select if using DFRobot RelayShield
//static uint8_t statusPins[] = { 2, 3 }; // two devices at pins #2 and #3
//static uint8_t statusPins[] = { 2, 3, 4, ... }; // even more devices at pins #2, #3, #4, etc ...
I would then compile it and upload it to the Arduino.
Would you agree that this is my next step or should I be checking or looking at something else before hand?
I don't want to jump the gun again and cause a bunch of problems like last time.