Hi,
Few things need to clarify:1. Is the shield working properly with provided examples like CytronWiFiDemo without installation of sensor?
2. From the pinout you have shown, few questions pop out:
- Is it necessary to use 2 pins for showing LED in range and LED out of range? Normally we can use 1 pin for the indicator. It is in range, LED is turned on, otherwise it is off.
- pin 14 is equivalent to analog pin A0 on CT-UNO. Are you sure you have made correct connection by connecting echo pin to A0? Because normally user will choose to use 2 pins which are near to each other for simpler connection.
(That's why I mentioned that a few photos of hardware setup will come in handy!
)
Suggestions:- testing ultrasonic sensor alone with CT-UNO, i.e. without plug in WiFi shield. This is to make sure your ultrasensor and coding are working properly. By the way you can check for this
tutorial.
- If you have successfully setup the sensor, then you can try adding WiFi shield and integrate WiFi coding into the sketch. As long as you uses pins other than pins for LED and ultrasonic sensor, such as pin 2 and 3, it should be fine.