Astrofriend's homepage

www.astrofriend.eu
Share: Twitter Reddit Facebook Gmail Gmail Email
Search Astrofriend's homepage:

Valid CSS!

All pages shall now have been validated

Info Cookies (Kakor) / GDPR

Navigation

Advertisement /
Annons:

Tutorial News

Advertisement / Annons:

My astronomy project:
Stepper motor focus driver


Content:

  1. Collecting information
  2. Hardware tools for development
  3. Arduino Nano and DRV 8825
  4. Prototype setup
  5. Setup Arduino system
  6. Schematic / setup
  7. Start assembling circuit board
  8. Setup INDI for MyFocuserPro2
  9. Enclosure
  10. 5 kg load test
  11. High impedance stepper motor
  12. To be continued

Note:
I take no responsibility or liability for what are written here, you use the information on your own risk!

6, Schematic / setup:

Before I start to experimenting with different setups I need a drawing, some schematic. There are a lot of them but couldn't find any exactly how I want it. Here I take parts from two different drawings.


Arduino Nano and DRW8825 driver:

Stepper motor focuser driver Credit: R Brown

From this drawing I use the part that's framed in blue. Here you can find the original schematic and read more about it: Arduino Focuser Pro 2. This device will always be connected to USB power and doesn't need external 5 Volt power. But the stepper motor need 12 Volt direct to it. I have also included the three pin connector to the thermometer.


LED indicators and push buttons:

Stepper motor focuser driver Credit: Mattz40

Framed in blue. A blue and green LED indicate if the stepper moves outwards or inwards. Normally its operated from the computer over INDI driver, but for test purpose it can be operated by two push buttons. The Push buttons are connected to an analog input. A resistor network send different voltage for different combinations, both buttons pushed together reset the position counter. There is also a reset switch included. Here is more info about Mattz40's project: CloudyNights.

Later when I have verified that it works how I want it I do my own schematic how I have it connected.


Setup IN/OUT push buttons:

Stepper motor focuser driver

The MyFocuserPro2 focus controller is very flexible. For my version I need to enable the IN/OUT push buttons. It's done in the file focuserconfig.h, you get instruction from the document which can be downloader from files here: Arduino Focuser Pro 2.


Setup IN/OUT LEDs:

Stepper motor focuser driver

In the same setup file you also find the line that enable the IN/OUT LEDs if you want them.


Setup pin layout:

Stepper motor focuser driver

Later when I setup INDI driver for different micro stepping's mode I found that it doesn't worked as it should. After some investigating I found that the Arduino address wrong output pins that control the driver circuit. It's the line 55 and 57 that are wrong in the above code.


Stepper motor focuser driver

After I had mirror the pin layout, compile and upload to the Arduino it worked as it should.

Go Back to content

Go Back
To page VII

Advertisement / Annons: