Giter VIP home page Giter VIP logo

audiolight's Introduction

AudioLight

Turns Audio to light.

How it works.

C# Client uses NAudio (Windows Audio Session API wrapper) it captures audio from your soundcard as stereomix and turns into json formatted rgb light with clumsy algorithm :). Node Server listens SerialPort and Websocket for connection. When NodeServer has no connection it will cycle leds in idle state. If it has connection it will show the colors based on the json data. AudioLight C# client first tries to connect with USB, if it's unable then tries to connect with Websocket.

Installation prequistes

You need rasperry pi, with NodeJS & npm. Windows vista or later.

rasperry

PIGPIO library if your rasperry don't have it and pigpio npm installation fails.

wget abyz.co.uk/rpi/pigpio/pigpio.zip
unzip pigpio.zip
cd PIGPIO
make
sudo make install
cd AudioLightServer
npm install

Red led to pin GPIO 4, Green led to pin GPIO 17, Blue led to pin GPIO 27;

run node Server.js

windows

If you don't use SerialPort (USB) then you most propably need to modify the IP address of you pi. Just run the program and it will try to send the data to your rasperry pi.

Commandline run arguments:

-p: SerialPort (Default:COM3)

-i: IP address (Default:http://myiplocalnetworkipv4:8080)

TODO

  • SerialPort connection
  • Improve Audio to Light algorithm

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.