Waiting (forever) for board to connect


#2

What are you seeing in the serial monitor?


#3

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


#4

can you copy/paste the output here?


#5

[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


#6

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


#7

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.


#8

can you send a link?


#9

#10

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:


#11

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


#12

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.


#13

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


#14

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


#15

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


#16

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: https://www.dropbox.com/s/8w8gjtrlw7nppj7/ESP8266HardwareSerial.zip?dl=0

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.


#17

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


#18

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.


#19

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.


#20

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

Cheers

Al


#21

You need these two files (ESP8266_HardSer.h & ESP8266.cpp) in a folder named “ESP8266HardwareSerial” in the libraries directory. Try and see if that works for ya.