Kenpilot Posted February 29, 2024 Posted February 29, 2024 Hey guys. I can't get my home cockpit yaw trim pot to work for some reason. I'm using DCS Bios, Arduino Mega and a 10k Pot. I have the Pot connected to the Mega using a 5v pin, GND pin, and one of the Analog pins. I also copied the coding for the yaw trim from DCS Bios. It's not working at all, but the rest of the switches on my panel are. Yes, I've double checked all the connections, etc. Any idea what I'm doing wrong or might be the issue? Would a rotary encoder be better? Thanks! Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
No1sonuk Posted March 2, 2024 Posted March 2, 2024 Which version of DCS-BIOS are you using, and what code line?
Kenpilot Posted March 6, 2024 Author Posted March 6, 2024 On 3/2/2024 at 1:50 PM, No1sonuk said: Which version of DCS-BIOS are you using, and what code line? I'm using Version V.0.10.0+64 Code: DcsBios::PotentiometerEWMA<5, 128, 5> saspYawTrim("SASP_YAW_TRIM", PIN) Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
agrasyuk Posted March 7, 2024 Posted March 7, 2024 probably not much help, but my DCSBIOS-based SAS panel and the Yaw trim are working with the exact line of code you used. Or at least it was working before the latest patch, I didn't try it with the most recent open beta version yet. so i'd say keep troubleshooting, I assume you did replace the PIN in your code to the actual analog input . Anton. My pit build thread . Simple and cheap UFC project
Kenpilot Posted March 7, 2024 Author Posted March 7, 2024 6 hours ago, agrasyuk said: probably not much help, but my DCSBIOS-based SAS panel and the Yaw trim are working with the exact line of code you used. Or at least it was working before the latest patch, I didn't try it with the most recent open beta version yet. so i'd say keep troubleshooting, I assume you did replace the PIN in your code to the actual analog input . lol I did, but a very good question! Thanks for the response! Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
No1sonuk Posted March 7, 2024 Posted March 7, 2024 23 hours ago, Kenpilot said: I'm using Version V.0.10.0+64 Code: DcsBios::PotentiometerEWMA<5, 128, 5> saspYawTrim("SASP_YAW_TRIM", PIN) OK. That's the "Hub" version that's no longer supported by its original developer. I'm surprised it works at all now. You should switch to the "Skunkworks" fork (formerly called the Flightpanels Fork). That's actively maintained and updated. https://github.com/DCS-Skunkworks/dcs-bios There's an installation guide here: And a Discord here: https://discord.gg/T3bHedJk
Kenpilot Posted March 11, 2024 Author Posted March 11, 2024 On 3/7/2024 at 6:32 PM, No1sonuk said: OK. That's the "Hub" version that's no longer supported by its original developer. I'm surprised it works at all now. You should switch to the "Skunkworks" fork (formerly called the Flightpanels Fork). That's actively maintained and updated. https://github.com/DCS-Skunkworks/dcs-bios There's an installation guide here: And a Discord here: https://discord.gg/T3bHedJk Well damn. Ok, thanks for the heads up!! Now I just hope when I change over to this newer DCS Bios, everything still works! lol I'll give it a shot. Thanks!! Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
Kenpilot Posted March 11, 2024 Author Posted March 11, 2024 I downloaded and installed everything and the trim still isn't working correctly. I tried a different analog input on the arduino and tried a different arduino, still no luck. When I turn the knob, it reacts in certain positions, but it's very sensitive and doesn't turn the correct way and if I turn it all the way, the entire arduino disconnects and it doesn't work anymore, I have to close DCS out and restart it. It's very strange. Could it be the potentiometer I'm using? Should I try a Rotary Encoder? Thanks! Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
Sacarino111 Posted March 11, 2024 Posted March 11, 2024 Hi. I am checking the setup tab and I can't see the yaw trim as an axis, so I can't see the use of a pot. I'd rather switha to a rotary encoder and bind it as key inputs. Saludos. Saca111
Kenpilot Posted March 11, 2024 Author Posted March 11, 2024 27 minutes ago, Sacarino111 said: Hi. I am checking the setup tab and I can't see the yaw trim as an axis, so I can't see the use of a pot. I'd rather switha to a rotary encoder and bind it as key inputs. Saludos. Saca111 I'll try that, thanks!! Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
Kenpilot Posted March 11, 2024 Author Posted March 11, 2024 The Rotary Encoder did it! I have it working now. I'm also running the new DCS Bios. Thanks for all the help guys!! 1 Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
Kenpilot Posted July 29, 2024 Author Posted July 29, 2024 My rotary encoder was working fine and all of a sudden my rotary encoder stopped reacting normally. When I turn the knob left or right, doesn't matter how much I turn it, the yaw trim in the game just bounces back and forth a small distance. I replaced the encoder and checked the wiring and nothing helped. Any ideas? I tried re-uploading the arduino sketch and that didn't help either. Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
No1sonuk Posted July 30, 2024 Posted July 30, 2024 (edited) Do you have capacitors on the rotary encoder? Edited July 30, 2024 by No1sonuk
Kenpilot Posted July 30, 2024 Author Posted July 30, 2024 4 hours ago, No1sonuk said: Do you have capacitors on the rotary encoder? I don't, as it was working fine without them, but I'll go ahead and wire them in and see if that helps. Thanks!! Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
Kenpilot Posted July 31, 2024 Author Posted July 31, 2024 Wired the capacitors and it fixed the issue, BUT, now I'm having the same issue as my HSI Course knob, where each turn to a detent, turns the knob too far, too many pulses with each turn, so I can't fine tune the yaw trim. Any ideas? Windows 10 ASRock Z370 Extreme4 LGA 1151 (300 Series) MOBO intel i7-8700k (Not overclocked) 16 GB Ram EVGA GeForce GTX 108ti SC Black Edition SSD Trackir
No1sonuk Posted July 31, 2024 Posted July 31, 2024 See "example 2" at the bottom here: https://github.com/DCS-Skunkworks/dcs-bios-arduino-library/wiki/RotaryEncoder
Recommended Posts