Hello!
I have flashed my 9xr pro with the superb er9x-firmware.
Now I have a question: Is it possible to program a rotary potentiometer (P1) as switch with only three values?
For example when the potentiometer is turned completely left the value should be -100, in the middle position there should be the value zero and completely right the value should be 100. But no values between this three positions.
I have tried this with an curve but there are also some other values when i rotate the potentiometer.
Thanks for any help!
Udo
Program a rotary potentiometer (P1) as switch
Re: Program a rotary potentiometer (P1) as switch
You need to use the logical switches to detect the 3 positions. For example using 3 logical switches:
L1 v<val P1 -98 (This detects when the pot is fully left)
L2 v~=val P1 0 (This detects the center)
L3 v>val P1 +98 ( And this detects when the pot is fully right)
Use L1, L2 and L3 in the mixer as the switch positions.
João
L1 v<val P1 -98 (This detects when the pot is fully left)
L2 v~=val P1 0 (This detects the center)
L3 v>val P1 +98 ( And this detects when the pot is fully right)
Use L1, L2 and L3 in the mixer as the switch positions.
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Re: Program a rotary potentiometer (P1) as switch
Hello João!
Thank you it works fine!
I love my 9xr with Er9x and this forum!
Udo
Thank you it works fine!
I love my 9xr with Er9x and this forum!
Udo
Re: Program a rotary potentiometer (P1) as switch
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Program a rotary potentiometer (P1) as switch
This could be done with the new (only in test version) curve17 where you can move the x as well as the y values.
Set curve 17 to:
-100 -100
-66 -100
-33 -100
-33 0
0 0
33 0
33 100
66 100
100 100
You will have -100 out with the pot between -100 and -33, 0 out with the pot between -33 and +33 and +100 out with the pot between +33 and +100.
Mike.
Set curve 17 to:
-100 -100
-66 -100
-33 -100
-33 0
0 0
33 0
33 100
66 100
100 100
You will have -100 out with the pot between -100 and -33, 0 out with the pot between -33 and +33 and +100 out with the pot between +33 and +100.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Program a rotary potentiometer (P1) as switch
@MikeB: That sounds good!
Where can I find this test version and when will it change to final version?
Udo
Where can I find this test version and when will it change to final version?
Udo
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Program a rotary potentiometer (P1) as switch
Test versions are found here: viewtopic.php?f=7&t=4676.
Usually they are fully working although the new feature(s) being tested may have some slight problems.
Mike.
Usually they are fully working although the new feature(s) being tested may have some slight problems.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Program a rotary potentiometer (P1) as switch
hi mike if i upgrade to the lastest test version will i still have the same bluetooth features etc that i have now this is the version i was going to upgrade too, ersky9xProvR218j.zip . also am i reading that you can use a standard pot as a six postion switch is this correct and if it is how do i go about setting it up, thanks idarMikeB wrote:Test versions are found here: viewtopic.php?f=7&t=4676.
Usually they are fully working although the new feature(s) being tested may have some slight problems.
Mike.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Program a rotary potentiometer (P1) as switch
Yes, the bluetooth is all still working.
For the 6-position switch, please read this thread: viewtopic.php?f=122&t=8267.
Note: You don't need to use variable resistors. You may use, say, 5 1K resistors in series, then tap off at power, the 4 junctions, ground.
Mike.
For the 6-position switch, please read this thread: viewtopic.php?f=122&t=8267.
Note: You don't need to use variable resistors. You may use, say, 5 1K resistors in series, then tap off at power, the 4 junctions, ground.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!