Hi Guys , my project is about fault monitoring unit for three phase motors . i did the coding part using arduino alone and whenever some fault happens , the arduino "serial prints" the respective fault and displays the the fault name on LCD . simulation worked accordingly .
i was able to realize that all these data (fault alert) could be send to web platform using ESP8266 . the only worry is that coding for esp8266 is a brainstorming one from my point of view .
So , is there a way to obtain the the required code meant for ARDUINO+ESP8266 unit , by making small alterations to this arduino code ( code without esp8266) , or by pasting it in between some standard codes or what ever ??
LOGIC : arduino serial prints an output . map that output to esp8266 . esp8266 to web !
plz help .
please dont worry about this code is correct or not , i just need to map the serial data into esp8266
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int a = A0;
int b = A1;
int c = A2;
int i = 0;
void setup()
{
Serial.begin(9600);
lcd.begin(16, 2); // set up the LCD's number of columns and rows:
lcd.print("Phase Monitoring ");
pinMode(a,INPUT);
pinMode(b,INPUT);
pinMode(c,INPUT);
}
void loop()
{
double r =analogRead(A0);
double y=analogRead(A1);
double b =analogRead(A2);
if(r>300 && r<750)
{
delay (6.66666666);
if((y>300 && y<750) && (i==0))
{
Serial.println("RYB");
lcd.println("RYB");
i=1;
}
if((b>300 && b<750) && (i==0))
{
Serial.println("RBY");
lcd.println("phase reversed");
i=1;
}
}
if(r==0||y==0||b==0)
{
Serial.println("single phasing");
lcd.println("single phasing");
delay(9600);
}
}