Generic Pitch Trim Hardware with Arduino Mega 2560
-
- Posts: 12
- Joined: Mon May 31, 2021 7:45 am
Generic Pitch Trim Hardware with Arduino Mega 2560
I am setting up the Generic Pitch Trim Hardware for use with Arduino Mega 2560 rotary encoder with FS2020. I have the Arduino Mega 2560 on Channel B Pin A on D2 and Pin B on D3. When I try to run and test I get an error logiclua:34: Failed to bind hardware I’d’s to connected hardware. I know the Arduino Mega is working with those digital inputs because I modified the instrument Cessna 172-Elevator Trim Indicator/Wheel and it works fine. It appears that the hardware coding the the Generic Pitch Trim is not working and I can’t figure out why.
-
- Posts: 12
- Joined: Mon May 31, 2021 7:45 am
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
I figured it out. Sometimes all it takes is writing a post .
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
Hi, unless I am not awake yet.. to which 'generic' pitch trim do you refer - I don't seem to see one offered ? (AM 4)onthemark40 wrote: ↑Sun Jun 06, 2021 5:56 am I am setting up the Generic Pitch Trim Hardware for use with Arduino Mega 2560 rotary encoder with FS2020. I have the Arduino Mega 2560 on Channel B Pin A on D2 and Pin B on D3. When I try to run and test I get an error logiclua:34: Failed to bind hardware I’d’s to connected hardware. I know the Arduino Mega is working with those digital inputs because I modified the instrument Cessna 172-Elevator Trim Indicator/Wheel and it works fine. It appears that the hardware coding the the Generic Pitch Trim is not working and I can’t figure out why.
Joe
Joe. CISSP, MSc.
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
There's a hardware function for this. But there's a bug that does not let you select the pins. It's gonna be fixed in the next release, this week.
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
Hi @Ralph
Can you please point me at what you mean by a hardware function for this - are you talking about the purely global encoder ? HW Dial add ?
Joe.
Joe. CISSP, MSc.
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
I meant this one.
-
- Posts: 12
- Joined: Mon May 31, 2021 7:45 am
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
That’s the one. I have it working now with FS2020. It did give me the option to choose the Arduino type and the pins to use for the encoder. There were also options for potentiometer and momentary push buttons. Worked great!! I forgot to update Air Manager from the Beta version to the latest version which was the problem. Once that was done everything worked great.
-
- Posts: 12
- Joined: Mon May 31, 2021 7:45 am
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
One thing I did notice was the Arduino selection and input pins are not being saved. Every time I start up the panel I need to reselect those setting. Other than that works great without issues.
Re: Generic Pitch Trim Hardware with Arduino Mega 2560
Yep, that's what I mentioned above. Also ADC pins do not show up in the Home tab.