Greetings everyone. I have an Arduino Uno R3 module, ESP8266-01 WiFi chip, a DHT11(Temperature-Humidity sensor) and an HC-SR04(ultrasonic distance sensor). I also have a distant cloud server. I want to collect the sensor data and send them to my cloud server using ESP8266 periodically. Is it possible with my current hardware? Using Arduino IDE, I was able to see my sensor data on serial console using the basic codes that are in the sensor manuals. The problem is I can not get my ESP working. I have tried various codes, connections and combinations. I can not even work the basic AT OK command. What I'm trying is much more complicated than connecting my ESP to an access point and I'm not even sure if that's possible with my current hardware. Can you please guide me?
P.S.: Recently, I also bought a NodeMCU V3 CP2102 module and it will arrive by saturday.
Start by posting a schematic of your project. A photo of a hand drawn circuit is good enough, but please don't post a photo of the project itself as they are seldom of any use.
3V3 pin of ESP -->3V3 pin of Arduino
RX pin of ESP-->RX pin of Arduino
EN pin of ESP-->3V3 pin of Arduino
TX pin of ESP-->TX pin of Arduino
GND pin of ESP-->GND pin of Arduino
I have tried many different combinations as well. In Arduino IDE, I'm trying to upload an empty sketch but I'm not even sure if I set my ESP to programming mode. Because I believe that's what I should do as soon as I'm done with this AT->OK command. In short, I really don't know anything about ESP.
let's start simple.
if you wire RX to RX and TX to TX then you connected the esp8266 to the Uno's USB chip
RX to TX (because the USB chip is already wired RX to TX). so now the ATmega MCU on Uno is just a bystander and you can communicate with the AT firmware on esp8266 from Serial Monitor. Set 115200 baud and "Both" line ends and enter AT.