Hello to the community!!
Im a radio amateur,working in electronics a lot of yeatrs but very new to arduino.Blink some leds etc!!!
Im working in a antenna tuner and i need to operate to nema17 steppers to turn 2 air capacitors.I have two L298N controllers,two arduino nano and one UNO and a 2x16 lcd.The project is that i need from a distance to operate individual the two motors with just up-down buttons to tune the capacitor.But i need to see in the lcd screen the position in a manner of number.something to know to come back there.pulses,degrees anything simple.
the first capacitor is around one full turn but the second is 60 turns from one end to another.
please can you give me some advise how to do that?something to copy?im stupid to programming this new little things.
Thank you
George
Hello and welcome George, first thing, NEMA 17 only describes the dimensions of the motor's mounting face, nothing about it's electrical characteristics, could you provide a link to the motor or tell us it's rated voltage, current, steps per revolution, bipolar or unipolar, etc?
Manufacturer Part Number 17HS16-2004S1
Step Angle 1.8°
Step Accuracy 5%
Holding Torque 45Ncm(63.7oz.in)
Rated Current/phase 2A
Phase Resistance 1.1ohms
Voltage 2.2V
Inductance 2.6mH±20%(1KHz)
Weight 300g
sorry!!!new to that.with the position on the lcd i want to avoid systems with potentiometers etc.Can we make something that i will zero the motor in one position and then it will count the steps so i will know where it is?i can think something 200 steps pre revolution.this is around 100 steps per half turn.so when i need the capacitor at 45deg angle i have to count 50 steps.This is not a CNC machine so i want to count it rough and not precicely.
i have read the links but im little to very confused.anyone have made something close to copy it???im good on electronics but nothing on programming
Those are pretty hefty motors, too much current for L298s, you're going to need a driver like this or similar:
You can use mechanical limit switches, optical break-beam devices or magnets and hall effect sensors to make a homing device for the motors, I can't imagine how capacitor # 2 works, is it a gear reduction device or ...? Can you post a drawing?
HowToPost
to find bigger driver is the easy thing.to difficult is the program.
the first capacitor is 180 deg turn from one end to another.the second capacitor have 60 turns for one side to other.vacuum glass capacitor.they are driven 1:1 with rubber belt.
i want to avoid magnets,switches etc.something that counts only the pulses will be fine for me in the lcd to find the exact spot on the cpacitor and later i can add limit switches.
where can i find something to start please???
george79:
.to difficult is the program.[....]
where can i find something to start please???
In the second link in Reply #2
Programs need be be developed in small stages. Start with a simple program that can make the motor move a specified number of steps.
...R