Cockpitbuilders.com

Main => Builders Discussions => Topic started by: mikeybear on April 25, 2018, 03:03:55 AM

Title: Stepper Motor Gauges
Post by: mikeybear on April 25, 2018, 03:03:55 AM
Hi .

I'm currently trying to build a couple of 3 needle gauges  using 3 stepper motors and have the prototypes working quite well.
The issue I still have to resolve , is zeroing them on startup , perhaps by using a photodetector .
Has anyone here solved this issue already ?

Thanks in advance

Dave
Title: Re: Stepper Motor Gauges
Post by: mickc on April 25, 2018, 05:25:12 AM
If they are continuous rotation steppers, then yes, you need to have a home position sensor.
Photosensors are a good option, I have also used hall effect sensors with micro neodymium magnets. 
Title: Stepper Motor Gauges
Post by: archen on April 25, 2018, 06:20:43 AM
How do you make them calibrate on each startup? I mean software wise?



Skickat från min SM-G955F via Tapatalk

Title: Re: Stepper Motor Gauges
Post by: Atomic_Sheep on April 26, 2018, 06:50:46 AM
Quote from: archen on April 25, 2018, 06:20:43 AM
How do you make them calibrate on each startup? I mean software wise?



Skickat från min SM-G955F via Tapatalk

Rotate stepper until either a photo or magnetic switch is triggered. Place photo or magnetic switch where desired.
Title: Re: Stepper Motor Gauges
Post by: mickc on April 26, 2018, 07:03:51 AM
Yep, pretty much what Dimitry said.

Make the stepper move in one direction until the home sensor is activated (this is obviously the physical "0" position of the gauge) then set the position in the code to 0 steps.

This will depend on your hardware platform etc
Title: Re: Stepper Motor Gauges
Post by: mikeybear on April 26, 2018, 09:50:24 AM
Thanks Mick,

I think I'm going to investigate using hall effect , before photodetector, as I have very little space to play with.

Regards

Dave