PDA

View Full Version : Can I use this type of Rotary Encoder for FSBus



RobiD
06-22-2009, 03:09 AM
I have about 50 of these that I bought some time ago. No data sheet but this is what they look like.

http://www.bourns.com/data/global/pdfs/PEC12.pdf

Can they be used with FSBus.

David

sgaert
06-29-2009, 04:27 AM
hi,
they look good, but try it.

Stefan

RobiD
06-29-2009, 07:34 AM
hi,
they look good, but try it.

Stefan

Hi Stefan,

I have tried them but I am not getting what should happen as in the instructions.

Tried all things with them but I just get 1's and 0's. No -1's

I have followed the tutorial in the manual 100% but I must be missing something.

I have put all the gauges back into the sim and I am going to fly for a while and then do some more coding.

Appreciate any help you can offer with these encoders though.

Thanks
David

sgaert
06-29-2009, 07:45 AM
Tried all things with them but I just get 1's and 0's. No -1's


Did you mark them ase a rotary Input??

RobiD
06-29-2009, 08:22 AM
Did you mark them ase a rotary Input??

I followed Dirks instructions. I used flat cable, pin 1 to first wire, pin 2 second wire, pin 3 to third wire. (then I tried all variations of this ie: wire 1 to pin 2 etc)

Plugged it into port 20 or position 20 as it has to start on a even number, and in FSAdmin, Set key 20 to Phase A type rotary (infact, I tried all the types type b, BCD, even Greyhill even tried setting 20 and then 21 to type A, type B etc) they all did exactly the same thing ie:

20 1
20 0
21 0
21 1

sgaert
06-29-2009, 08:24 AM
Did you set the jumper for configuration?

RobiD
06-29-2009, 08:48 AM
Did you set the jumper for configuration?


Ok, there's something new. What jumper. Do I need to set a jumper to configure the switch type in FSAdmin?

sgaert
06-29-2009, 08:54 AM
IO-Docu on Page 18.
"Set J16 jumper on the IO board. Change to Set CID tab and set the
desired controller ID."

RobiD
06-29-2009, 09:04 AM
IO-Docu on Page 18.
"Set J16 jumper on the IO board. Change to Set CID tab and set the
desired controller ID."


The contoller CID of the DIO board is 27 and has been set for months, but are you saying that I have to set J16 in order to configure the switch types?

sgaert
06-29-2009, 09:06 AM
Yes. Every change on a FSBUS board (Display not) need to set the config jumper.

RobiD
06-29-2009, 09:11 AM
Yes. Every change on a FSBUS board (Display not) need to set the config jumper.


Great, thanks Stefan.

It's not clearly stated in the manual from an English speaking persective (I feel anyway)

So does that mean that when I was trying to get the Analog out to work with the fuel gauges, that I had to have J16 set to enable the port?

sgaert
06-29-2009, 09:13 AM
Yes, like i say every change.

RobiD
06-29-2009, 09:19 AM
Yes, like i say every change.


Thanks for solving another problem I'd given up on.

RobiD
06-30-2009, 05:56 AM
Hi Stefan,

Just an update. Tested the analogue out - works great
Rotary encoder Type B - works great.

Thank you, Thank you, Thank you.

Missing that tiny piece of info about the jumper was all that was wrong.

I'd still like to try to code the analogue out gauges if you are still willing to help me. If you can give me an example of what I need to write specific for voltmeters, I should be able to experiment with numbers until it works.

Thanks again.
David

sgaert
06-30-2009, 06:02 AM
Hi,
Analog Out is like a Servo.
You have a range of 0-255 on output.
Look to the FSUIPC SDK there you see the right calculations.

Stefan

RobiD
06-30-2009, 06:42 AM
So basically, I'd use the calibrate function.

sgaert
06-30-2009, 07:02 AM
thatīs right.