Hi,
First start by making the relay work. This will allow you to open and close the door. At this point,
you will not know if it's open or closed, but you have to work this incrementally. Don't try to run
before walking ...
So, for the relay to work, what you need to do is edit in the code, the following entry:
- Code: Select all
static const uint8_t relayPins[] = { 9 }; // single device at pin #9
//static uint8_t relayPins[] = { 2, 3, 4, 5 }; // 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 ...
Anything that follows // on any line of code gets ignored (it's called a comment) ... So on the above
lines of code, only the first one that says the relay is operated from pin #9 is actually effective.
You need to edit that code to make it match the actual pin # onto which you've
configured the relay that will open and close your door.
You will also need to configure inside the iPhone app, the actual relay pin # to match that
same value you've configured in the Arduino INO code.
Hope these additional details will help you having your setup up and running.
Best regards,