This project plays a Piezo buzzer rendition of the song "Never gonna give you up" by Rick Astley and displays the lyrics on an LCD. This project is based on the Arduino platform. It is a pet project to get experience with Arduino.
- Arduino 1.8.19
This project uses the following components:
- Arduino Nano board
- Buzzer KY-006
- Character display LCD 1602
- Breadboard
Below is a diagram of the assembly of the system for clarity. The diagram was compiled on the Wokwi. At this link, you can try out this system in the online Arduino simulator. Just click on the Start the simulation button.
Tip: turn the volume down.
These tables show how to connect the pins of all components to the Arduino Nano.
Table 1. LCD1602 pin connections to the Arduino Nano
| LCD1602 | Arduino Nano |
|---|---|
| VSS | GND |
| VDD | 5V |
| V0 | GND |
| RS | D12 |
| RW | GND |
| E | D11 |
| D0 | Without connection |
| D1 | Without connection |
| D2 | Without connection |
| D3 | Without connection |
| D4 | D5 |
| D5 | D4 |
| D6 | D3 |
| D7 | D2 |
| A | 5V |
| K | GND |
Table 2. Buzzer KY-006 pin connections to the Arduino Nano
| Buzzer KY-006 | Arduino Nano |
|---|---|
| S | D7 |
| V5 | Without connection |
| — | GND |
Here's what the assembled system might look like.
Step 1. Install Arduino IDE.
Step 2. Download LiquidCrystal library for working with LCD.
Import LiquidCrystal to the folder where Arduino is installed. By default C:\Program Files (x86)\Arduino\libraries.
Step 3. In the tools tab, select the Arduino Nano board and ATmega328P (Old Bootloader) processor.
Step 4. Clone this repository to your local computer.
git clone https://github.com/SpaceLacuna/arduino-rickroll.git
Step 1. Assemble the scheme.
Step 2. Connect the assembled scheme to the computer.
Step 3. Verify and Upload sketch.

