Waiting (forever) for board to connect

Hi - I’m using a Uno with a Wi-Fi shield connected to a Macbook Pro running 10.11.6. I’ve installed the IDE, and the Cayenne library. But it just doesn’t want to connect to the network. I’ve triple checked the Auth token, network SSID and password. I just can’t see any reason for the refusal to connect. Any suggestions would be massively welcome - I can’t want to start using Cayenne.

Thanks

Al

What are you seeing in the serial monitor?

Hi Adam - thanks for getting back to me.

Worryingly I am seeing WiFi shield not present. The shield is plugged in and the pwr LED is illuminated.

Perhaps there’s something wrong with it. All four DIL switches are in the off position - is this relevant?

A

can you copy/paste the output here?

[13]esent
[13] WiFi shield not present
[14] WiFi shield not present
[19] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[17] WiFi shield not present
[14] WiFi shield not present
[17] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[15] WiFi shield not present
[17] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[16] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[15] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[15] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[16] WiFi shield not present
[16] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[18] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present
[14] WiFi shield not present

Hmm ok, do you have any other sketches that work? What model wifi shield are you using?

I’m new to Arduino but already had a few sketches I’d written myself work perfectly - the ubiquitous LED flasher, a stepper motor controller and a flame failure detector. These all just running on the Uno. Today is the first time I plugged the Wi-Fi shield in, specifically to get Cayenne up and running (I couldn’t quite make it work through the USB link to the computer). The shield is a Chinese clone - a manufacturer called Wang Tongze out of Beijing if that’s any help.

can you send a link?

https://www.amazon.co.uk/ESP8266-ESP-12E-Wireless-Development-Arduino/dp/B01LGK46M0

Ah, ok. That one is a bit different setup. Follow through this post and let me know if you run in to problems. Also note my post at the bottom:

Thanks Adam - I’ll try this out right now and get back to you…

Hi Adam

Unfortunately that didn’t work. Let me just check that I put the two files in the right place and renamed them correctly. Here’s a grab of my Cayenne directory: http://d.pr/i/dtOt.

I’m thinking I put these in the wrong place when I see the error log below…

Arduino: 1.8.2 (Mac OS X), Board: “Arduino Uno WiFi”

In file included from /Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/CayenneESP8266Shield.h:24:0,
from /Users/alanwoolhouse/Documents/Arduino/Install_sketch/Install_sketch.ino:24:
/Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/BlynkSimpleShieldEsp8266_HardSer.h:27:29: fatal error: ESP8266_HardSer.h: No such file or directory
#include <ESP8266_HardSer.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Uno WiFi.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

extract the .zip one directory up in the libraries folder and you should be good

I have to run right now but I just tried what you suggested and I think we are now good - I’ll let you know. Thank you so much for your help Adam, I truly appreciate it and you’re a star.

Al

1 Like

Hi Adam

Sorry it took a while to get back to you on this and thanks for the help so far. But unfortunately we are not yet good…

Here’s the error message when I attempt to upload. It’s clear that I have files in the wrong place but I just can’t work out where which files need to be to satisfy Arduino. I’m tempted to buy an Uno that isn’t “a different one” so that I can just follow the conventional instructions…

Arduino: 1.8.2 (Mac OS X), Board: “Arduino Uno WiFi”

In file included from /Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/CayenneESP8266Shield.h:24:0,
from /Users/alanwoolhouse/Documents/Arduino/Install_sketch/Install_sketch.ino:24:
/Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/BlynkSimpleShieldEsp8266_HardSer.h:27:29: fatal error: ESP8266_HardSer.h: No such file or directory
#include <ESP8266_HardSer.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Uno WiFi.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

And here is the file structure: http://d.pr/i/4DBz.

Al

I’m not sure where I downloaded it from originally, but I think I have the missing file from your compilation on my computer. The forum won’t let me attach a .zip so here is a Dropbox link: Dropbox - ESP8266HardwareSerial.zip - Simplify your life

Also, I’d make sure you have the correct board selected. The Arduino UNO WiFi is a different beast than using an Arduino UNO with a WiFi shield to connect it.

Hi rslegel - exciting, it’s like progress and everything!

Let me try this and see if I can make my Cayenne future come to life.

Thank you so much for your help, I really appreciate this ecosystem.

Al

Thanks rslegal but (unless I’ve done something inexplicably wrong) these are the same files I had uploaded. No matter, I tried uploading these to the same place in my file/folder structure and, nop, same result. I’m convinced I’m doing something stupid but can’t work out what.

I think I see what’s up here. Once you’ve downloaded the .zip file, you need to add it to the Arduino IDE by selecting Sketch > Include Library > Add .zip library and selecting that .zip file, no matter where you stuck it on your computer. Then the IDE should be able to see it during compilation.

If you’re using CayenneESP8266Shield.zip you’ll need to do the same with that .zip file as well.

Again - I love this community, so much help. Thank you reisegel. I will try this (tomorrow).

Cheers

Al

1 Like