Sending text from the Serial Monitor to an LCD dispalyer


i have display current temperature on lcd (by using temp. sensor-lm35).
now able display temperature on serial port monitor.

but said have display on lcd @ second row (because, later on, use first row display current time & date).

please provide me guideline code , wiring can display temperature on lcd.

the following part code did serial monitor.
code: [select]
float tempc;
int temppin=0;
void setup()
{
 serial.begin(9600);
}
void loop()
{
 tempc=analogread(temppin);
 tempc=(5.0*tempc*100.0)/1024.0;
 serial.println((byte)tempc);
 delay(3000);
}


the  images show coupling , result on s. monitor.

[note: trying follow tutorial on example part of arduino sketch shows how send text serial monitor lcd, doesn't me, because don't know how combine code current code , how couple wires]

i assume want send temperature sensor lcd.
i don't know why call float tempc. mistake.

code: [select]

float tempc;
int temppin=0;
#include <liquidcrystal.h>
// initialize library numbers of interface pins
liquidcrystal lcd(8,9,4,5,6,7);

void setup()
{
  serial.begin(9600);
  lcd.begin(16, 2);
}

void loop()
{
  tempc=analogread(temppin);
  tempc=(5.0*tempc*100.0)/1024.0;
  serial.println(tempc);
  lcd.setcursor(0, 1);
  lcd.print(tempc);
  delay(3000);
}


Arduino Forum > Using Arduino > Displays > Sending text from the Serial Monitor to an LCD dispalyer


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support