Skip to content

adamples/VU_meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OLED display VU meter — AVR/Arduino project

This project is to create digital version of a nice gadget that adds a little magic to any audio equipment: a VU meter. Main design goals are:

  • 2-channel operation,
  • as close to real VU-meter specification as possible,
  • high FPS, 60+ — no visible jumping of needle, as is common in other designs.

Project uses AVR ATMega88/168/328 (and ATMega48 if possible), so should be compatibile with Arduino Uno boards. Small (and cheap) monochrome OLED modules with SSD1306 or SH1106 driver are employed as displays. Unlike other AVR VU meters that you can find on the web this one uses quite complex analog circuitry (it can be much simpler if you are not as interested as me in up-to-specs VU meter emulation).

Here's a video showing test of VU meter prototype:

Background and needle animation test video

Building The Project

To build hex file you'll need:

Before compilation please modify src/config.h file to set proper OLED controller type and Makefile to set uC type and oscillator frequency (F_CPU).

To create hex file type:

$ make all

This will create build/main.hex that you can use to flash your device.

Note: This is Work In Progress design. To make it work for you you'll most probably need to modify it in one way or another.

Hardware Design

If you would like to make VU meter yourself here are some useful files for you:

PCB is designed as a module to be included in other devices so all signals are connected using goldpin headers: VU meter PCB design preview Assembled VU meter PCB picture

There is also Arduino UNO shield (rev.3) design, altough it's not very polished version:

Assembled Arduino Shield PCB picture

Full documentation will be included in the future, as the project progresses.

For now here's very high-level block diagram of the device:

Block diagram of AVR/OLED VU meter

Second analog channel and OLED display were omitted for the sake of brevity.