Difference between revisions of "Template:LCD1602 RGB Module Guides for Pi"
From Waveshare Wiki
Line 1: | Line 1: | ||
− | ==Hardware Configuration== | + | ===Hardware Configuration=== |
− | ===Enable I2C interface=== | + | ====Enable I2C interface==== |
*Open terminal, use command to enter the configuration page | *Open terminal, use command to enter the configuration page | ||
<pre> | <pre> | ||
Line 10: | Line 10: | ||
And then reboot the system: | And then reboot the system: | ||
sudo reboot | sudo reboot | ||
− | ===Hardware Connection=== | + | ====Hardware Connection==== |
You can directly attach it to the 40PIN GPIO of Raspberry Pi. Or you can wire it to Raspberry Pi with PH2.0 4PIN interface of the Module, please refer to the Pin definition below: | You can directly attach it to the 40PIN GPIO of Raspberry Pi. Or you can wire it to Raspberry Pi with PH2.0 4PIN interface of the Module, please refer to the Pin definition below: | ||
Line 39: | Line 39: | ||
</div> | </div> | ||
− | ==Download the demo== | + | ===Download the demo=== |
Open the terminal of the Raspberry Pi, execute command to download demo codes: | Open the terminal of the Raspberry Pi, execute command to download demo codes: | ||
<pre> | <pre> |
Revision as of 03:26, 8 May 2023
Hardware Configuration
Enable I2C interface
- Open terminal, use command to enter the configuration page
sudo raspi-config Choose Interfacing Options -> I2C -> Yes to enable I2C interface
And then reboot the system:
sudo reboot
Hardware Connection
You can directly attach it to the 40PIN GPIO of Raspberry Pi. Or you can wire it to Raspberry Pi with PH2.0 4PIN interface of the Module, please refer to the Pin definition below:
LCD | Raspberry Pi | |
BCM2835 | Board | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
SDA | SDA.1 | 3 |
SCL | SCL.1 | 5 |
Take the LCD1602 RGB Module as an example, just connect it to the Raspberry Pi. The color of actual cable may be different with the figure here, please connect them according to the pins instead of color.
If you are using Jetson nano, the connection should as bellow:
Download the demo
Open the terminal of the Raspberry Pi, execute command to download demo codes:
cd ~ wget https://www.waveshare.com/wiki/File:LCD1602-RGB-Module-demo.zip cd ~/LCD1602-RGB-Module-demo/Raspberry sudo chmod 777 * sudo python Choose_Color.py sudo python Discoloration.py