Cannot see any AP

Hello, I'm noob I know. And I have some stupid problem. I've been trying to connect my arduino to network using wifi modul ESP8285 but it can not get an IP address so I tryed scanNetworks (WiFi.scanNetworks()) and saw number 0.
And I don't know where is problem I'm using code from this web: https://www.arduino.cc/en/Tutorial/ScanNetworks (I deleted part with shield don't know if that is the problem)

Or could it be problem with cabling ?

use WiFiEsp library.
how did you wire the module to Arduino (Uno?)?

Yea i have Uno and I have it like this:
EN - 3.3 V
VCC - 3.3V
GND - GND
TX - TX
RX - RX
RST - Nothing
GPIO0 - GND

This is my arduino code:

#include <WiFiEsp.h>
#include <WiFiEspClient.h>
#include <WiFiEspServer.h>
#include "SoftwareSerial.h"
#include <SPI.h>
#include <OneWire.h>

const char* ssid = "ssid";
const char* password = "pas";
char host []= "web.net";
WiFiEspClient client;


void setup() {

  Serial.begin(9600);
  delay(10);

  delay(5000);
  int numb=WiFi.scanNetworks();
  Serial.println(numb);
  delay(5000);

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  Serial.println("");
  Serial.println("WiFi connected");  
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());
}





void loop() {

Board is (in tools): Arduino/Genuino UNO
When i tryed WiFiEsp library it shows nothing in serial monitor :confused:

I also tryed this example https://github.com/bportaluri/WiFiEsp/blob/master/examples/WebClient/WebClient.ino
(I deleted shield part) And got this

[WiFiEsp] Initializing ESP module
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] Cannot initialize ESP module

try the examples of the WiFiEsp library

I did and i got this

[WiFiEsp] Initializing ESP module
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] Cannot initialize ESP module

but did you connect the esp8266 to SoftwareSerial pins? and before, you need to set the default baud rate of the module to 9660 baud for SoftwareSerial

I did connect
RX to pin 6
and
TX to 7

Juraj:
set the default baud rate of the module to 9660 baud for SoftwareSeria

How can i do that ? ( Exept of Name_of_serial.begin(9600) 'cause i already did)

orbit77:
I did connect
RX to pin 6
and
TX to 7

How can i do that ? ( Exept of Name_of_serial.begin(9600) 'cause i already did)

If you want to use esp-01 over SoftwareSerial, you must set the AT firmware's default baud rate to 9600 baud. The default baud rate of AT firmware is 115200 baud. SoftwareSerial can't work at this speed.

To change the baud rate you must have a way to communicate with AT firmware at the default baud rate of 115200 baud. You can use the USB adapter of the Uno. Upload BareMinimal sketch from Examples to Uno to make it silent and connect the esp-01 to RX and TX pins of the Uno.

Connect RX to RX and TX to TX to have the cross connection to USB of the Uno. Then connect from Serial Monitor to esp-01 at 115200 with "Both line end characters" set. Try some basic AT commands and then still at 115200 baud send the command to change the default baud rate AT+UART_DEF=9600,8,1,0,0

Ok this is what I did:
1)Reconnect Rx to Rx and Tx to Tx
2)Opened arduino IDE went to "files"-> "new"->I upload this to arduino
3)Opened serial monitor change BR to 115200 tipe AT ....nothing happend (cant see AT nowhere)
4)Tryed the same on BR nothing either

But I think i already have it on BR 9600 bcs when I move with cables when serial monitor is on I can see some chars(not ascii just some squares etc.) but only on BR 9600

orbit77:
Ok this is what I did:
1)Reconnect Rx to Rx and Tx to Tx
2)Opened arduino IDE went to "files"-> "new"->I upload this to arduino
3)Opened serial monitor change BR to 115200 tipe AT ....nothing happend (cant see AT nowhere)
4)Tryed the same on BR nothing either

But I think i already have it on BR 9600 bcs when I move with cables when serial monitor is on I can see some chars(not ascii just some squares etc.) but only on BR 9600

moving the cables should not generate anything. how did yo wire the rest of pins of esp8285?

try to send AT at 9600 baud. did you set "Both" line end characters?

orbit77:
Yea i have Uno and I have it like this:
EN - 3.3 V
VCC - 3.3V
GND - GND
TX - TX
RX - RX
RST - Nothing
GPIO0 - GND

And yes i set "Both NL & CL" and tryed 9600 and 115200 but nothing :frowning:

gpio 0 LOW puts the esp into bootloader mode for flashing