Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:arduino:esp01 [2021/05/25 23:54] – rom1 | public:arduino:esp01 [2021/05/26 00:09] (current) – rom1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
[[https:// | [[https:// | ||
+ | arduino nano esp8266 esp 01 wifi | ||
+ | |||
+ | **use buck converter (LM2596) for 3.3v** | ||
{{ : | {{ : | ||
+ | |||
+ | * There is a bug in the code: | ||
+ | * SoftwareSerial softSerial(3, | ||
+ | * should be | ||
+ | * SoftwareSerial softSerial(2, | ||
+ | * Also the suggested baud rate of 9600 doesnt seem to work, adjust to 115200 and go from there. Once you get a receiving signal, run the following to adjust the 01's baud to 9600: | ||
+ | * AT+UART_DEF=9600, | ||
+ | * After this, reflash your nano with serial bauds set to 9600 and you should be able to send AT commands over your Nano to the ESP-01 via 9600 baud | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | #include < | ||
+ | SoftwareSerial softSerial(2, | ||
+ | |||
+ | void setup() | ||
+ | { | ||
+ | uint32_t baud = 9600; | ||
+ | Serial.begin(baud); | ||
+ | softSerial.begin(baud); | ||
+ | Serial.print(" | ||
+ | Serial.println(baud); | ||
+ | } | ||
+ | |||
+ | void loop() | ||
+ | { | ||
+ | while(softSerial.available() > 0) | ||
+ | { | ||
+ | char a = softSerial.read(); | ||
+ | if(a ==' | ||
+ | continue; | ||
+ | if(a != ' | ||
+ | continue; | ||
+ | Serial.print(a); | ||
+ | } | ||
+ | | ||
+ | while(Serial.available() > 0) | ||
+ | { | ||
+ | char a = Serial.read(); | ||
+ | Serial.write(a); | ||
+ | softSerial.write(a); | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | * AT – Will give OK on the serial monitor, if Not just unplug vcc Pin of ESP8266 Module for a moment and reconnect again. | ||
+ | * Send AT+RST – Command to Restart module / Optional Command | ||
+ | * Send AT+GMR – To get the firmware version | ||
+ | * Send AT+CWMODE? – Set Module to a Dual Mode Sucha as Standalone + Access Point mode. | ||
+ | * Send AT+CWLAP – Command to Search Nearby Wifi Access Point. Find your Wifi Name in the Search Result. | ||
+ | * Send AT+CWJAP=”Your Wifi Name”, | ||
+ | * Send AT+CIFSR – Command to Check Allocated Ip given by your Wifi to your ESP8266 Module/ |