Could anyone help me please.How to use an LCD without liquid crystal library. Thank You.
Find the LCD's datasheet - that will tell you the details of the interface.
How to use an LCD without liquid crystal library.
Often ridiculous requirements like this are part of an assignment. Is it homework or course work?
If not why this silly restriction?
You can simply drive the interface pins according to the specific LCD you have.
It may be serial, 4-wire, 8-wire or other specific interface.
Many code & wiring examples on google. Many.
Could anyone help me please! I would like to make my own liquid crystal library. Thank You
Threads merged.
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html.
Can you tell us your electronics, programming, Arduino, hardware experience?
Thanks.. Tom... ![]()
I think that the most challenging part of writing a driver for LCDs is the initialization. You will need to decide which interface that you will use (4 bit or 8 bit) then carefully follow the data sheet for the requirements for initializing that inteface.
You could save yourself some pain by using a ‘serial’ LCD which uses SPI, I2C or other simple hardware interface to reach the display.
But you still have to write the calls to unit and control the display.
Sorry, no free ride.
First question would be which LCD? If it's one of those standard 16x2 type of displays, find the LiquidCrystal library on your PC (on a windows system, directory C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src). That type of displays used the HD44780 IC, so get the datasheet for it.
Next analyse the code / datasheet to understand which steps need to be taken to initialise and which steps need to be taken to write text.
If you can't figure out those steps, give up for now till you have figured it out.
Next write your own library implementing the steps that you have discovered. I would first write a sketch implementing all the needed functions and testing; once you're happy, make it a library.
lastchancename:
You could save yourself some pain by using a ‘serial’ LCD which uses SPI, I2C or other simple hardware interface to reach the display.
That may actually inflict extra pain - for a 1602 or 2004 display the I2C interface is no more than a PCF8574 port extender! So you still have the pain of figuring out the correct bits, plus the I2C communication with the PCF8574 itself...