This Video will illustrate you how to visualize audio left and right signals in bar-graph in 16X2 LCD Display using Arduino. Components Required: 1. Arduino UNO 2. 16X2 LCD Display 3. 3.5mm Audio Jack 4. Jumper Wires Connection Diagram: Video Link Arduino Code #include <LiquidCrystal.h> #include <fix_fft.h> #define DEBUG 0 #define L_IN 1 // Audio input A0 Arduino #define R_IN 0 // Audio input A1 Arduino const int Yres = 8; const int gain = 3; float peaks[64]; char im[64], data[64]; char Rim[64], Rdata[64]; char data_avgs[64]; int debugLoop; int i; int load; LiquidCrystal lcd(11, 10, 7, 6, 5, 4); // pins to LCD // Custom CHARACTERS byte v1[8] = { B00000, B00000, B00000, B00000, B00000, B00000, B00000, B11111 }; byte v2[8] = { B00000, B00000, B00000, B00000, B00000, B00000, B00000, B11111 }; byte v3[8] = { B00000, B00000, B00000, B00000, B00000, B11111, B11111, B11111 }; byte v4[8] = { B0...
Comments