Code attached as txt file, and libraries are in .log files, please rename the .log into .zip files… if you need help please let me know.
Please remember to remove the TX and RX wires of ESP module from Arduino while upload the code or you will get errors.
IMPORTANT: I have used the Arduino 3.3 power supply for the ESP8266 and the 5V for the sensors just for test purposes, please consider using and external power supply and avoid any damage to your Arduino power supply as the current is very low.
I let this running inside my house… I am waiting for new sensors parts arrive from China, like door magnetic sensor, gas leakage sensor, microphone sensor… I am afraid they will not arrive in time to include the final version of the project into this automation contest, but, I really would like to participate using what I have now in hands… I live in Brazil, how can I submit my projects into this automation contest? Being among the 100 first projects would be already very nice…
I will take some pictures and show how everything is connected, about Cayenne triggers and alerts I have an example, next week I will travel to Europe and I will adjust this Ultrasonic sensor on the main door of my apartament, if the distance is below the limit I set, should receive an SMS or e-mail, like and alarm, so I know if the door was opened… this project can also be powered up usind a 9V battery in case you don’t have an electrical plug near the door.
@cassio.lucass I downloaded the files, and changed it to .zip files. But when I try to open it seems to be unkwon or damaged. I think I am doing this wrong, how do you change the extension?
I am using windows 10, and arduino IDE version 1.6.13 , is it a problem ?
Did you copy the code and downloaded it to you arduino? When you did compile did you get any error messages? You dont need to open the serial monitor in this case, just make sure to have your Network ID, Password and Cayenne Auth code.
How is the ESP8266 LED state? RED led means it is powered up and blue LED should blink randomly that means you have communication with you wifi.
Hi @cassio.lucass, it didn’t work.
I checked if the esp was receiving a IP, I did it by send AT commands through the arduino IDE, and it seems to work.
Doing that, I got a IP address. I also could visualize the ESP as a availabe network in my computer. However it doesn’t connect to anything, looks like the ESP doesn’t got the internet access. Seems to be a problem with my router, how can I solve this?
Are you using the Arduino UNO and connected exactly like the drawing on the top this post? Yes I am using the WiFi Shield on Cayenne connection. If you have everything connected like me, you should have problems to download the program to Arduino without disconnecting the RX and TX between arduino and ESP module, so disconnect just to download.
Yes, I’m using UNO and I connected exactly like the post.
I also have this issue with the RX and TX, but I had already desconnected.
The problem is after that. Cayenne does not connect to my board. I don’t know if I heve to do something else with the ESP before download the code to the Arduino.
When you said: Check on your local Wifi router if ESP Module was recognized and received an IP Address.
What exactly was I supposed to do?
I think the problem can be with my router, because the ESP is not getting Internet access.
The ESP has been set as a hotspot, but I am not able to access Internet through it.