Search found 2099 matches

by jph
Wed Oct 05, 2022 3:38 pm
Forum: Lua and API Scripting Help
Topic: LUA script for stepper ENA+ ??
Replies: 12
Views: 120

Re: LUA script for stepper ENA+ ??

Ralph wrote: Wed Oct 05, 2022 2:42 pm Don't ask me ;) It would also be interesting for creating an autopilot.
Or motion platform... force feedback.. (via a dedicated custom UDP simple interface at 100Mb) Then you can also run real time closed loops / feedback and SPI / I2C natively. :D
by jph
Wed Oct 05, 2022 12:57 pm
Forum: Lua and API Scripting Help
Topic: LUA script for stepper ENA+ ??
Replies: 12
Views: 120

Re: LUA script for stepper ENA+ ??

This is a good one as well. I had a note of this one in my little book.... As can be seen again, the code is fairly simple when broken down. You can build the contraption and test it - you don't need to 3d print anything. A normal servo arm and a bit of bent wire will work ;) . Arduino code is in th...
by jph
Wed Oct 05, 2022 12:29 pm
Forum: Lua and API Scripting Help
Topic: LUA script for stepper ENA+ ??
Replies: 12
Views: 120

Re: LUA script for stepper ENA+ ??

No reason I can see that you can't do it as is in Lua as it ends up pretty simple as far as coding. These weren't the original videos I worked from - it is a long time ago - but similar breakdown of the math. There are loads of vids on YT that break it down to manageable levels The Arduino code shou...
by jph
Wed Oct 05, 2022 12:16 pm
Forum: Lua and API Scripting Help
Topic: LUA script for stepper ENA+ ??
Replies: 12
Views: 120

Re: LUA script for stepper ENA+ ??

Here's some Arduino code I did from 2014 - yikes... 8 years ago.. time flies. //PID Basic - 2014 // Joe Hanley // Basic code for PID loop based on 3DR instructional video void setup(){ } float pVal = 4.2; // P of our PID float iVal = 2.3; // I of our PID float dVal = 0.6; // D of our PID float Targe...
by jph
Wed Oct 05, 2022 10:49 am
Forum: Lua and API Scripting Help
Topic: LUA script for stepper ENA+ ??
Replies: 12
Views: 120

Re: LUA script for stepper ENA+ ??

Hi, The 'hall sensors' on the thrust levers ? - are they simply 'hall pots' ? - or if not specifically then I presume they output a varying analogue signal depending on angular position. ? If so, then you can simply feed the analogue signals into the ADC reads of the mega and read the ADC value to d...
by jph
Tue Oct 04, 2022 7:10 pm
Forum: Lua and API Scripting Help
Topic: LUA script for stepper ENA+ ??
Replies: 12
Views: 120

Re: LUA script for stepper ENA+ ??

The ena+ is a simple enable signal, logic 1 or 0 to enable.. depends on the driver. It is only labelled that way on certain drivers - usually the cheap Chinese ti clones It is an ideal use for a simple standard hw ouput add. As for what you are calling hall effect, you need to explain the setup you ...
by jph
Tue Oct 04, 2022 2:49 pm
Forum: Lua and API Scripting Help
Topic: Struggling with LUA and the basics
Replies: 28
Views: 495

Re: Struggling with LUA and the basics

Here is the answer to the autopilot switch functions. It appears that Justflight added that autopilot feature of automatically toggling on the A/P master when the HDG switch is placed in the ON position. That Piper Arrow sim and their autopilot control does not exactly mimic the real world operatio...
by jph
Tue Oct 04, 2022 7:21 am
Forum: Lua and API Scripting Help
Topic: Struggling with LUA and the basics
Replies: 28
Views: 495

Re: Struggling with LUA and the basics

Kirk, If the real aircraft switch can be energised to pull the lever switch on via the electromagnet, and yours is the same unit, then it should work. I believe you are using 14V. (I don't know why you chose that figure ?) What is the real aircraft using ? - possibly 28V. - or more importantly, what...
by jph
Mon Oct 03, 2022 6:54 pm
Forum: Air Manager Bug Reports
Topic: FS2020 Variable Write Bug
Replies: 17
Views: 1027

Re: FS2020 Variable Write Bug

Ralph wrote: Mon Oct 03, 2022 5:41 pm Then still I suspect a coincidence. As mentioned, nothing is different in the writing in both situations.
Exactly, correlation does not imply causation !
by jph
Mon Oct 03, 2022 6:51 pm
Forum: Under development and finished work
Topic: PA-30 Twin Comanche Gauges
Replies: 5
Views: 67

Re: PA-30 Twin Comanche Gauges

Search for an obscure new website called youtube, then search for Air Manager, then watch ALL the videos, yes yes, some are REALLY boring with too many 'errrs' in, but you will learn something. Then read through the forums here, then look at some sample instruments.. that should keep you occupied fo...