Jump to content

Recommended Posts

Posted

All, if I am going to use rotary encoders with DCS Bios through a Nano (or other arduino) board the common pin goes to the GND pin, but do the other two pins have to be on consecutive pins, or can they be assigned arbitrarily?

 

On Bodnar boards they have to be adjacent pins, as the board has to be configured to accept encoders. Most of my inputs are via Bodnar boards but there are a couple of units (like the TISL I'm working on) that don't have configurable inputs in the controls setup screen so I have to go via DCS Bios. However it will complicate my PCB's if I have to ensure adjacent pins are used on the Arduino

 

Cheers

 

Les

Posted (edited)
All, if I am going to use rotary encoders with DCS Bios through a Nano (or other arduino) board the common pin goes to the GND pin, but do the other two pins have to be on consecutive pins, or can they be assigned arbitrarily?

 

On Bodnar boards they have to be adjacent pins, as the board has to be configured to accept encoders. Most of my inputs are via Bodnar boards but there are a couple of units (like the TISL I'm working on) that don't have configurable inputs in the controls setup screen so I have to go via DCS Bios. However it will complicate my PCB's if I have to ensure adjacent pins are used on the Arduino

 

Cheers

 

Les

sorry i can't answer your question but i have a quick question of my own for you if you don't mind.....my arduino has been setup for rotary encoders 8x2 (16 total) through the use of two parallel cables (going from two encoder boards to ardunio). is there a sketch i can use via DCS-BIOS to see if it works out of the gate? the ardunio has an ethernet and DB-25 x 2 (i purchased the combo, i did not wire them up) thx a ton!

Edited by bad_turbulence
Posted
All, if I am going to use rotary encoders with DCS Bios through a Nano (or other arduino) board the common pin goes to the GND pin, but do the other two pins have to be on consecutive pins, or can they be assigned arbitrarily?

I'm pretty sure they're arbitrary on the Arduinos because the code is looking at the pins in isolation, and you tell the function which pins to use.

The Bodnar boards are using more rigidly defined code in them to make them easier for people to use with minimal user setup requirements.

Posted (edited)
All, if I am going to use rotary encoders with DCS Bios through a Nano (or other arduino) board the common pin goes to the GND pin, but do the other two pins have to be on consecutive pins, or can they be assigned arbitrarily?

 

On Bodnar boards they have to be adjacent pins, as the board has to be configured to accept encoders. Most of my inputs are via Bodnar boards but there are a couple of units (like the TISL I'm working on) that don't have configurable inputs in the controls setup screen so I have to go via DCS Bios. However it will complicate my PCB's if I have to ensure adjacent pins are used on the Arduino

 

Cheers

 

Les

my arduino has been setup for rotary encoders 8x2 (16 total) through the use of two parallel cables (going from board to ardunio). is there a sketch i can use via DCS-BIOS to see if it works out of the gate? (i purchased the combo, i did not wire them up myself but have the wiring diagrams). It's used for x-plane currently. Arduino has ethernet added and 2 DB-25 added. Current functions of the encoders are left/right knob, single-push, double-push, and long push. This unit was produced by PeninsulaSims.com and currently, was designed for X-plane.

Edited by bad_turbulence
Posted

Pretty certain that there won't be an off the shelf sketch for testing it, however I wouldn't mind betting that there is an example sketch somewhere that uses one rotary encoder to light an LED or something that could be used - after all, as I understand it, the RE's just function as switches, so as long an you can change the input pin numbers in the sketch you can check them one by one. Once you know they all work, you can just allocate the pins to the input from DCS Bios

 

This example here uses a stepper and LCD module to test

 

https://howtomechatronics.com/tutorials/arduino/rotary-encoder-works-use-arduino/

 

Cheers

 

Les

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...