[SOLVED] Problems with Blue Pill board Serial1, Serial2, Serial3
Kushal4269 Sun Oct 07, 2018 12:15 pm
I want to STM32f103c (Blue pill) board to communicate with esp8266-12E and neo 6m GPS modules with blue pill. And i have used this module before with arduino uno and mega and get wanted results. but when i used blue pill to communicate with esp8266-12E, it is not working through Serial1, Serial2, Serial3 (i have checked one by one). So i have made simple code which can check output of Serial2(or any one of the three).
as below,
char a;
void setup() {
Serial.begin(115200);
Serial2.begin(115200);
//our setup code here, to run once:
}
void loop() {
if(Serial2.available()>0)
{
a=Serial2.read(); // will check Serial2 recevied data
}
Serial2.write("HII"); // will send to other serial monitor(in different pc)
Serial.println(a);
delay(1000);
// put your main code here, to run repeatedly:
}
