Hello everyone.
As stated in the title, I am pretty much beginner lvl in electronics, but trying to have a go at some ideas I have.
I was aiming to create a Wifi controlled relay, a task that seemed pretty simple at first, but turned out to be surprisingly problematic for me.
I already have the ESP8622-01 WiFi borard, with a matching esp01 relay module and an Arduino UNO R3.
Ideally I was aiming to use only the ESP8622-01 to control the relay via the Internet. Any way to activate the relay for a couple seconds over the web would do.
I tried following a couple tutorials on how to do that, like:
[https://www.instructables.com/id/WiFi-Internet-Controlled-Relays-using-ESP8266-Quic/](http://this one) from instructables or
[https://create.arduino.cc/projecthub/jeffpar0721/add-wifi-to-arduino-uno-663b9e?f=1](http://the other one)
using the Arduiono to flash/program the ESP module.
I tried searching this forum for possible solutions too, but little luck, and I admit - not the greatest deal of effort.
After reading how a PC USB port may not be providing sufficient power, I also tried to feed some external power from a mobile charger - 5v 1A fed into arduino's 5v pin and GND - seems like with no significant effect.
It seems like I am having issues communicating with the ESP. Sometimes I need to reset the board a couple times so I can flash it. Even if I succeed to flash it, that is the furthest I have gone so far, could not connect wit ESplorer to upload lua after flashing NodeMCU, nor could I connect with Arduino IDE after flashing Micro Python. Even to get the mac adress from the ESP it seemed random - resetting the board sometimes gave the response shortly, sometimes it struggled to communicate but managed in the end and other (most) times I would just get a time out. After I got it succesfully running an access point, after connecting with my smartphone I could not get a TCP connection with the board.
I am having some problems troubleshooting the situation, I am getting suspicious of everything, starting from the breadboard and wires ending on the ESP module itself...
Perhaps I am doing something obviously wrong? Or maybe you have any other suggestions for me and my project?
I chose the NodeMCU tutorial to start with, because it seemed most straight forward to me - I would be able to control the relay by simply opening a certain url, but now also my router has changed and I might not be able to forward ports from the Internt to the ESP, can this be solved by going with some kind of Blynk solution?
If these are too basic questions to solve my issue, could you guys please at least point me to some tutorials etc?
Thanks for your time.