/deej_encoder

Branch of the Deej Library by Omriharel but for use with encoders

Primary LanguageC++MIT LicenseMIT

deej_encoder

Branch of the Deej Library by Omriharel but for use with encoders.

With this, you can now control your PC Sound, program by program, in a really practical way! But with Digital Encoders instead of Potentiometers

Links and references

SNR-Tech-Bytes Youtube Video: https://youtu.be/pkEw7x2GMIA

Original Deej work: https://github.com/omriharel/deej/blob/master/LICENSE

3D case made by SNR-Tech-Bytes: https://www.thingiverse.com/thing:4598978/

Bill of Materials

Here´s what you need to buy for this project
  • 1 Arduino Nano or Uno (these are the recommended ones) 5V with ATmega 328
  • (As much apps as you want to control, plus master) (5MAX) Rotary Encoders
  • ~30 Jumper cables (it´s better to have spare) Jumper Cables
  • Welding Equipment (Machine and welds)
Optionals
  • A BreadBoard (make sure that your breadboard has (+-) pins, if it doesn´t have is a PCB board, wich is useless in this case, unless to train welding)
  • Led´s
  • A case and/or material to make it

Wiring Schematic

Rotary Encoders (NO VCC) with no BreadBoard (What I chose) Rotary Encoders (With VCC) with no BreadBoard *Note:I can´t confirm if the vcc cconnected in this way will work properly because I used the first type of Rotary Encoders (Without VCC)

Rotary Encoders (No VCC) with BreadBoard Rotary Encoders (With VCC) with BreadBoard

Additional Notes

  1. The logic here is the same for the Arduino nano. The 5V pin can also be calles VCC or only "+". On arduino nano the digital ports (the ones on top in the Uno) have a D and then the number
  2. If you want more then 2 Encoders (which is very likely), continue the GND circuit (if not using BreadBoard) in the same way as these 2 are, just weld another cable to the GND of the previous and continue

What to change in the .ino?

  1. First, change line 20-24. In the brackets, you´ll see some numbers in it, change according to the Digital Pin that you connected each Encoder. Don´t botter if the name of the apps you want to use don´t match with those.
    Note:I can´t rember which one to put first and wich in second so the clockwise and anticlock wise positions are correct
    Example:
    Code:

  2. Between Lines 30-34. The same as the previous but for the Analog ones (change the number that comes after the A)
  3. Between lines 57-66. Lines that end with ".write(51)". This line means the the default volume of your computer when Deej is opened will be 51. Change that if you feel it´s too high (or too low who knows)

After that you can send the code to the arduino with the " Arduino IDE"

Case Assemblage Suggestions

Now, the case really depends on your taste and what you want to do. You allways have the option to 3D print it, there are lot´s of Deej project files ready to print. But not everyone has access to a 3D printer and using a Shoe boc in your setup, is just not great. So if you don´t have a case laying around or something like that, my friends gave me the advice to buy Acrylic, cut it and the with all the faces cutted glue them together with the help of some screws to support it. Make some holes for the Encodes and you should be done. There are also colored Acrylic so this is a good solution. And of course, there are also other ways of doing it.

Thank You

This is all, thank you for reading this. Don´t forget to check out the Deej Original Repo
Also, don´t forget to check out how to install and configure Deej: https://github.com/omriharel/deej#how-to-run