How to make any song* play on an lcd!

The basic code to start up a song!

How to make any song* play on an lcd!

Things used in this project

 

Hardware components

HARDWARE LIST
1 Arduino UNO
1 Male/Female Jumper Wires
1 DFRobot I2C 16x2 Arduino LCD Display Module

Story

 

Display a song on an LCD

 

This project goes into more detail and how you could make you own chorus!

 

 

 

0. To start in case you don't have this installed, install the library: LiquidCrystal_I2C

Make sure it's the one I'm hovering over

 

Make sure it's the one I'm hovering over

 

1. Put in this code BEFORE the void setup

CODE
//pre setup
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);

2. Put in this IN the void setup

CODE
lcd.init();
lcd.init();
lcd.backlight();

3. Edit to the lyrics and put this code in the void loop

CODE
//put in the song chorus here if you want to make a full song then put the code in the setup
 lcd.setCursor(0,0);
 lcd.print("Song line");    //up to 16 characters in one lcd.print
 lcd.setCursor(0,1);
 lcd.print("Song line");
 delay(2250);
 lcd.clear(); 

4. Final code! \/

 

Pretty simple eh'? Let me know what song chorus I should make!

 

Schematics

 

Circuit Diagram

Made with tinkercad!

 


 

Code

 

Da final code

C/C++

Yes yes if you copy make sure to respect

CODE
//made by vanze
//Song chorus editor lcd

//pre setup
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
  // put your setup code here, to run once:
lcd.init();
lcd.init();
lcd.backlight();

}

void loop() {
  //put in the song chorus here if you want to make a full song then put the code in the setup
  lcd.setCursor(0,0);
  lcd.print("Song line");    //up to 16 characters in one lcd.print
  lcd.setCursor(0,1);
  lcd.print("Song line");
  delay(2250);
  lcd.clear();
  
}

The article was first published in hackster, December 12, 2022

cr: https://www.hackster.io/vanze/how-to-make-any-song-play-on-an-lcd-f48824

author: vanze

License
All Rights
Reserved
licensBg
0