Go Down

Topic: LCD wraps output to 1 or 2 columns (Read 2 times) previous topic - next topic

mowcius

Quote
Do you think I should use SoftwareSerial(2, 2)? Or some other unused input pin?

People normally use SoftwareSerial(255, 2) or some other large value that will never be used by an output pin.

A few suggestions
- change to the newsoftserial library rather than the software serial one.
- have you tried resetting the serial LCD (as far as I can remember - there is a command for this or is it just to reset to 9600 baud?)
- have you asked Sparkfun about it as they wrote the code on the pic chip which controls the display so they might have a better idea (I presume it is a Sparkfun one - did I miss this somewhere?)

no245

Quote
Follow the LCD initialization link at http://web.alfredstate.edu/weimandn for a complete explanation.

Interesting, thanks.

I tried to implement that initialization as follows:
Code: [Select]

  delay(110);   // Step 1: > 100ms
 
  lcd_do(0x30); // Step 2: Function Set
  delay(5);     // > 4.1ms
 
  lcd_do(0x30); // Step 3: Function Set
  delay(1);     // > 100us
 
  lcd_do(0x30); // Step 4: Function Set
  delay(1);     // > 100us
 
  lcd_do(0x38); // Step 5: Function Set D=1 N=1 F=0
  delay(1);     // > 53us

  lcd_do(0x08); // Step 6: Display off
  delay(1);     // > 53us
 
  lcd_do(0x01); // Step 7: clear
  delay(5);     // > 3ms
 
  lcd_do(0x38); // Step 8: Entry Mode set: I/D=1, S=0
  delay(1);     // > 53us

  // step 9 = nothing 

  lcd_do(0x0C); // Step 10: Display on D=1, C=0, B=0
  delay(1);     // > 53us

Unfortunately this did not help. Any ideas?

Quote
People normally use SoftwareSerial(255, 2) or some other large value that will never be used by an output pin.

Ok, thanks. I changed this now, but unfortunately it did not change anything.

Quote
change to the newsoftserial library rather than the software serial one.

Ok, I tried this as well. No change either.

Quote
have you tried resetting the serial LCD (as far as I can remember - there is a command for this or is it just to reset to 9600 baud?)

There is a command to set the baud rate. I don't think there is a reset command.

Quote
I presume it is a Sparkfun one - did I miss this somewhere?

Yes it is. (see first page in this topic)

Go Up