Jump to content

SkySurveyBanner.jpg.21855908fce40597655603b6c9af720d.jpg

Arduino Nano dual channel ASCOM focuser controller


blackdragon72

Recommended Posts

I managed to get my two channel focuser driver up. It is (including visual studio project) available here:


https://sourceforge..../?source=navbar


 


It uses one Arduino Nano to control two focusers. The protocol is based on Moonlite, and the main difference is that TempComp is handled by Arduino, not the driver (which I believe Moonlite does).


 


I have not tested it fully since I have only one telescope, on which one channel focuser works fine.


 


You should be able to connect the focuser via Moonlite driver directly, but my driver supports more commands than Moonlite so it wont talk to Moonlite focuser (it could be done by removing those additional commands).


 


The current sketch assumes uni-polar stepper, but I think you can change it to support bi-polar.


It supports two channels, with 2 manual control button; it also has one DS18B20 sensor.


It assumes that when button is pressed, the input is 0, when release input is 1.


 


#define                BUT_READING_RELEASED 0

#define                BUT_READING_PRESSED 1


 


#define                PIN_OUTPUT_MOTOR1_CH0 2             // Motor pin

#define                PIN_OUTPUT_MOTOR2_CH0 3

#define                PIN_OUTPUT_MOTOR3_CH0 4

#define                PIN_OUTPUT_MOTOR4_CH0 5

#define                PIN_INPUT_BUT_FW_CH0 7              // Maunal movement button

#define                PIN_INPUT_BUT_BW_CH0 8

#define                PIN_OUTPUT_MOTOR1_CH1 9             // Motor pin

#define                PIN_OUTPUT_MOTOR2_CH1 10

#define                PIN_OUTPUT_MOTOR3_CH1 11

#define                PIN_OUTPUT_MOTOR4_CH1 12

#define                PIN_INPUT_BUT_FW_CH1 14             // A0 Maunal movement button

#define                PIN_INPUT_BUT_BW_CH1 15             // A1

#define                PIN_INPUT_SENSOR 6                  // Tempeature sensors

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.