Quantcast
Channel: fritzing forum - Latest posts
Viewing all articles
Browse latest Browse all 29610

Barn-door Astrotracker

$
0
0

Closer but still a few problems (I just discovered I could download the schematic and blow it up in Infanview which makes looking at it easier!): the push buttons and LCD look fine, but the motor driver still have some problems. First the Gnd pin on the bottom right needs to connect to ground on the Arduino (there are two grounds on the motor driver, one for the motor which is connected correctly and one for the logic which currently isn't connected). While they probably are connected together internally, current surges in the motor (which there will be) can affect logic ground causing problems, so using that as logic ground is a bad idea, so connect up the logic grounds by connecting the motor driver ground on the bottom right to Arduino ground. Then you are missing a connection from step on the motor driver to an output pin on the Arduino, the direction pin tells it which way to go, but it won't do anything unless the step pin is pulsed to cause it to take a step. Then reset needs a connection, I'd use a connection to the Arduino reset pin., that way when the Arduino is reset so will the motor driver which is likely what you want. Then the en pin needs to be connected to Arduino ground and slp needs to connect to a pull up resistor (1K is fine) to 5 volts to disable sleep mode. That should do it
for the connections I think. As to the current question basically yes, the higher the resistance
the less the current for the same voltage. This is controlled by ohms law which says
I =E/R where I is the current, E is the voltage and R is the resistance. In the case of your
10 ohm pull up resistor to 5 Volts we get 5/10 or .5 amps of current (likely more than the Arduino 5V supply can deliver) for each button pushed, so pushing all three at once would try and take 1.5A! With a 1K pull up resistor that drops to 5 milliamps a much more reasonable current draw. As to the question of battery packs, that depends on how much current the stepper takes. Unlike a dc motor which only draws current when it is running, a stepper motor always draws current (to hold the motor in its current position). It isn't uncommon for a big stepper motor to take upwards of 1/2 amp per phase which will flatten even a 5 amp hour battery
pack reasonably quickly. While in theory 5 amp hours should supply .5 amps for 10 hours in practice that time is usually less. Its going to be a case of try it and see I expect, you may end up having to put more batteries in parallel to get the time you want.

Peter Van Epp


Viewing all articles
Browse latest Browse all 29610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>