[SOLVED] Problem with lcd screen and email

Hi there

I am having problems with my project. I cant see on the LCD screen the message i put on the arduino cod, and also the email have not been send even if the condition happend , Dont know why … any help ?

include SoftwareSerial.h
SoftwareSerial DebugSerial(2, 3); // RX, TX

define BLYNK_PRINT DebugSerial
include BlynkSimpleStream.h

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "my token ";

float heartbeat=A0 ;
float Bodytemp=A1 ;

WidgetLCD lcd(V2);

void setup()
{
// Debug console
DebugSerial.begin(9600);

// Blynk will work through Serial
Serial.begin(9600);
Blynk.begin(auth, Serial);

lcd.clear(); //Use it to clear the LCD Widget
lcd.print(0, 0, “Hello”); // use: (position X: 0-15, position Y: 0-1, “Message you want to print”)

}

BLYNK_READ(V1){
Blynk.virtualWrite(V1,heartbeat);

}

void sensoractivado(){
if(heartbeat == 14){
Serial.println(“El tipo esta mal”);
Blynk.email("fleipe_rodrigo@hotmail.com", “Subject: Button Logger”, "Esta mal el tipo ");
delay(2000);
}

}

void loop(){
Blynk.run();
}

Hello. Do you use Android?

Yes i use android, but i can test it on ios

Same on iOS or this is only Android?

Same problem :confused: doesnt sohw the lcd message and doesnt send the mail

I’m having trouble with E-Mail as well. Haven’t tried lcd message. Im using android.

Yes I incurred the same issue once try restarting the app and resetting the controller
@Felipe_Rodrigo @FunguyPro

I tried but nothing happend ? , could it be that i am overflowing the server ?

guys i put this on my code :slight_smile:

include SoftwareSerial.h
SoftwareSerial DebugSerial(2, 3); // RX, TX

define BLYNK_PRINT DebugSerial
include BlynkSimpleStream.h

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “1efb9f4db4604c30835ad3cf4c38a41f”;

float heartbeat=A0 ;
float Bodytemp=A1 ;
float temperatura;

void setup()
{
// Debug console
DebugSerial.begin(9600);

// Blynk will work through Serial
Serial.begin(9600);
Blynk.begin(auth, Serial);
}

BLYNK_READ(V1){
float reading = analogRead(heartbeat);

// converting that reading to voltage, for 3.3v arduino use 3.3
float voltage = reading * 5.0;
voltage /= 1024.0;

// now print out the temperature
float temperatura = (voltage - 0.5) * 100 ; //converting from 10 mv per degree wit 500 mV offset
//to degrees ((voltage - 500mV) times 100)
Blynk.virtualWrite(V1,temperatura);
if(temperatura >= 19){
//Serial.println(“El tipo esta mal”);
Blynk.email(“frodrigo@alumnos.uai.cl”, “Subject: Button Logger”, "Esta mal el tipo ");
Blynk.notify(“Peligro”);
}
}

void loop(){

Blynk.run();
}

When i run the code the function with the widget “notify” actually works , but it doesnt work the email function … dont know why. As you can see both function ( email, and notify) are in the same if , but only notify works… May be becuase i am connecting through usb and not ethernet ?? I dont know what else could it be …help pls

Have you added email widget? is That correct email?

yes and yes

any idea why the email function doesnt work ??

Nope. Please try

Blynk.email("Subject: Button Logger", "Esta mal el tipo ");

and put email in mail widget.

if that doesn’t help - try to cleanup sketch and start from single email command.

kk i´ll let you know !

I already solve it , the function always work, but the email was sending to the junk carpet, thats why i didnt saw the email notification , a very noob mistake , thnks for all your help !!

Haha. Nice one :slight_smile:. Glad you found the reason.