Yeah, I can't really remember what type of LCD it was. Perhaps, it depends on what type you have.
Would it be very hard to instead of an encoder, use a potentiometer of liking? Like a 100k?
How would one do that?
How would one do that?
Would it be very hard to instead of an encoder, use a potentiometer of liking? Like a 100k?
How would one do that?
Easy:
Arduino - Potentiometer
D
Deleted member 537459
Beautiful project, if possible make six channel passive preamp for multichannel? Maybe with controller of any channel and master volume
balanced version has some problems
Hi
I wanted to apply the volume control circuit of maxw as balanced. I put a selectable preamp (eijndhoven.net) on the input and a selectable buffer on the exit. I used the analog regulator LT3045 and the digital regulator LM338. I am having some problems in volume control which I designed by maxw, which I applied as balanced.
Problem-free circuits: input selector, preamp, buffer, LM338, LT3045, Encoder.
Problematic circuits: R2R attenuator.
My problem with the R2R attenuator is that when I adjust the audio with the encoder, the sound rises or decreases unbalanced. In some steps, there is no sound on the right channel or left channel. in just a few steps, the sound comes full on all channels ...
1. The volume is not logarithmic and does not work regularly.
2. In some steps, there is no sound on the right channel and left channel.
What can be wrong? software or hardware? (resistor values or other)
Thanks you Best regards
[/url][/IMG]
[/url][/IMG]
[/url][/IMG]
Hi
I wanted to apply the volume control circuit of maxw as balanced. I put a selectable preamp (eijndhoven.net) on the input and a selectable buffer on the exit. I used the analog regulator LT3045 and the digital regulator LM338. I am having some problems in volume control which I designed by maxw, which I applied as balanced.
Problem-free circuits: input selector, preamp, buffer, LM338, LT3045, Encoder.
Problematic circuits: R2R attenuator.
My problem with the R2R attenuator is that when I adjust the audio with the encoder, the sound rises or decreases unbalanced. In some steps, there is no sound on the right channel or left channel. in just a few steps, the sound comes full on all channels ...
1. The volume is not logarithmic and does not work regularly.
2. In some steps, there is no sound on the right channel and left channel.
What can be wrong? software or hardware? (resistor values or other)
Thanks you Best regards



Attachments
Looks like a really nice design!
I had this before and it was because in the code the relays were not assigned the correct bit. For example, if you have 8 relays on one bank of 8x GPIO and the relay for bit 0 is connected to GPIO0, relay for bit 1 is connected to GPIO1, relay for bit 2 is connected to GPIO2 and so on, then you can simply send the attenuator value directly to the GPIO bank. BUT the problem is that in almost all the layouts I made it was not possible to connect the relays in this perfect way due to the layout of the PCB. So I had to write a sort of "translation" for the attenuator value to the actual GPIO value. And then if you're using latching relays, it's even more complicated because each relay needs 2 GPIO to set and switch.
In this project it was simply a matter of reversing/mirror the binary attenuator value as you can see here: preamp-passive/preamp-passive.ino at master * FutureSharks/preamp-passive * GitHub
In another project (an input selector), since the relays were connected essentially to random GPIO pins, I had a hard code the mapping as you can see here: preamp-two/input_selector.py at master * FutureSharks/preamp-two * GitHub
If this isn't the problem then you can always debug by sending an attenuator value like 171 and you should see the relays on in the pattern of "10101011"
My problem with the R2R attenuator is that when I adjust the audio with the encoder, the sound rises or decreases unbalanced. In some steps, there is no sound on the right channel or left channel. in just a few steps, the sound comes full on all channels ...
I had this before and it was because in the code the relays were not assigned the correct bit. For example, if you have 8 relays on one bank of 8x GPIO and the relay for bit 0 is connected to GPIO0, relay for bit 1 is connected to GPIO1, relay for bit 2 is connected to GPIO2 and so on, then you can simply send the attenuator value directly to the GPIO bank. BUT the problem is that in almost all the layouts I made it was not possible to connect the relays in this perfect way due to the layout of the PCB. So I had to write a sort of "translation" for the attenuator value to the actual GPIO value. And then if you're using latching relays, it's even more complicated because each relay needs 2 GPIO to set and switch.
In this project it was simply a matter of reversing/mirror the binary attenuator value as you can see here: preamp-passive/preamp-passive.ino at master * FutureSharks/preamp-passive * GitHub
In another project (an input selector), since the relays were connected essentially to random GPIO pins, I had a hard code the mapping as you can see here: preamp-two/input_selector.py at master * FutureSharks/preamp-two * GitHub
If this isn't the problem then you can always debug by sending an attenuator value like 171 and you should see the relays on in the pattern of "10101011"
dear Maxw;
my software knowledge is as much as on / off the led. As far as I understand, this project will go to the trash for me🙁 bcoz icant change somethings on software.... thanks you
my software knowledge is as much as on / off the led. As far as I understand, this project will go to the trash for me🙁 bcoz icant change somethings on software.... thanks you
As far as I understand, this project will go to the trash for me🙁
That's pretty crazy to bin the whole project because of that 😕
i control ed all hardware things. relay voltage . i try to watch serial screen but ı didnt see anythings so i cant to do anythings about sofware... i need to find other project. 🙁
I agree with Max, it's far too good to throw away.
Why don't you check here or on a local forum if someone can help you with fixing the software? My experience is that many people who know how to program are terrified of hardware, so often you can help each other out 🙂
Why don't you check here or on a local forum if someone can help you with fixing the software? My experience is that many people who know how to program are terrified of hardware, so often you can help each other out 🙂
really i dont know what can i do... but ı know ı am little worry only so long time pcb draw expencive components... All software enginneer says same things, "I am so busy"
Last edited:
I'm new here and plan to build something similar.
Maybe it's too late sercan but coincidentally I'm a software engineer who likes diy and audio.
My daily business is based on fullstack and devops development so I'm not a embedded guy but maybe I can be of help.
Send me a message if you still need help with the arduino and the relay.
Maybe it's too late sercan but coincidentally I'm a software engineer who likes diy and audio.
My daily business is based on fullstack and devops development so I'm not a embedded guy but maybe I can be of help.
Send me a message if you still need help with the arduino and the relay.
- Home
- Source & Line
- Analog Line Level
- Passive Preamp: Arduino based, remote control, Relay R2R, input selection