PDA

View Full Version : Rotary Encoder too fast (Sioc)



Niklas
12-19-2015, 10:30 AM
Hi all,

my Encoder for SPD, HDG, ... is turnig too fast. That means that when I go one on the right the number goes about 3-5 higher. Thats not good for an exact HDG or QNH.

I use SIOC_Creator. Do you have any solution for that?

Regards,

Niklas

fordgt40
12-19-2015, 11:16 AM
Are you using the OpenCockpits CTS encoders? If not, then that could be your problem. Only other suggestion is to try changing the "acceleration" value in your script definition for the encoders, though I doubt that will help. It sounds like the wrong encoders have been used.

David

Niklas
12-20-2015, 06:44 AM
Hi,

Thanks for the quick reply. The Signal is the same. Also 2Bit Gray. I will try to Change the acceleration.

Niklas

fordgt40
12-20-2015, 07:09 AM
Niklas

2 bit gray encoders may send the same signals, however, the pulses and detents vary. You need encoders with 1/4 cycle per detent and 16 detents/revolution. Else they will not work properly with OC cards.

David

Niklas
12-20-2015, 08:00 AM
David

Do you mean 4 pulses per Revolution? The number of detents should not influence because this is only the speed per round.

Do I need a low or high number of acceleration in Sioc to try to solve this problem?

EDIT: This is my encoder: http://www.produktinfo.conrad.com/datenblaetter/450000-474999/453417-da-01-en-ENCODER_11MM_EN11_HSB_1AQ20_20RAST.pdf

Maybe you can explain it with this Datasheet. What is wrong with that?
Niklas

fordgt40
12-20-2015, 09:46 AM
Niklas

I do not know the details of encoder working but I do know that you need a CTS ref: 288VCC0F162B2 encoder to work with OC cards. Or an encoder with identical specifications. I doubt that changing the acceleration value will work, but the lower the value the lower the incremental speed.

David

iwik
12-20-2015, 01:16 PM
Niklas,
Agree with David 100%.Many people have tried different encoders but have ended up going with what o/c sells.
That is the type suggested.
Les

Niklas
12-28-2015, 07:16 AM
Hi there,

Problem is solved. It was many of workhours. Yes the encoder was "Wrong". I made it with a new skript and a few relais.

Thanks.

fordgt40
12-28-2015, 11:16 AM
Niklas

Pleased to hear that you solved it. For the benefit of people who may read this thread, could you please outline what you did. I do not quite follow how "relais" and a new script solved the problem

David

Niklas
12-29-2015, 03:39 AM
Well first you mus know how encoders work: 1. first input is activated 2. both inputs are activated 3. only the second is activated and last nothing is activated .

JeeHell and Sioc wants to work with each "turn" one step from above. But my encoder do with one turn all four steps. So I had every time 4 numbers foreward or backwards. E.g. QHN1013 -> QNH 1017

So now I used an SPS from Moeller. You must know that I am from the industrie and this are indurtrial products(old). But you can search at ebay. An SPS become an input and then set srogrammed outputs.
With a skript that tells that with each input they do one of the steps.
I must use relais because the SPS hast a common + and OC use a common - (that is not normal).

I hope I can help you.
Niklas