GithubHelp home page GithubHelp logo

bacwolf / nano_vu_line Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s-marley/nano_vu_line

0.0 1.0 0.0 713 KB

An update on the previous Uno_vu_line with sensititivity and brightness controls

C++ 100.00%

nano_vu_line's Introduction

NanoVULine

Code written to run on the Arduino Nano or Uno to drive LED strips such as WS2812B as a stereo VU meter

Features

  • 10 VU patterns that move in time to the music.
  • 7 standby patterns that move without audio input.
  • Press the button to change pattern, long press to automatically cycle through patterns.
  • Potentiometers for brightness and sensitivity control.
  • Remembers the last pattern that you used when you power it off and returns to it on power on.
  • Supports 75 LEDs per channel (150 total) on Uno and Nano. Much more on Mega etc.
  • Completely open source and hackable. Create your own patterns or use it in whatever you like!

Demo

Demo of the previous VU meter showing all the available patterns:

Youtube video of VU meter in action

Updates to this design with the addition of brightness and sensistivity controls

Youtube video of VU meter in action

Setting up the circuit

If you want to make this on your own, the schematic that I have used is:

Wiring schematic

If you want to make this on your own, the schematic that I have used is:

Breadboard view

Installation and code usage

  1. Download this repository and unzip it somewhere. You must rename the unzipped folder Nano_vu_line.
  2. Open the Arduino IDE then open Nano_vu_line.ino
  3. You will need the FastLED and JC_Button libraries installed. In the IDE, go to Tools -> Manage Libraries. Search for FastLED and install the latest version and do the same with JC_Button.
  4. On the Nano_vu_line.ino tab, find the line that says # define N_PIXELS and change the number after it to the number of LEDs you have in each string.
  5. Plug in the Arduino and upload the code in the usual way, ensuring that the correct board type and com port are selected in the Tools menu.

Extra info

  • The more LEDs you have, the more power you will need to provide. Make sure your power source is able to cope.
  • Near the top of the code, you can # define MAX_MILLIAMPS to be whatever you like. If you are using this from a PC USB port, leave this at 500mA, it will protect you from drawing too much current from the USB port. If you are running this from an AC charger / powerbank and need more brightness or more LEDs, then increase this number.
  • If the controller seems to go weird, I've found a quick reflash of the code usually clears it up quickly.
  • This project is for entertainment purposes only and the output is not calibrated in any way.
  • Code is written to run on the Nano / Uno or equivalent. Using an AVR with more SRAM will result in being able to use more LEDs.

Code is based on demos from the FastLED library and code from Cinelights YouTube channel.

nano_vu_line's People

Contributors

s-marley avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.