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!

5, Setup Arduino system:

Now when most hardware are finished I have to setup the software development system. It's done in Arduino. This is a C++ based system and something I'm not very used to handle. Got a lot of help from my friend.


Download MyFocuserPro2 firmware:

Stepper motor focuser driver

I use the open source MyFocuserpro2 firmware to control the hardware driver to my stepper motor. Download the Firmware_myFP2_328.zip file and extract the files on your computer on your project map.


Download Arduino development package:

Stepper motor focuser driver

Download the latest version of Arduino and install on your computer. My system is a Windows 10 and 64 bit.


Install additional libraries:

Stepper motor focuser driver

Read through the ReadMe.txt files you find under different maps you installed from MyFocuserPro2. The red marks on the maps is because it's connected to GitHub, it's not needed.


Copy libraries catalogs to Windows document.

Stepper motor focuser driver

You need these libraries to be copied to your Windows document map.


Stepper motor focuser driver

Past them here, note this is my computer. Your setup can look different. There are other files here from earlier, it's from the setup of my 3D-printer.


Setup Arduino:

Stepper motor focuser driver

From the File tab, open the correct project file. I use the version with the DRV8825 stepper motor driver.


Power up the Arduino Nano:

Stepper motor focuser driver

I have the tiny Arduino Nano controller. It has it's own USB port where it get its power from. Connect it to your computer's USB port. The red light should turn on, maybe flashing in the beginning before setup correctly.


Setup Arduino Board:

Stepper motor focuser driver

The Arduino system must know which Arduino device you have, in my case an Arduino Nano.


Setup USB com port:

Stepper motor focuser driver

The Arduino system normally find the USB port by automatic where the the Arduino device is connected. COM3 in my case.


Setup processor version:

Stepper motor focuser driver

When starting the system it failed. It had to be setup as 'Old Bootloader'.


Test compile:

Stepper motor focuser driver

Do a test compile, the left upper button. It could take10 to 30 seconds.


Upload compiled files:

Stepper motor focuser driver

If the test compile got okay proceed with uploading the compiled file to your device. If it goes wrong the red light on the device start flashing.


Stepper motor focuser driver

Now the Arduino system is ready to start develop the focuser software, you mostly only have to setup it up to your demands. The setup files is the ones that have the extension *.h. Look through them until you have found all functions you want to activate.

Go Back to content

Go Back
To page VI

Advertisement / Annons: