omriharel / deej

Set app volumes with real sliders! deej is an Arduino & Go project to let you build your own hardware mixer for Windows and Linux
https://deej.rocks
MIT License
4.71k stars 433 forks source link
arduino audio diy gaming go golang volume-control

deej

deej is an open-source hardware volume mixer for Windows and Linux PCs. It lets you use real-life sliders (like a DJ!) to seamlessly control the volumes of different apps (such as your music player, the game you're playing and your voice chat session) without having to stop what you're doing.

Join the deej Discord server if you need help or have any questions!

Discord

New: work-in-progress deej FAQ!

deej consists of a lightweight desktop client written in Go, and an Arduino-based hardware setup that's simple and cheap to build. Check out some versions built by members of our community!

Download the latest release | Video demonstration | Build video by Tech Always

deej

Psst! No 3D printer? No problem! You can build deej on some cardboard, a shoebox or even a breadboard :)

Table of contents

Features

deej is written in Go and distributed as a portable (no installer needed) executable.

Looking for the older Python version? It's no longer maintained, but you can always find it in the legacy-python branch.

How it works

Hardware

Schematic

Hardware schematic

Software

Slider mapping (configuration)

deej uses a simple YAML-formatted configuration file named config.yaml, placed alongside the deej executable.

The config file determines which applications (and devices) are mapped to which sliders, and which parameters to use for the connection to the Arduino board, as well as other user preferences.

This file auto-reloads when its contents are changed, so you can change application mappings on-the-fly without restarting deej.

It looks like this:

slider_mapping:
  0: master
  1: chrome.exe
  2: spotify.exe
  3:
    - pathofexile_x64.exe
    - rocketleague.exe
  4: discord.exe

# set this to true if you want the controls inverted (i.e. top is 0%, bottom is 100%)
invert_sliders: false

# settings for connecting to the arduino board
com_port: COM4
baud_rate: 9600

# adjust the amount of signal noise reduction depending on your hardware quality
# supported values are "low" (excellent hardware), "default" (regular hardware) or "high" (bad, noisy hardware)
noise_reduction: default

Build your own!

Building deej is very simple. You only need a few relatively cheap parts - it's an excellent starter project (and my first Arduino project, personally). Remember that if you need any help or have a question that's not answered here, you can always join the deej Discord server.

Build deej for yourself, or as an awesome gift for your gaming buddies!

FAQ

I've started a highly focused effort of writing a proper FAQ page for deej, covering many basic and advanced topics.

It is still very much a work-in-progress, but I'm happy to share it in its current state in hopes that it at least covers some questions you might have.

FAQ feedback in our community Discord is strongly encouraged :)

Build video

In case you prefer watching to reading, Charles from the Tech Always YouTube channel has made a fantastic video that covers the basics of building deej for yourself, including parts, costs, assembly and software. I highly recommend checking it out!

Bill of Materials

Thingiverse collection

With many different 3D-printed designs being added to our community showcase, it felt right to gather all of them in a Thingiverse collection for you to browse. If you have access to a 3D printer, feel free to use one of the designs in your build.

Visit our community-created design collection on Thingiverse!

You can also submit your own design to be added to the collection. Regardless, if you do upload your design to Thingiverse, please add a deej tag to it so that others can find it more easily.

Build procedure

How to run

Requirements

Windows

Linux

Download and installation

Building from source

If you'd rather not download a compiled executable, or want to extend deej or modify it to your needs, feel free to clone the repository and build it yourself. All you need is a Go 1.14 (or above) environment on your machine. If you go this route, make sure to check out the developer scripts.

Like other Go packages, you can also use the go get tool: go get -u github.com/omriharel/deej. Please note that the package code now resides in the pkg/deej directory, and needs to be imported from there if used inside another project.

If you need any help with this, please join our Discord server.

Community

Discord

deej is a relatively new project, but a vibrant and awesome community is rapidly growing around it. Come hang out with us in the deej Discord server, or check out a whole bunch of cool and creative builds made by our members in the community showcase.

The server is also a great place to ask questions, suggest features or report bugs (but of course, feel free to use GitHub if you prefer).

Donations

If you love deej and want to show your support for this project, you can do so using the link below. Please don't feel obligated to donate - building the project and telling your friends about it goes a very long way! Thank you very much.

ko-fi

Contributing

Please see docs/CONTRIBUTING.md.

License

deej is released under the MIT license.