I'm using ai-thinker-0.9.5.2-9600.bin firmware and I have try many android library but arduino cannot communicate with ESP8266.
Thanks for your help.
Explore... Chat... Share...
Moderator: igrr
xtal wrote:I have little knowledge of the Ardunino....but did noticed you are not using what appears to be the standard Rx, Tx pins, Are you sure this is programmed correctly?
Will the Arudunio communicate directly to another comm port on your pc?
Does your Ardunino Tx go thru level converter to ESP Rx.?
Does your Ardunino Rx go thru level converter to ESP Tx.?
Have you tried 9600 & 115200 baud although you should see garbage?
The level looks similiar to sparkfun and appears connected corectly. Hv side to Ardunio Lv to ESP
Is the ESP-?? wired correctly? [ie] proper pins pulled up and grounded. I think there are mainly 3 pins involved
usually gpio15-> gnd[thru 510 ohm works], CH_PD/EN thru 3.3k ohm to V+, gpio0 usually uses internal pullup
you ground this to download new FW, I usually use V+ --> red LED-->820 ohm --> gpio0
820.gpio0 connection --> switch--> gnd
When sw off + Reset Led is off Sw on Led on bright, hit reset Led Dim load FW mode
I prefer to connect thru 470-560 ohm resistors or higher ohms on V+ side to protect ESP pins
in case of an OOPS.
Lastly are the batterys good?
#include<TEE_ESP_WIFI.h>
#include <SoftwareSerial.h>
#define ESP_Rx 6
#define ESP_Tx 7
String ssid="MYSSID";
String pass="MYPASSWORD";
String port="80";
ESP wifi(ESP_Rx,ESP_Tx,pinEN);
void print_debug(String data)
{
Serial.print(data);
}
void setup()
{
Serial.begin(9600);
wifi.begin(9600);
Serial.println("EPS8226");
wifi.Event_debug = print_debug;
wifi.reset();
wifi.setmode(STATION);
wifi.disconnectAP();
wifi.connectAP(ssid,pass);
wifi.multipleconnect(MULTIPLE);
wifi.startserver(port);
String ip = wifi.myip();
for(unsigned char i=0;i<5;i++)
{
wifi.stop(i); //close all socket
}
}
void loop()
{
String data = wifi.readstringdata();
if(data.length())
{
Serial.println(data);
html_web();
wifi.stop(wifi.currentID);
}
}
void html_web()
{
delay(3000);
char *data1= "<html><header><title>ESP8266 Webserver</title></header>\"LED Control\"<FORM action=\"\"><P> <INPUT type=\"radio\" name=\"status\" value=\"1\">ON";
char *data2= "<P> <INPUT type=\"radio\" name=\"status\" value=\"0\">OFF<P> <INPUT type=\"submit\" value=\"Submit\"></FORM><body></body></html>";
wifi.write_HTML(wifi.currentID,data1);
wifi.write_HTML(wifi.currentID,data2);
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]