Forum >Bluno + esp8266
Bluno + esp8266

Im trying to connect bluno v2 (DFR0267) with ESP8266 with this code:
And on serial monitor there are only some continuously garbage words.
I was trying both esp8266.begin(115200) and esp8266.begin(9600) (baunds).
Maybe whos had the same problem, and maybe know how to solve it?
Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial esp8266(2,3); // make RX Arduino line is pin 2, make TX Arduino line is pin 3.
// This means that you need to connect the TX line from the esp to the Arduino's pin 2
// and the RX line from the esp to the Arduino's pin 3
void setup()
{
Serial.begin(9600);
esp8266.begin(115200); // your esp's baud rate might be different
}
void loop()
{
if(esp8266.available()) // check if the esp is sending a message
{
while(esp8266.available())
{
// The esp has data so display its output to the serial window
char c = esp8266.read(); // read the next character.
Serial.write(c);
}
}
if(Serial.available())
{
// the following delay is required because otherwise the arduino will read the first letter of the command but not the rest
// In other words without the delay if you use AT+RST, for example, the Arduino will read the letter A send it, then read the rest and send it
// but we want to send everything at the same time.
delay(1000);
String command="";
while(Serial.available()) // read the command character by character
{
// read one character
command+=(char)Serial.read();
}
esp8266.println(command); // send the read character to the esp8266
}
}
And on serial monitor there are only some continuously garbage words.
I was trying both esp8266.begin(115200) and esp8266.begin(9600) (baunds).
Maybe whos had the same problem, and maybe know how to solve it?

2015-07-01 01:25:55 Hi
Sorry be late to reply.
https://www.dfrobot.com/wiki/index.php?title=SKU:TEL0092_WiFi_Bee-ESP8266_Wirelss_module It should work as long as you did following the wiki page.
I met a problem that the SoftSerial would have no reaction, but once I reset or re-open the software, it will work.
To your question, I think you missed to set the software's serial monitor's baud rate except setting in the sketch. This step could also be found in the wiki page.
God luck,!
Leff
Sorry be late to reply.
https://www.dfrobot.com/wiki/index.php?title=SKU:TEL0092_WiFi_Bee-ESP8266_Wirelss_module It should work as long as you did following the wiki page.
I met a problem that the SoftSerial would have no reaction, but once I reset or re-open the software, it will work.
To your question, I think you missed to set the software's serial monitor's baud rate except setting in the sketch. This step could also be found in the wiki page.
God luck,!
kartka666 wrote:Im trying to connect bluno v2 (DFR0267) with ESP8266 with this code:Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial esp8266(2,3); // make RX Arduino line is pin 2, make TX Arduino line is pin 3.
// This means that you need to connect the TX line from the esp to the Arduino's pin 2
// and the RX line from the esp to the Arduino's pin 3
void setup()
{
Serial.begin(9600);
esp8266.begin(115200); // your esp's baud rate might be different
}
void loop()
{
if(esp8266.available()) // check if the esp is sending a message
{
while(esp8266.available())
{
// The esp has data so display its output to the serial window
char c = esp8266.read(); // read the next character.
Serial.write(c);
}
}
if(Serial.available())
{
// the following delay is required because otherwise the arduino will read the first letter of the command but not the rest
// In other words without the delay if you use AT+RST, for example, the Arduino will read the letter A send it, then read the rest and send it
// but we want to send everything at the same time.
delay(1000);
String command="";
while(Serial.available()) // read the command character by character
{
// read one character
command+=(char)Serial.read();
}
esp8266.println(command); // send the read character to the esp8266
}
}
And on serial monitor there are only some continuously garbage words.
I was trying both esp8266.begin(115200) and esp8266.begin(9600) (baunds).
Maybe whos had the same problem, and maybe know how to solve it?![]()
