Rotary switch

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
siliconchip
Posts: 55
http://meble-kuchenne.info.pl
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 21 times
Been thanked: 1 time

Rotary switch

Post by siliconchip »

Hi
I recently made a posted about the rotary switch in the components input tray i used this but unsuccessfully as it turned out it was an encoder.
Therefore could the matrix team please add a rotary switch at some point with a selectable pin range say 2 to 15 ??

Cheers bob

medelec35
Valued Contributor
Posts: 2367
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 749 times
Been thanked: 808 times

Re: Rotary switch

Post by medelec35 »

Hi Bob.
So rather than parallel switches, you require individual switches i.e. one switch per pin?
Therefore 0 to 15 will require two full ports (B and C) for example?
If I have got it wrong, can you explain the function you have in mind.
Martin

siliconchip
Posts: 55
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 21 times
Been thanked: 1 time

Re: Rotary switch

Post by siliconchip »

Hi martin
My understanding of a rotary switch is theres 1 common pin which when the rotary knob is turned connects to say pin1 if turned again connects to pin2 and so on depending on the number of pins therefore suppose your project required 3 inputs using switches you could use a rotary switch with 3 positions to do the same job tieing the common pin to either ground or plus volts via a resistor ?

Cheers bob

Steve-Matrix
Matrix Staff
Posts: 2007
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 300 times
Been thanked: 465 times

Re: Rotary switch

Post by Steve-Matrix »

We've made a new component and are currently testing this before we release it.

siliconchip
Posts: 55
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 21 times
Been thanked: 1 time

Re: Rotary switch

Post by siliconchip »

Hi steve
Thats great thanks

Bob

Steve-Matrix
Matrix Staff
Posts: 2007
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 300 times
Been thanked: 465 times

Flowcode v11 Re: Rotary switch

Post by Steve-Matrix »

While we continue to test this new version, I thought I might as well share it so you can see if it suits your requirements.

To try it, you can copy it into the "%PROGRAMDATA%\MatrixTSL\FlowcodeV11\Components" folder and then restart Flowcode.

Note that this will replace the existing component. A 'safer' way is to create a personal "components" folder somewhere on your PC and then point Flowcode at this folder in the "locations" tab of Global Options. More details can be found here on the wiki.
Attachments
Switch_Rotary_0_15_2dgi.fcpx
(7.07 KiB) Downloaded 22 times

siliconchip
Posts: 55
Joined: Wed Dec 16, 2020 10:38 am
Has thanked: 21 times
Been thanked: 1 time

Re: Rotary switch

Post by siliconchip »

Hi steve
I think ive added it correctly - the black rotary switch available only in 3D with either 10 or 16 positions ? If so its still got the 4 pin binary im unsure how to set this up

Cheers bob

Steve-Matrix
Matrix Staff
Posts: 2007
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 300 times
Been thanked: 465 times

Re: Rotary switch

Post by Steve-Matrix »

No - it's the 2D "Switch Rotary 0_15" with the new "Type" property (Encoder or Conventional).

That 3D one should do what you need though. But must be added to a 3D panel.

RGV250
Posts: 458
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 46 times
Been thanked: 48 times

Re: Rotary switch

Post by RGV250 »

Hi,
While you are at it you could add a couple of extra versions, BCD (0-9 with 4 outputs) and HEX (0-15 with 4 outputs).

Regards,
Bob

Steve-Matrix
Matrix Staff
Posts: 2007
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 300 times
Been thanked: 465 times

Re: Rotary switch

Post by Steve-Matrix »

I believe the one I posted earlier handles both of these. They are both type="encoded" with the number of positions 10 and 16 respectively.

Only decimal numbers are shown around the dial though, so you will see 10=A, 11=B, ..., 15=F for the HEX version.

Post Reply