Skip to content

Serial VU Meter

project-owner edited this page May 29, 2018 · 5 revisions

Here is example of the Serial PeppyMeter output implemented by Tobias (nixiepeppyATgmail.com.)

serial

Serial VU Meter can be configured using the following parameters in file config.txt:

[serial.interface]
device.name = /dev/serial0
baud.rate = 9600
include.time = False
update.period = 0.1
  • device.name - linux name of serial port.
  • baud.rate - serial port communication speed.
  • include.time - True - include time data into signal sent to serial interface. False - don't include.
  • update.period - defines how often PeppyMeter will send data to serial interface.

The format of the data sent to the Serial VU Meter depends on include.time property. If it's set to True the data will look like this:

10:12:08l066r060

Here 10:12:08 defines the current Raspberry Pi time. The number following 'l' character defines volume level for the left channel in decimal format. The number following 'r' character defines the volume level for the right channel in decimal format.

If property include.time is False then the data will have the following format:

l053r046

The number following 'l' character defines volume level for the left channel in decimal format. The number following 'r' character defines the volume level for the right channel in decimal format.

Three decimal digits were reserved for the volume level as the maximum volume level is customizable value. The default value for the maximum volume level is 100.0. That can be changed by modifying property volume.max in the configuration file config.txt:

volume.max = 100.0

<<Previous | Next>>