|
GP1287 VFD display 256x50 |
x 1 | |
|
Arduino Nano R3 |
x 1 | |
|
2x10k Potentiometer |
x 1 | |
|
1N4007 – High Voltage, High Current Rated Diode |
x 2 | |
|
Capacitor 10 µF |
x 2 | |
|
Resistor 4.7k ohm |
x 2 | |
|
Resistor 47k ohm |
x 2 |
|
arduino IDEArduino
|
|
|
Soldering Iron Kit |
Arduino Bar graph Stereo VU meter on VFD display GP1287
A VU meter, also known as a Volume Unit meter, is a device used to display the audio signal level in decibels (dB) in real-time. It is commonly found on audio equipment to help users monitor and control audio levels. Some time ago, in one of my previous videos , I presented to you Analog style retro look VU meter on VFD display.
This time, I will also describe a way to make a VU meter on the VFD Display, but this time in the form of a Bar Graph. A bar graph VU (Volume Unit) meter is a type of audio level meter that represents the intensity of an audio signal using a series of bars. These bars visually indicate the amplitude or volume of the audio signal across a range.
In this meter, each bar corresponds to a particular volume level or decibel level. In this case, unlike the previous project, the response of the Vu meter in relation to the input signal is instantaneous (instantejnius). The display is again of the GP1287 type with a resolution of 256 by 50 points, and it can be obtained at a relatively cheap price.
The device is extremely simple to build and contains only a few components
- Arduino Nano Microcontroller
- GP1287 VFD Display
- 10K stereo potentiometer,
- Four resistors,
- and two capacitors and diodes
On the occasion of the upcoming Christmas and New Year holiydays visit the PCBWay Christmas Big Sales where you will found discounts of up to 50%, as well as many other prizes and benefits. PCBway is one of the most experienced PCB manufacturing company in China in field of PCB prototype and fabrication. They provide completed PCB assembly service with worldwide free shipping , and ISO9001 quality control system. Also, on their site there is an online gerber viewer where you can upload your gerber and drill files to render your board.
The signal from both audio channels (left and right) is brought to the analog inputs of the Arduino microcontroller. After that comes a circuit called "Enveope Follower" with a filter.
As for the code, I took the idea from a similar OLED VU meter project, but it used the Adafruit_GFX library, which is not compatible with VFD displays, so I created a new code with the U8G2 library, which has support for this type of display. The sensitivity of the VU meter can be controlled with the potentiometer mounted on the back of the device.
Due to the relatively high consumption of the display, it is preferable to power it through the power connector of the display itself, which is shown in the picture.
The device is installed in a suitable box made of PVC material with a thickness of 5 mm and covered with colored self-adhesive wallpaper.
#include <U8g2lib.h>
#include <SPI.h>
U8G2_GP1287AI_256X50_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
int an_izm_r , an_izm_l ;
int ur_l , urr_l , ur_r , urr_r ;
void setup(void) {
u8g2.begin();
u8g2.setContrast(15);
u8g2.enableUTF8Print();
u8g2.setFont(u8g2_font_7x14B_tf);
analogReference(INTERNAL);
pinMode(A0,INPUT);
pinMode(A2,INPUT);
}
void loop ( ) {
an_izm_r = analogRead ( A0 ) ;
an_izm_l = analogRead ( A2 ) ;
urr_l = an_izm_l ;
urr_r = an_izm_r ;
if ( urr_l < ur_l ) { ur_l = ur_l - 15 ; } else { ur_l = an_izm_l ; }
if ( urr_r < ur_r ) { ur_r = ur_r - 15 ; } else { ur_r = an_izm_r ; }
testfillrect ( ) ;
}
void testfillrect ( void ) {
u8g2.firstPage();
do {
u8g2.drawFrame(0,0,256,50);
u8g2.drawRFrame(2,2,252,46,3);
u8g2.drawFrame(5,18,170,14);
u8g2.setCursor(16, 30); u8g2.print(F("-20"));
u8g2.setCursor(77, 30); u8g2.print(F("-10"));
u8g2.setCursor(140, 30); u8g2.print(F("-3"));
u8g2.setCursor(8, 16); u8g2.print(F("R"));
//u8g2.drawFrame(5,4,10,14);
u8g2.setCursor(8, 44); u8g2.print(F("L"));
//u8g2.drawFrame(5,32,10,14);
u8g2.drawBox(18,5,4,11);
u8g2.drawBox(18,34,4,11);
u8g2.setFontMode(1);
u8g2.drawBox(175,18,76,14);
u8g2.setDrawColor(2);
u8g2.drawStr(182, 30, "0");
u8g2.drawStr(210, 30, "+3 db");
u8g2.setColorIndex(1);
for ( int i = 20 ; i <= ur_r ; i += 4 ) {
u8g2.drawBox ( i , 5 , 2 , 11 ) ;
}
for ( int i = 20 ; i <= ur_l ; i += 4 ) {
u8g2.drawBox ( i , 34 , 2 , 11 ) ;
}
}
while ( u8g2.nextPage() );
}
Arduino Bar graph Stereo VU meter on VFD display GP1287
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
- Testing 2500W Large Induction Heater An induction heater is a device that uses electromagnetic induction to heat objects. It consists of...
- Arduino FFT Audio Spectrum analyzer on 8x32 color matrix WS2812B The spectrum analyzer displays the amplitude of signals as a function of frequency, allowing engine...
- Unusual Led Ring Arduino Clock, Temperature, and Humidity meter There are many arduino clock projects with temperature and humidity readings where the results are ...
- How to make simple portable PEMF Magnetic Pulser PEMF (Pulsed Electromagnetic Field Therapy), which is also known as magnetic pulse therapy uses ele...
- Single Mosfet Mini SSTC Tesla coil with 10 + cm Spark A Solid State Tesla Coil (SSTC) is a type of Tesla coil that uses solid-state components such as tr...
- How to Make EM84 (6E2) Vacuum Tube Stereo VU Meter A VU meter, also known as a Volume Unit meter, is a device used to display the audio signal level ...
- Universal Arduino Staccato controller for SSTC and VTCC Tesla Coils The VTTC Staccato Controller was developed in the attempt to create longer sparks from VTTCs while ...
- DIY extremly Sensitive and cheap Arduino Seismometer A seismometer, is an instrument used to detect and record ground motion caused by seismic waves, su...
- DIY Extremly Sensitive and cheap Geophone sensor for Earthquakes detecting A geophone is a device used in geophysics to detect ground movement. It is specifically designed to...
- Arduino FFT Spectrum analyzer on VFD display GP1287 An audio spectrum analyzer is a device that visualizes the frequency content of an audio signal. It...
- DIY simple Spark Gap Tesla Coil Tesla coil is a type of resonant transformer circuit invented by Nikola Tesla around 1891. It is a ...
- DIY PC controlled high power PEMF Therapy Device PEMF or Pulsed Electromagnetic Field therapy is a type of therapy that uses electromagnetic fields ...
- DIY Precise Arduino Miliohmmeter In practice, we very often need to measure low resistances. Measuring low-value resistances, especi...
- The simplest way to determine the quality of lighting in your home - bulb flickering meter Light flickering can be a common issue and may occur with various types of bulbs, including incande...
- Classic Style Arduino Weather Station with three Oled Displays So far I have made several weather stations that display local values as well as internet data, whic...
- How to build simple cheap Hulda Clark Syncrometer Hulda Clark's Syncrometer was a device she claimed could detect the presence of various substances ...
- DIY simplest small CRT Oscilloscope An oscilloscope is a measuring instrument used to visualize and analyze electronic signals. It is c...
- Arduino Door Lock with Smartphone Flashlight Login (Li-Fi project) There are many different arduino door lock projects, where the access method is using a keyboard, R...
-
Open Source Very Large Stick - Freejoy & MMjoy2 breakout board
497 0 0 -
RF Control training board for students based on ESP32 C3
666 0 2 -
Aquarius+ Computer, Standard PCB
883 0 4 -
KINETIC COASTERS with a TWIST! Laser or 3D Print some DIY Magic
602 0 1 -
RPI - 8 IO PLC With ATTiny85 Watch Dog
527 0 1 -
Nintendo Famicom HVC-001 Controller Shells
622 0 1 -
COMMODORE 128 DIAGNOSTIC REV.785260 KEYBOARD DONGLE
585 0 4 -
COMMODORE 128 15KHz DISPLAY ADAPTER (C128 80 COLUMN ADAPTER)
793 1 6 -