I am trying to create an IoT demo for use in schools, makerspaces etc. First my logic:
Arduino Uno - they are really common and “known”, and they have tons of pins so that I can add lots of sensors and actuators.
ESP8266 - the UNO “antenna” is made visible for explanation purposes, rather than a board that has built-in wifi.
Cayenne - desktop and mobile apps, public dashboards
I used the circuit from here: https://www.hackster.io/jeffpar0721/add-wifi-to-arduino-uno-663b9e
I am able to get the ESP to respond correctly to AT commands.
I created a project and added an UNO using esp8266 wifi.
I used the supplied sketch.
Got “‘Serial1’ was not declared in this scope”
The description in the sketch says “This example uses the Serial1 hardware serial pins available on the Mega”.
I then tried to find information on how to modify the sketch to use software serial.
SoftwareSerial DebugSerial(0, 1); // RX, TX
// Set ESP8266 Serial object
#define EspSerial Serial
It compiles and uploads.
Serial says “ESP not responding”