On the switch, the pin I marked with the blue "X" is the "common", that needs to go to the analog gpio input, and not connect to anything else.(if I can see it correctly from your picture, luckily your rotary switch does not cover its internals)If your red wire is VDDA, and black wire GND, then your switch will shortcircuit VDDA to GND in that position. I think you need to remove the resistor between the common and the previous terminal, and connect the red wire to that terminal.
thanks a lot!i will do it now directly.thanks so much for your time and this great project, open source,cheap,so much fun!
lets play and mak more rotary switches now,need some more resistors but this is perfect!!!the gpio in ,shows exactl the steps,very nice,but in the patch it doesnt work.i connected it to the gpio-in and the to a counter and nothing happens and from the gpio -in straight to the mux doesnt work either. i miss a step i guess?
Use a topology like this to convert to an integer:adjust the "math/*c" parameter to the number of steps of your switch.
thanks!it is working now!i must make some hook's now and i think it is skipping one step.thanks for the help now im sure i will make what i want
i dont need to hook anything,it is because of the jitter the pots looked like they pick up last signal,but with a normal ctrl dial i he dont do it , so i need to order the 1nF capacitors to solve this i think this is good because i have SDRAM overflow by adding 2 more hook objects.im at the limits and wanted to add some more stuff. Maybe i should think about another core ?
Most likely the "math/*c" parameter is off by one. Use a "disp/dial p" after "math/*c" to diagnose, it should show almost round numbers.
sorry for late reaction , i had some more patching and solderig to do hehe now im testing , and i see he skips step 2 and 6. if i put the dial up and down he missing other steps.,should i maybe make a new thread for dial matrix synth for this subject?
If you connect a "disp/dial p" to the "gpio/in/analog", what values do you read at different switch positions?
Hi,i get 0,1,3,4,5,7,8, and the he switches automatically very fast between,2345 if i see good, it goes very fast
I suspect those are values after "math/*c" and "math/round", I need the readings from "disp/dial p" right after "gpio/in/analog".
ah ok my excuses,sounds more logic yes 0 - 0.50 10.65 - 10.6921.25 - 21.3031.95 -3242.64 - 42.6853.34 - 53.2863.92 - 63.97and then he wiggles very fast in th 30's, sometimes high in the 20's and begin 40's
the noise is pretty disrupting in the matrix,because he pickups up the control when it change its position automaticly,in the matrix is not workable like this.is there a solution for this?
i checked the thread with noisy analog input but this doesnt work for me,only the capacitors i have to try
I suspect that comes from an open input.
Your readings match for a 7-position switch and corresponding 6-resistor string, but you seem to have an 8-or-more position switch? A capacitor is not the right solution here, you need to correct your resistor/switch circuit.
ahhh okk, yeah im total noob but very well willing to learn ,but yeah i have a 8 position switch. so i have to add one more resistor on the next terminal i guess.
I fixed everything, all the other switches are working perfectly:) only the switch with 8 steps switch step 4. In the GPIO in from the help file, he shows perfect 8 steps. in my patch he skips step 4 and the last step he dont do anything.i tried a lot and other gpio's ,other switches etc. any ideas what it could be?
DIAL MATRIX SYNTH all connected testing.axp (105.1 KB)
Sorry, correction...: adjust the "math/*c" parameter to the number of steps of your switch minus 1. So 8 position switch -> "math/*c" with value 7.
like a sunshine now! thanks a lot!some little adjustments and fixing some other problems and he is ready for production:)
Hi!I find this very interesting Sorry to bring this topic back, but I have a question:What should the value of the resistors be? Or would it depend on the number of steps you want to use?
Keep the resistor values the same as described, doesn't mater how many steps you have or even if you add extra steps later, just keep the resister value the same.I had this setup with 20 momentary switches and all worked fine.2 things to note if you are using momentary / toggle switches that are all connected to one analogue input..1 - You can only press one switch at a time.2 - There will be tiny fractional delay as the signal rises to its analogue value.