Page 1 of 1

How to use DS-LCD-SRL162 for Arduino?

PostPosted: Wed Dec 12, 2012 6:03 pm
by suaffan2
Arduino Uno

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

PostPosted: Wed Dec 12, 2012 6:33 pm
by zhenning
Have you check this out:http://playground.arduino.cc/Learning/SerialLCD ?

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

PostPosted: Fri Dec 14, 2012 2:16 am
by suaffan2
http://playground.arduino.cc/Learning/SerialLCD
this link using serial Com... not SPI right?
cytron serial lcd using SPI communication

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

PostPosted: Fri Dec 14, 2012 2:50 am
by zhenning
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.

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

PostPosted: Fri Dec 14, 2012 10:08 am
by suaffan2
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..

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

PostPosted: Fri Dec 14, 2012 6:56 pm
by low5545
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.