Atmega 2560 Stepper Motor Controller Sec II

Well I finally got the code worked out correctly and the switches work now. I placed a 0.1uf capacitor at each switch with a 10k resistor to ground for switch debouncing and fixed it in the code also.

The LCD displays the motors direction now when the switches are pressed, now the hard part…either hack this motor some way to at least stop in positional degrees of at least .002 or find a motor that can. I know this seems insignificantly small in steps, but they are large enough to be significant when you rotate a diffraction grating towards a focal mirror, photons know the difference!

This is my latest YouTube video showing it in action;

Mega 2560 stepper motor controller

 

The code an be found here; Turret control for diffraction grating

 

 

 

 

 

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s