Modular Preamp Design

L250 in that file is only for testing, it shouldn't be used in a production build. Enabling the input in the file I mentioned above should be all you need. You will need to rebuild and upload the code, the web UI just shows what the preamp is configured for, so if you increase the inputs to 5, it should magically appear in the web UI too.
 
Hello,
I have a problem with the scaling of my volume map.
Although the relays stick and unstick, the variation does not take place, I have 25k at 0% up to 80%, after gradually, I go down to 3k for 100%.
Where in the program do we see the logarithmic distribution?
Where is this sequence written?
Why when I press Mute all the relays do not unstick?
I am quite perplexed because my card corresponds perfectly to the wiring diagram of GitHub.
Do you have any idea? A procedure to debug my problem?
 
By making a diagram, I understood why I measured 25K.
Since there is a common ground on the resistors in parallel, we also measure them.
However, I remain convinced that there is an error on the switching program.
Because I still have the sound that only evolves from 80% and I have plocs at 50% as well as at 75%
 
I did the sequence of relays to understand a little more.
We see that the problem starts from relay 7.
In my opinion the program is not the right one or the diagram is not correct.
Can you give me the compliant versions?
Séquence contrôleur volume.jpg
 
In Mute position the equivalent resistance is 103.75R
At 1% 101.1R
At 3.5% 94.45R
At 6.5% 87.35R
At 15.3% 74.9R
At 19% 67.75R
25.3% 79.45R
50% 24.9R
Hi Pierrot 74
Are you only having problems with the volume?
Is everything else working fine (input selector, web interface, etc.)?
Unfortunately I don't understand programming, I hope someone from the community can help us.
Regards
 
Yes, after several checks, the problem isn't the programming, it's the calculation of the resistor scaling.
I have a Chinese model, but with 7 relays, it uses different values.
It works fine with the same programming.
I don't know how to calculate the 8th value.
R1S=2.74k,R1P=825k
R2S=5.49k,R2P=402k
R3S=10k,R3P=200k
R4S=18,7k,R4P=82.5k
R5S=30.1k,R5P=33.2k
R6S=42.2k,R6P=9.31k
R7S=487k,R7P=1k27
R8S=???,R8P=????
Rfinal 50k
 
This project is awesome. I might suggest making a regulated power supply board with separate supplies for digital and analog and running them about 3V higher than needed, then placing local regulators on each board to get the needed voltages.