Society of Robots - Robot Forum

Software => Software => Topic started by: kunaldgr8 on February 11, 2012, 10:01:49 AM

Title: serial lcd
Post by: kunaldgr8 on February 11, 2012, 10:01:49 AM
i am trying to upload a sample code in my arduino diecimilea from this site of my lcd http://www.electrojoystick.com/tutorial/?page_id=9 (http://www.electrojoystick.com/tutorial/?page_id=9) but when i click on upload it show the BYTE key word is no longer supported. what should i do what do it mean
Title: Re: serial lcd
Post by: joe61 on February 11, 2012, 10:39:03 AM
You'll need to rewrite it. Look here (http://arduino.cc/en/Reference/HomePage) for information about the language. Look for the Serial library toward the bottom.

Just find the current keyword and put it in place of BYTE. Specifically: http://arduino.cc/en/Serial/Print (http://arduino.cc/en/Serial/Print)

Joe
Title: Re: serial lcd
Post by: rbtying on February 11, 2012, 10:47:12 AM
Use Serial.write(uint8_t); Arduino has removed the print(uint8_t, BYTE) completely.
Title: Re: serial lcd
Post by: kunaldgr8 on February 11, 2012, 10:55:55 AM
can i get a sample code for serial lcd plzz.
Title: Re: serial lcd
Post by: kunaldgr8 on February 11, 2012, 11:11:46 AM
i replaced it with latest keyword but still it shows that gibberish words
Title: Re: serial lcd
Post by: joe61 on February 11, 2012, 11:32:39 AM
Post your code as it is now. Be sure to copy and paste, don't try to type it in or anything. Also, use the code tags to keep the formatting so it will be easier to read.

Joe
Title: Re: serial lcd
Post by: kunaldgr8 on February 12, 2012, 12:37:45 AM
this is my code
void setup() {
 delay(1000);
 Serial.begin(9600);
}

void loop()
{
delay(500);
Serial.print("Hello kunal");
}
but when i connect rdx of my lcd to tx of microcontroller it shows that gibberish text . but when i connect it to rx it shows hello kunal......and when i power up my arduino and the lcd is aldready connect it shows nothing ..but if i reconnect lcd it stars displayig
Title: Re: serial lcd
Post by: kunaldgr8 on February 12, 2012, 12:40:40 AM
currently i am powering arduino  with computer ........if i power my arduino with 9v do i have to change my current connections
now my current connections are
gnd of lcd to ----------------------gnd of arduino
vcc of lcd to -----------------------5v of arduino
rxd of lcd to------------------------rx of arduino ?