How to build a Simulink-block for an LCD that is connected to an an Arduino Uno via I2C

Поділитися
Вставка
  • Опубліковано 10 лют 2025
  • This is a walkthrough how to build a block in Matlab/Simulink which can send a number to an Liquid Crystal Display that is connected to an Arduino Uno via an I2C-BUS.
    I've used:
    Matlab 2023b
    Arduino IDE 2.3.3
    Here is the Arduino-Code to test the LCD in advance [note: I used "" on the libraries because youtube did not like the sharp parenthesis].
    //
    // Example to Test an LCD connected via I²C
    //
    // I²C-library
    #include "Wire.h"
    // library "[github.com/joh... LiquidCrystal I2C von Frank de Brabander]"
    #include "LiquidCrystal_I2C.h"
    // initialize LCD
    LiquidCrystal_I2C lcd(0x27, 16, 2); // amount of columns, amount of rows
    //LiquidCrystal_I2C lcd(0x3F,20,4);
    void setup()
    {
    lcd.init(); // start LCD
    lcd.backlight(); // turn on backlight
    }
    void loop()
    {
    lcd.setCursor(0, 0); // set cursor to column 0, row 0
    lcd.print("1:hallo, have a"); // send a text
    lcd.setCursor(0, 1);
    lcd.print("2:great day! :-)"); // send a text
    }

КОМЕНТАРІ •

  • @tomigenelin3963
    @tomigenelin3963 2 місяці тому +1

    Danke gutes Video

  • @stoseckert3394
    @stoseckert3394 2 місяці тому +1

    Beste Grüße! Geht die GSR Serie noch weiter? Warte die ganze Zeit gespannt darauf 😊