Problem faced in Home Automation Project Using Arduino UNO

Hello, I'm Saptadip and i'm working on a project of Home Automation using Arduino UNO(ATmega 328P) and esp 8266 12e. I'm using 5v relay switch to turn ON & OFF the appliance. I'm also using LM1117 voltage regulator to
generate 3.3v for esp 8266 12e. I want to control this modue via adnroid app. I'm facing problem with the appropriate framework for esp 8266 12e and proper flashing method. I have used so many method for flashing including esp framework down loader tool, but nothing has worked. Can anyone help me with this project? I can also upload total details of my work(As it was a failure, details are not attached to this post).

Thank You.

What firmware are you trying to upload to the ESP?

With the ESP8266 you usually have 2 basic choices:

  1. Use the already installed firmware on it (lua interpreter). Then you are limited to using AT commands on it, issued from from your Uno, and transferred over the serial port.
  2. Install the Arduino Core software on it so you can run sketches on it. Here are some instructions (specific to an Adafruit Huzzah, but general enough also) : Using Arduino IDE | Adafruit HUZZAH ESP8266 breakout | Adafruit Learning System

If you go with the second option, you'll be able to control a relay module (module including switching transistor) direct from the ESP8266

Thank you for your response. I have used NodeMCU before. But I was not able to control the reay. Can you please guide me with total procedure of this project with circuit diagram. It will be very helpful. Can I upload sketch to esp via Arduino bord only?

Saptadip:
I have used NodeMCU before. But I was not able to control the reay.

What connection did you used? The NodeMCU is good enough to control the relay, you can follow the connection like that picture

Saptadip:
Can I upload sketch to esp via Arduino bord only?

Of course, you can upload the sketcho to esp8266 by UNO board. But remember to set esp-12e to boot mode (GPIO is low) and take out AVR chip on UNO board.

I had used this circuit diagram for flashing esp 8266 12e and it was a great failure. The circuit you have mentioned in your reply for flashing contains serial bus converter. It will be easy for me to use arduino flashing.

I have followed this link for my project. But it was for ESP 8266 1e. I'm using esp 8266 12e. So that the code was not working.

It will be very kind if you help me with such a blog/video that can totally help me with my project.

Thank You.