Using DHT11 + HC-SR04 Ultrasonic sensor and ESP8266 as Wifi


#83

Hello, looks like there are issues with the characters or the
CayenneESP8266Shield.h is not copied to the cayenne libraries folder…


#84

can you give me libary folder CayenneESP8266Shield ?
thankyou


#85

It is already attached to the first topics of this post…


#86

i did add it to arduino. but it is

not work


#87

have you disconnected the RX and TX pins of arduino during the download of
the code?


#88

no. i have just verified in arduino.


#89

you have to disconnect the RX and TX pins to make the download.


#90

how can i do it. can you help me. please


#91

@vuthemanh0507,

Can you confirm that the board you selected in the Arduino IDE is the Uno board and not the ESP. Also, make sure you have the comport selected for the Uno board. Looks like COM5 isn’t it.

Then as @cassio.lucass states, you need to make sure the RX line on your Uno is disconnected from the ESP shield otherwise you have your PC and the ESP fighting over who gets to talk to your Uno.

Next if all that works and your Uno programs, but you are not connected to Cayenne, please confirm that your ESP is programmed with AT firmware and that it is a newer version.

Cheers,

Craig


#92

Is it possible to apply your techniques to the raspberry pi. Specifically, I would like to use the HC-SR04 with the pi and cayenne in a garage door application. I am not aware that cayenne has opened up their interface to allow user added code.

Thanks


#93

@richard hello, of course you can, I dont have the raspberry yet but should arrive soon, all you need to do is to make the logic for the HC-SR04 inside the micro-controller and send the result value to cayenne. But, why do you want to use the raspberry as it is so powerful for such a small application? you could use an arduino nano… or similar…