I notice since AM 3.0 you have support for an accelerometer and gyroscope. How did you connect it? I assume it was either using the iPad's sensor or did you guys hooked it up to a Raspberry PI via I2C or SPI?
Reason I am asking is that I have made a helicopter collective using a I2C based accelerometer/gyroscope and Arduino. It work very well. I was thinking of doing the same experiment but using AM 3.0 / AP 3.0 instead of and Arduino Joystick board.
Accelerometer
Re: Accelerometer
That was for the iPad, but it has been removed. You still can with the Arduino and the Arduino library.
Re: Accelerometer
I don't get it:
What is the use of converting your helicopter collective setup, currently using the Arduino as a Joystick card, into a device handled by AirManager?
In any simulator I know of, a collective movement should be interpreted as a joystick axis, no matter how it's done.
In that case a joystick card, (be it an Arduino converted into a Joystick card or a Joystick interface card like a Leobodnar BBI/BBX), will be more efficient than a complex decoding (and programming) of an analog signal in AM/Arduino using the library. Why reinvent the wheel in that case? I really doubt AM will be efficient as a joystick axis decoder, since axis filtering is involved.
Additional question: What is the program you used to turn your Arduino into a Joystick?
Jacques
What is the use of converting your helicopter collective setup, currently using the Arduino as a Joystick card, into a device handled by AirManager?
In any simulator I know of, a collective movement should be interpreted as a joystick axis, no matter how it's done.
In that case a joystick card, (be it an Arduino converted into a Joystick card or a Joystick interface card like a Leobodnar BBI/BBX), will be more efficient than a complex decoding (and programming) of an analog signal in AM/Arduino using the library. Why reinvent the wheel in that case? I really doubt AM will be efficient as a joystick axis decoder, since axis filtering is involved.
Additional question: What is the program you used to turn your Arduino into a Joystick?
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: Accelerometer
Jacques,
looking at the wheel and improving on it isn't so bad. That's who we humans are.
My motivation for the experiment are:
Resolution: Joystick drivers in Windows can only handle 8 bits (0..255) where AM3 (via Simconnect) can handle 0..16383.
Damping: Write my own code to damp the input signal
Signal: Manipulate the signal in any way to simulate control failure, control reversal or erratic behaviour for example.
Cost: Arduinos are cheaper than Leobodnar's joystick boards for example.
Fun: Designing your own joystick has more fulfilment than buying a joystick driver.
Mechanics: Accelerometers uses no gears. Just 2 screws to attach to the bottom of your collective.
I am using UnoJoy. Unojoy is available for the Mega and is called MegaJoy. The workflow for turning an Arduino into a joystick and the joystick back into an Arduino to make changes is the main reason I want to try out doing it with only AM3 and Arduino. Also the resolution mentioned earlier.
I also attached a 0.84 inch OLED screen to the Arduino. I can see a realtime plot of the collective's output. With the flip of a switch I can switch the damper on or off and see the effects of the damping code.
Since the sensor I use also have a gyroscope in, I am thinking of adapting the damper using the speed at which the pilot pulls or pushes the collective. But that's for another day.
Fritz
looking at the wheel and improving on it isn't so bad. That's who we humans are.
My motivation for the experiment are:
Resolution: Joystick drivers in Windows can only handle 8 bits (0..255) where AM3 (via Simconnect) can handle 0..16383.
Damping: Write my own code to damp the input signal
Signal: Manipulate the signal in any way to simulate control failure, control reversal or erratic behaviour for example.
Cost: Arduinos are cheaper than Leobodnar's joystick boards for example.
Fun: Designing your own joystick has more fulfilment than buying a joystick driver.
Mechanics: Accelerometers uses no gears. Just 2 screws to attach to the bottom of your collective.
I am using UnoJoy. Unojoy is available for the Mega and is called MegaJoy. The workflow for turning an Arduino into a joystick and the joystick back into an Arduino to make changes is the main reason I want to try out doing it with only AM3 and Arduino. Also the resolution mentioned earlier.
I also attached a 0.84 inch OLED screen to the Arduino. I can see a realtime plot of the collective's output. With the flip of a switch I can switch the damper on or off and see the effects of the damping code.
Since the sensor I use also have a gyroscope in, I am thinking of adapting the damper using the speed at which the pilot pulls or pushes the collective. But that's for another day.
Fritz
Re: Accelerometer
Fritz
That’s a very impressive goal, and I’m now pretty sure You’ll end up with a very nice wheel.
Let us know of your progresses.
Thanks for MegaJoy, was investigating for such program and could’nt find any for MEGA.
Jacques
That’s a very impressive goal, and I’m now pretty sure You’ll end up with a very nice wheel.
Let us know of your progresses.
Thanks for MegaJoy, was investigating for such program and could’nt find any for MEGA.
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: Accelerometer
Concerning the resolution: I thought Unos and Megas can only handle 10 bit (1024 steps) with the ADC?
Or how do you get 16384 steps out of it?
Or how do you get 16384 steps out of it?
Re: Accelerometer
Because he's using I2C?
Re: Accelerometer
Hi Fritz, do you have an update on your joystick Arduino project? I`ve finally had enough of FSUIPC. With al the new possibilities in AM the joystick interfacing remains the sole reason to holod on to FSUIPC.fweinrebe wrote: ↑Tue Jan 23, 2018 6:30 am Jacques,
looking at the wheel and improving on it isn't so bad. That's who we humans are.
My motivation for the experiment are:
Resolution: Joystick drivers in Windows can only handle 8 bits (0..255) where AM3 (via Simconnect) can handle 0..16383.
Damping: Write my own code to damp the input signal
Signal: Manipulate the signal in any way to simulate control failure, control reversal or erratic behaviour for example.
Cost: Arduinos are cheaper than Leobodnar's joystick boards for example.
Fun: Designing your own joystick has more fulfilment than buying a joystick driver.
Mechanics: Accelerometers uses no gears. Just 2 screws to attach to the bottom of your collective.
I am using UnoJoy. Unojoy is available for the Mega and is called MegaJoy. The workflow for turning an Arduino into a joystick and the joystick back into an Arduino to make changes is the main reason I want to try out doing it with only AM3 and Arduino. Also the resolution mentioned earlier.
I also attached a 0.84 inch OLED screen to the Arduino. I can see a realtime plot of the collective's output. With the flip of a switch I can switch the damper on or off and see the effects of the damping code.
Since the sensor I use also have a gyroscope in, I am thinking of adapting the damper using the speed at which the pilot pulls or pushes the collective. But that's for another day.
Fritz