How can I control I2C Lcd with simulink ?

2 visualizzazioni (ultimi 30 giorni)
ENGOLA Arsène
ENGOLA Arsène il 9 Apr 2016
Risposto: Aravind il 25 Giu 2025
Hello everyone ! Can you help me to control my I2C LCD arduino with simulink ?

Risposte (1)

Aravind
Aravind il 25 Giu 2025
You can control the LCD display connected to an Arduino by using the Arduino-specific LCD display library. While this library is not directly available in Simulink, it can be integrated using the "IO Device Builder" app.
The "IO Device Builder" app, which is part of the "Simulink Support Package for Arduino Hardware," allows you to incorporate custom or third-party C/C++ source files as a System object, which then appears as a block in Simulink.
By using the "IO Device Builder" app, you can create a block that communicates with the LCD display connected to your Arduino. Once you deploy the model to the Arduino, it will be able to communicate with the LCD display via I2C.
For more details on the "IO Device Builder" app, you can refer to the following documentation: https://www.mathworks.com/help/simulink/arduino-io-device-builder.html.
Additionally, here are a few tutorials to help you get started with the "IO Device Builder" app:
  1. Getting started - https://www.mathworks.com/help/simulink/supportpkg/arduino_ug/io-device-builder.html
  2. Interfacing DHT11 sensor with Arduino using IO Device Builder - https://www.mathworks.com/help/simulink/supportpkg/arduino_ref/dht11-relative-humidity-temperature-io-device-builder.html
  3. Interfacing ADXL343 sensor with Arduino - https://www.mathworks.com/help/simulink/supportpkg/arduino_ref/adxl343-read-acceleration-io-device-builder.html
I hope this resolves your query!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by