by bobtabin » Wed Jan 07, 2015 10:28 pm
Hello! First, thank you for such a great project! I've just received my DFRobot XBoard Relay board today (replacing my Ethernet + USB & 4 Relay board because the network port got fried). I can get the 2.4 software to engage the relay D7 (NO2/COM2) just fine and the garage door goes up and door great. However, this is where (as in other posters) run into an issue with the sensing pins. I have my door sensor connected to analog pin 3 (A3) and GND (exactly as pictured within your step-by-step guide). I tested the sensor wires that go into the board with a meter and when the door is closed it's grounded, when the door is open, there is no connection--therefore, I know the wires are good. The more I look into it, I noticed in the web browser it shows the following, no matter what the door is at (open or closed). I believe the "statusPin" values 253 and 27 are not correct. I have my iOS app set with D7 and A3 for the app and the app shows an Unknown status for the door (doesn't know if it's open or closed, but it will open and closed it/engage the relay).
<?xml version="1.0"?>
-<myDoorOpener>
<status statusPin="253">Opened</status>
<status statusPin="27">Opened</status>
<challengeToken>Cyber9845</challengeToken>
</myDoorOpener>
Also, by the way, prior to getting 2.4 to compile, within the Arduino software, I had to import each library that came with the 2.4 code you supplied (under the Sketch menu and Import Library).
So I decided to take your advice on another post and go to version 2.3 instead. However, in any attempts to compiling v2.3 I receive the following compilation errors (I tried on two separate computers thinking the v2.4 libraries on the first computer are causing an issue with the 2.3 code):
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Ethernet"
In file included from MyDoorOpener.ino:41:
C:\Users\Bob\Documents\Arduino\libraries\Webduino/WebServer.h: In member function 'int WebServer::read()':
C:\Users\Bob\Documents\Arduino\libraries\Webduino/WebServer.h:647: error: ambiguous overload for 'operator==' in '((WebServer*)this)->WebServer::m_client == 0'
C:\Users\Bob\Documents\Arduino\libraries\Webduino/WebServer.h:647: note: candidates are: operator==(int, int) <built-in>
C:\Program Files (x86)\Arduino\libraries\Ethernet/EthernetClient.h:27: note: virtual bool EthernetClient::operator==(const EthernetClient&)
Therefore, what can I do to resolve this issue? If I resolve the v2.3 compilation issue, will that solve my A3 sensor issue (not detecting the door open/close state)? or if we can correct the v2.4 code to detect the correct statusPin values, will that possible solve my problem?
I was so excited to get this new board (going from two boards stacked with a USB card inserted to a single board) tonight, but I cannot get the full affect of the code/product. I would really appreciate your feedback and suggestions. Thank you very much!
Pictures of my board, wiring, and app config are attached.
On a side note, could I not connect the door sensor to the GND terminal hole that's on the same side as the A3 terminal hole? in your instructions you connected one wire to A3 and the other side of that sensor to the GND on the opposite side of the board (see my pictures too). If I can connect them to the same side of the board, it makes for a cleaner wiring install. Thanks.
Bob
- Attachments
-
- BoardConfig.jpg (374.08 KiB) Viewed 16426 times