Loading...
Pages: 1 ... 3 4 [5]   Go Down
Author Topic: Arduino Uno + Wireless proto shield + Wifly module  (Read 7891 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Never had to reset the lcd or the arduino to update / clear the lcd (like dhunt says)
Also, don't forget to update your cursor to the correct position once a new message comes in.
So, you want to:

1. if serial available > clear LCD
2. setcursor to desired position
3. while data available, print all chars.
4. repeat.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks guys, finally got it working. The problem was that i didn't update the cursor position after clearing the lcd. I didn't know it was such a simple error. My mistake. Now what I want to do is to scroll up the characters displayed incase the received message length is greater than the max characters the lcd can display i.e. 32. (by scroll up i mean displaying the first 2 lines, delay, clear, display the 2nd 2 lines, clear till end of message is reached and eventually repeating the whole process again )

I got this working without using the spiserial but when i use it, the lcd displays some funny characters and numbers. I guess it is something to do with parsing the message but I don't know in what form is the spiserial data in. If I know the type, then if I am not wrong it would be a matter of type conversion. By the way, my scrollup function accepts a string type value. So in this case I would convert the spiserial data to string to be able to scroll up the message.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good to hear you're making progress!  smiley-cool
About the weird chars, are they after the message? if so, you're probably looking at the newline chars.
But we're getting pretty offtopic here, at least, this topic was about getting up and running with the WiFly. I would create a new topic for all your LCD questions.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know am going off topic but my problem depends on knowing the form in which the data is received from the wifly. Anything more than this will definitely be related to the LCD. So knowing the data that is coming in is highly important.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35593
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I know am going off topic but my problem depends on knowing the form in which the data is received from the wifly. Anything more than this will definitely be related to the LCD. So knowing the data that is coming in is highly important.
I think it's time to start a new thread with a specific question, and some code. Only you know where the data is coming from. That should define the "form in which the data is received from the wifly". The WiFi shield is not modifying the data.
Logged

Pages: 1 ... 3 4 [5]   Go Up
Print
 
Jump to: