Rotary Switch and Inputs.
I need to make use of a rotary switch on a PIC16F1788 to select 8 inputs.
I’m new to this kind of switches, so
I think I will make use of this rotary switch:
https://nl.farnell.com/1522030 (2 Pole)
or
https://nl.farnell.com/1522028 (4 Pole)
I don’t know the difference to 2 or 4 Pole
They have 5 Pins but how this work to get 10 positions is a question for me. I think this must be done in the software but how I don’t know.
I have looked in the Inputs section from FlowCode but I can’t find a Rotary Switch. Maybe I must buy an extra pack but this I don’t know.
How must I proceed and how does this work ?
Rotary Switch and Inputs.
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Rotary Switch and Inputs.
Hello,
It looks like the switch outputs a series of binary to represent the current selected position. It is likely something I can create a component for if that would be useful.
It looks like the switch outputs a series of binary to represent the current selected position. It is likely something I can create a component for if that would be useful.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 192
- Joined: Mon Mar 04, 2013 8:07 pm
- Has thanked: 29 times
- Been thanked: 15 times
- Contact:
Re: Rotary Switch and Inputs.
i Ben,
Thanks for your answer. It would be great if you can make a component for this kind of rotary switches. They are very useful to use.
In my current situation I make use of DIP switches but the problem in this is that you can make easily an error because you can have multiple ON possibilities. (Two or more positions to ON )
I will wait
Thanks,
Frank
Thanks for your answer. It would be great if you can make a component for this kind of rotary switches. They are very useful to use.
In my current situation I make use of DIP switches but the problem in this is that you can make easily an error because you can have multiple ON possibilities. (Two or more positions to ON )
I will wait
Thanks,
Frank
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Rotary Switch and Inputs.
Hi Frank,
Rotary Switch component is now complete and uploaded to the updates system. Just do a full database update and the component should appear in the Input -> Switch category.
Let me know how you get on.
Rotary Switch component is now complete and uploaded to the updates system. Just do a full database update and the component should appear in the Input -> Switch category.
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 192
- Joined: Mon Mar 04, 2013 8:07 pm
- Has thanked: 29 times
- Been thanked: 15 times
- Contact:
Re: Rotary Switch and Inputs.
Hi Ben,
Thanks for this rotary switch component. I will test this in the weekend.
I will let you know.
Regards,
Frank
Thanks for this rotary switch component. I will test this in the weekend.
I will let you know.
Regards,
Frank
-
- Posts: 192
- Joined: Mon Mar 04, 2013 8:07 pm
- Has thanked: 29 times
- Been thanked: 15 times
- Contact:
Re: Rotary Switch and Inputs.
Hi Ben,
I wanted to test this rotary switch on a PCB. Unfortunately Seeed has send me some PCBs from a other person.
So. I’m sorry for this but I must wait one week to have my PCB’s.
Frank
I wanted to test this rotary switch on a PCB. Unfortunately Seeed has send me some PCBs from a other person.
So. I’m sorry for this but I must wait one week to have my PCB’s.
Frank