From f20b4f25156870c72d801b98600d8d0c2408b403 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 7 May 2023 13:39:05 +0530 Subject: README: 16x2 LCD Display documentation --- README.md | 30 +++++++++++++++++++++++++++++- media/lcddisplay-test.jpg | Bin 0 -> 1701637 bytes 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 media/lcddisplay-test.jpg diff --git a/README.md b/README.md index cc9a945..85edbb0 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,35 @@ The command **libcamera-jpeg** will capture a still image using the camera modul **Test image taken by Raspberry Pi Camera Module** (Click on it for full-size) -## 5. Testing the Face-Recognition Application +## 5. Install dependencies and test the LCD1602 LCD Display with I2C + +1. Install the libraries and i2cctools package +```bash +sudo apt install i2c-tools libi2c-dev +``` +2. Enter the lcd-ipaddress-display subdirectory in this project +```bash +cd lcd-ipaddress-display +``` +3. Install python modules `smbus` and `RPi.GPIO` to communicate with I2C devices using python scripts +```bash +pip install smbus RPi.GPIO +``` +OR +```bash +pip install -r requirements.txt +``` +4. Execute the python script to display Local IP Address: +```bash +python dispip.py +``` +**Note:** The python script will only work correctly when it is located in the lcd-ipaddress-display directory, as the drivers directory is imported in the code as a library. + +Test image of LCD display showing the Local IP Address + +**Test image of LCD display in the setup showing the Local IP Address** + +## 6. Testing the Face-Recognition Application To test the camera for the application, follow these steps: diff --git a/media/lcddisplay-test.jpg b/media/lcddisplay-test.jpg new file mode 100644 index 0000000..9bc3701 Binary files /dev/null and b/media/lcddisplay-test.jpg differ -- cgit v1.2.3