arduino telescope drive


hello everyone,
total noob here. acquired bootloaded atmega 328p pu, still didnt chance try out ( max 232 ttl converter didnt work have buy usb ttl cable on internet).
anyway, practicing in arduino ide telescope project.
basically,it dobsonian telescope placed on eq platform needs 1 axis (and therefore 1 motor) track sky. planning add second motor turn on press of button, since want able tracking corrections in 2 axes.
my first question is, since ll having 2 sets of 4 conditions (monitoring 4 buttons under 2 different speed settings)
, better use if statements or switch? wrote program whee have 2 while loops 4 if else if conditions
all in all, program has capable of continuouslyvdriving 1 stepper motor @ constant speedwhile awaiting button inputs modify motor speed or briefly turn other motor. arduino capable of continuosly driving 1 motor while briefly turning other simultaneously?
i plan on using no delay approach make 2 motors running @ same time easier arduino.
i investigated hardware interrupts, there two. read on commercial eq mounts right ascension (tracking) commands serviced interrupts while declinayion (the other motor talking about) commands polled, because right ascension tracking mustnt interrupted while declination motor moving.
am better off using hardware interrupts ( or pin change interrupts ) right ascension commands instead of putting them under if or switch conditions? lose serial communication capability, dont plan on using initially, might helpful down road.

i know long post there things circling in head right had throw them out. hopefully, of familiar telescopes or eq mounts , understand babble tracking , guiding.

      in advance!

this demo several things @ time should illustrate how use millis() instead of delay , how detect switches while other things happen.

unless need detect brief events or count events happen don't need use interrupts - not needed detecting switches operate on human timescales.

are satisfed stepper motor suitable? don't know telescopes wonder if stepping abrupt. low geared dc motor , encoder option.

...r

edit add link had forgotten - humble apologies


Arduino Forum > Using Arduino > Programming Questions > arduino telescope drive


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support