ESP8266 standalone usage

Hello every one

I have an ESP8266 Which i have wired with USB to serial converter as follows

ESP8266 USB to serial converter

I have used the following program to connect to my wifi network.

void setup(void)
 pinMode(2, OUTPUT);
  // Connect to WiFi
  WiFi.begin(ssid, password);

void loop() 
  if (WiFi.status() == WL_CONNECTED) 
     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
     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.

Perhaps a problem with the '3.3V power supply', but you provided no details of what this is or how its connected.

I have solved my issue. Actually, we need to make GPIO 0 = HIGH for normal operation of ESP8266. To program ESP8266 we keep GPIO 0= LOW.