The files include:
The Simulink Library containing the LCD block and supporting files
Example Simulink model that demonstrates how to use the block
The .m setup file for adding the folder to the MATLAB path
The two input ports of the block are the two strings you wish to display on the top and bottom row respectively cast to their uint8 ascii value.
The block parameters are the connected pins to the Arduino: in the order RS, EN, d0, d1, d2, d3
Visit this page for wiring the LCD: https://www.arduino.cc/en/Tutorial/LiquidCrystalDisplay
Madhu Govindarajan (2019). Simulink library for Arduino Liquid Crystal Display (https://www.mathworks.com/matlabcentral/fileexchange/67997-simulink-library-for-arduino-liquid-crystal-display), MATLAB Central File Exchange. Retrieved .
@Tony Koki: To display numbers, I would recommend passing the number through a MATLAB function block wherein you just have a switch case statement outputting uint8('0') for 0 input and so on. If you do this for all 10 numbers, 0 through 9, then you should be able to display any number. Using the same techniques you can display pretty much any character.
When i display words it works great. However when i display variable values and number it does not display. I use the data conversion block and set it to uint8. For exmple i want to display a Analog value on the LCD from a sensor. How can i do this ?
@Darren Page I think this is only compatible for releases R2018a and later. Will edit the submission to reflect that.
Hi, the links wont load on my R2017 version although says it is compatible.
I need some help to make it display 16 characters and 4 lines... as my LCD is 16*4 and I need it for a project.
Updated Release Compatibility
Updating the Required Products