Jump to content

Recommended Posts

Posted

On a separate thread I requested help with basic physical setup of DIY gauges for DCS, and happily I am now at the stage where I have 'working' gauges that interact with DCS BIOS.

 

The units run stepper motors (X27-168 steppers) with A4899 driver boards, however now I have the basics set up, I have to now get them to mirror the virtual cockpit gauges, i.e. have the pointer at zero when the RPM is zero, and at 50% when it should be 50%. Right now it seems that I have far too much motion. I think the sketch drives the gauge to self zero, and have have changed the 'maxsteps' config number to 1500 from 3900, but the motion still is virtually 100% of the available movement of the stepper even though the actual required travel is 60%.

 

I also see quite a bit of jitter in the movement of the stepper motor, it is far from smooth. I have a capacitor across the stepper power terminals as recommended, but research leads me to believe this is more for spike protection rather than noise.

 

Is there a way to set the motion correctly and eradicate the unwanted movement and jitter?

 

Cheers

 

Les

Posted

How have you connected MS1, MS2 and MS3? They are used for microstepping. If nothing is connected then the internal pull-dwon resistors will set the driver for full step, e.g. 200 step for one revolution or 1.8º per step. Try and set microstepping for higher resolution and see if that helps.

Then you need to apply this to your code. Granted I haven't spend too much time on steppers :music_whistling:

 

 

 

Cheers

Hans

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...