How to use DS-LCD-SRL162 for Arduino?

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

How to use DS-LCD-SRL162 for Arduino?

Postby suaffan2 » Wed Dec 12, 2012 6:03 pm

Arduino Uno
suaffan2
Greenhorn
 
Posts: 3
Joined: Wed Dec 12, 2012 5:48 pm

Re: How to use DS-LCD-SRL162 for Arduino?

Postby zhenning » Wed Dec 12, 2012 6:33 pm

Have you check this out:http://playground.arduino.cc/Learning/SerialLCD ?
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: How to use DS-LCD-SRL162 for Arduino?

Postby suaffan2 » Fri Dec 14, 2012 2:16 am

http://playground.arduino.cc/Learning/SerialLCD
this link using serial Com... not SPI right?
cytron serial lcd using SPI communication
suaffan2
Greenhorn
 
Posts: 3
Joined: Wed Dec 12, 2012 5:48 pm

Re: How to use DS-LCD-SRL162 for Arduino?

Postby zhenning » Fri Dec 14, 2012 2:50 am

suaffan2 WROTE:http://playground.arduino.cc/Learning/SerialLCD
this link using serial Com... not SPI right?
cytron serial lcd using SPI communication


The link is for serial. Since its SPI,for cytron lcd, you have to port from the sample code. replace the SPI with arduino SPI functions.

Please take note that the data send to this serial LCD module through SPI is a bit different.
The data need to send from Least Significant Bit (LSB) instead of Most Significant Bit
(MSB). Hence, a special function is needed in the program to swap the bit before send to
LCD. Besides, there are 2 bytes of command need to be sending to LCD, the data send will
be start from higher byte followed by lower byte. Hence, the 2 bytes data will be send from
LSB of higher byte till MSB of higher byte and followed by LSB of lower byte till MSB of
lower byte.
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: How to use DS-LCD-SRL162 for Arduino?

Postby suaffan2 » Fri Dec 14, 2012 10:08 am

since
zhenning WROTE:2 wrote:
The link is for serial. Since its SPI,for cytron lcd, you have to port from the sample code. replace the SPI with arduino SPI functions.

Please take note that the data send to this serial LCD module through SPI is a bit different.
The data need to send from Least Significant Bit (LSB) instead of Most Significant Bit
(MSB). Hence, a special function is needed in the program to swap the bit before send to
LCD. Besides, there are 2 bytes of command need to be sending to LCD, the data send will
be start from higher byte followed by lower byte. Hence, the 2 bytes data will be send from
LSB of higher byte till MSB of higher byte and followed by LSB of lower byte till MSB of
lower byte.


since im just a diploma student... i think its impossible for me to do it...
i just only know how to use library..
suaffan2
Greenhorn
 
Posts: 3
Joined: Wed Dec 12, 2012 5:48 pm

Re: How to use DS-LCD-SRL162 for Arduino?

Postby low5545 » Fri Dec 14, 2012 6:56 pm

You can use arduino's SPI library to communicate with the LCD. If you haven't buy it, try the normal 16x2 LCD and use the arduino LiquidCrystal library for programming. It will be much easier.
low5545
Discoverer
 
Posts: 70
Joined: Wed Jul 27, 2011 5:55 pm
Location: Kuala Lumpur


Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 20 guests

cron