Add fadres to a lighthackbox_2_v4.

I have built a box with 4 encoders and 5 buttons, for which I had all the plans and code by Brad Evens Clark, but I wanted to add 3 faders and use the code from Sefan Staub.
I understand very little, very little, of code and I was not able to establish a handshake.
Could someone help me?
I am using a Teensy 3.5

Thank you very much
Samora

Parents
  • Stefan Staub

    Thank you very much for your help. I already have my new #lightBox working combining faders with encoders and buttons. It was a precious help. Thank's for your time

    I just wanted to ask one more question. The fader reaches 100% before reaching the top.
    Is this a problem in the code or did I make a bad call?

  • When it is short before the top, it is by the code. It is also when you are at 0%, you must move the fader a little bit before it reacts. It is necessary because of the jitter in the analog inputs, you can control it with #define THRESHOLD 

  • What happens is the opposite. The fader is still in the middle and says it is already at 100%. So this is an error in the connections?

  • This sounds more like a 0-100 vs 0-255 issue?

  • It is the connection, there was error in the description, the leveler pin is most at the outer position. Swapping the GND and leveler pin should solve the problem.

  • Here a photo of a fader:

    Don't forget a 10nF ceramic capacitor (code 103) between ground and leveler for preventing analog noise.

  • I tried to do that but what happened was to change the direction of the fader.
    what happens is that my fader has a 7cm path and after 4cm it is already full

Reply
  • I tried to do that but what happened was to change the direction of the fader.
    what happens is that my fader has a 7cm path and after 4cm it is already full

Children