Hello every one
I have an ESP8266 Which i have wired with USB to serial converter as follows
ESP8266 USB to serial converter
Tx-------------------->Rx
Rx-------------------->Tx
Vcc-------------------->3.3V
Gnd-------------------->Gnd
GPIO0------------------>Gnd
CH_PD----------------->3.3V
I have used the following program to connect to my wifi network.
void setup(void)
{
pinMode(2, OUTPUT);
Serial.begin(115200);
// Connect to WiFi
WiFi.begin(ssid, password);
}
void loop()
{
if (WiFi.status() == WL_CONNECTED)
{
delay(500);
Serial.println(" Very well Connected");
digitalWrite(2, HIGH); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is active low on the ESP-01)
// delay(1000); // Wait for a second
//digitalWrite(1, HIGH); // Turn the LED off by making the voltage HIGH
delay(10000);
}
else
{
delay(500);
Serial.println(" Not at all Connected");
digitalWrite(2, LOW);
}
}
The above code makes the GPIO2 pin voltage high whenever it comes in contact with my mobile hotspot.
ESP8266 is working very fine when it is attached to the PC as shown in the picture(please see the attachment)
But my objective is to power the ESP8266 from the 3.3V power supply and it should connect to my mobile hotspot as soon as I power up the ESP8266. But when I tried to do so, my ESP8266 is not making a connection with my hotspot.
Please suggest why it is so.