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)
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?