Results 21 to 23 of 23
Thread: steppermotor and sensor
-
12-14-2012, 07:25 PM #21
- Join Date
- Jan 2009
- Location
- Belgium
- Posts
- 61
Re: steppermotor and sensor
Other question. How important is the IOCstepper file?
and specially
[ Asignaciones de Variables IOCP ]
[ IOCP Variable ]
[ Motor1 ]
IOCP_Var0=10
regards,
henri
-
12-15-2012, 01:43 AM #22
- Join Date
- Feb 2007
- Location
- Argentina
- Posts
- 187
Re: steppermotor and sensor
henri:
Download and read the manual in english please (link is in upper post)
http://www.opencockpits.com/images/u...tepper_eng.pdf
Since version 3.46 of SIOC, IOCstepper.exe and IOCStepper.ini are obsolete software.
You must not run this program. Instead, run SIOC and assign parameters in the variable link.
Ever, when you run SIOC.exe, the stepper motor runs two complete anticlockwise turns (calibration).
First turn to calculate the zero point, and second turn to count steps.
If the calibration is clockwise, just swap motor cables.
In the parameters, you can define the numbers of steps, and the operation (full steps or half steps).
For your motor, the full steps are 200, and half steps are 400.
In the manual, you have a script for an altimeter 100 feets needle.
You can add a gear train for better resolution,let SIOC make the calibration to know the number of steps.
If you need a 1000 feets needle, you must add another stepper motor, or add a reduction gear train of 10:1,
and feed the 100 feets needle with the stepper, but the sensor must work with the 1000 feets needle.
But warning, the calibration needs to be 20 turns anticlockwise (10 turns to zero, 10 turns to count steps)
And if you need a 10000 needle, is better to work with a servo. (or be patient, and wait 200 turns).
The best way to understand the work of USBstepper card is the "whiskey compass" script.
Var 0000, Link USB_STEPPER, Output 1, PosL 6, PosC 0, PosR 4, Type H
Var 0015, Link FSUIPC_IN, Offset $02CC, Length 8, Numbers 1 // FSimulator Compass
{
L0 = V0015 + 0 // Add X degree for my gauge center
IF L0 > 3600 // If is > 360 degree discount a full turn
{
L0 = L0 - 3600
}
V0000 = L0 // send degrees to stepper motor
}
-
12-15-2012, 08:21 AM #23
- Join Date
- Jan 2009
- Location
- Belgium
- Posts
- 61
Re: steppermotor and sensor
Thnx,
Ok good to now I can skip the IOCstepper.exe.
I've read the manual and still studying it. Any advice on what other stepper to look for?
regards
Candid connections: Platform for casual relationships Live Women Prime Сasual Dating
Super Сasual Dating - Genuine...