#Can't Mute channels

36 messages · Page 1 of 1 (latest)

neon fox
#

It's hard to see what's going on from the picture. Can you explain what you mean by "in series?" they are supposed to be connected in parallel.

rocky magnet
#

@neon fox Yeh, sorry. Its difficult to show all conections, but I made this diagram to explain better

rocky magnet
#

Just realize I'm dumb, the pots are connected in parallel, still can't overcome the "parasitic" voltage from the other pots

neon fox
#

Your schematics look good, this issue often happens in breadboards because they are basically dozens of little capacitors. What resistance are your pots?

rocky magnet
#

My pots are 10k, but @plush vortex solve my issue recently. I have to connect my struf to 3.3v instead of 5v, that solve the issue

neon fox
#

What board are you using?

rocky magnet
#

rp2040-zero

neon fox
#

And going to 3v3 let the pots go down to 0?

rocky magnet
#

more less, still got jitter, but it much less than before

neon fox
#

Well that sort of makes sense, glad you were able to fix this

rocky magnet
#

Thx

plush vortex
#

basically shorting 5v to a part running on 3.3 when it is not a 5V tolerant part does bad things

rocky magnet
#

I make it really smooth with no jitter with software. I uploaded the code to github!

plush vortex
#

also, you have to know about your analog reference voltage,

#

what did you use for your filter?

#

i was going to add a IIR filter to my code

rocky magnet
plush vortex
#

that uses a 1/64 alpha value

#

you buffered then averaged?

rocky magnet
plush vortex
#

not that we need to be efficient but an IIR filter works great for this sort of thing, It is what i use in my code for power tools on the speed potentiometer input

#

i also use shift functions to avoid multiply and divides

#

and it is also only 3 lines of code

#

and uses no additional memory

#

AccumulatorValue -= AccumulatorValue >> 6;
AccumulatorValue += NewAnalogValue;

and whenever you use the value

actualValue = AccumulatorValue >> 6;

rocky magnet
#

Wow!! My code is really big at this point also make aesthethic changes for gui. I copy the idea from @hasty goblet but make it a little more efficient and adapt it for my display

plush vortex
#

mine is really easy to move around stuff

#

and it is the same code really as the one you linked last night

#

effectively what that code does is average the last 64 readings

#

but we get 100 readings per second, so it really cushions the changes

rocky magnet
#

Yeah, I saw it... still working on hardware to implement the layers.
Also, where do you get the icons.h? The look cool and would decluter the code

plush vortex
#

i made them

#

but i didn't upload them separately

#

they will be on github shortly