summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-05-07 13:39:05 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-05-07 13:39:05 +0530
commitf20b4f25156870c72d801b98600d8d0c2408b403 (patch)
treec4ce9ac0d275a6bae3df13a96eb57b5efd522aa2
parent88b5c1a804a583b88c6f65cfbf02e5f4c0935f29 (diff)
README: 16x2 LCD Display documentation
-rw-r--r--README.md30
-rw-r--r--media/lcddisplay-test.jpgbin0 -> 1701637 bytes
2 files changed, 29 insertions, 1 deletions
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.
+
+<img src="media/lcddisplay-test.jpg" alt="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
--- /dev/null
+++ b/media/lcddisplay-test.jpg
Binary files differ