项目作者: adamples

项目描述 :
Stereo VU meter using OLED screens and AVR microcontroller
高级语言: C
项目地址: git://github.com/adamples/VU_meter.git
创建时间: 2017-11-05T16:11:45Z
项目社区:https://github.com/adamples/VU_meter

开源协议:GNU General Public License v3.0

下载


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:

  1. $ 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.