0

Timing Stepper Motor in Increments not speed
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Timing Stepper Motor in Increments not speed

by Leroybrown505 on Tue Feb 12, 2019 3:24 pm

I understand stepper motors are really precise when it comes to turning at steady speeds. My question is, can the stepper motor move in increments? lets say move a belt a inch or two at a time. The install will be on a conveyor belt and need it to move inch by inch with a slight pause on each inch movement.

Can I accomplish this with these items

1. Easy Driver
2.Arduino UNO ? or which board would you prefer
3.Breadboard Power Supply 5V/3.3V
4.Breadboard
5.Stepper motor - NEMA-17 size - 200 steps/rev, 12V 350mA

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Tue Feb 12, 2019 4:20 pm

Yes, you should be able to do it with those components. You will need to calculate how many steps there are in an inch - which will depend on the diameter of your drive pulley - times any gearing up or down that you might add to the drive train. Then you can count out the steps in your code and add pauses as needed.

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Mon Feb 18, 2019 3:36 pm

adafruit_support_bill wrote:Yes, you should be able to do it with those components. You will need to calculate how many steps there are in an inch - which will depend on the diameter of your drive pulley - times any gearing up or down that you might add to the drive train. Then you can count out the steps in your code and add pauses as needed.



Another quick question, How would I link the stated equipment to a meter dispenser. Ill need the conveyor system to be timed with the meter to displace oils.

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Mon Feb 18, 2019 4:12 pm

Working backwards from the dispenser, first you need to know how much torque it takes to drive it. If it is more torque than the raw motor output, you will need to design in some gears or pulleys to gear it down for some mechanical advantage.

McMaster Carr and Stock Drive are good sources for shaft couplings, pulleys belts and other power transmission components.

http://sdp-si.com/
https://www.mcmaster.com/power-transmission

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Mon Feb 18, 2019 4:35 pm

adafruit_support_bill wrote:Working backwards from the dispenser, first you need to know how much torque it takes to drive it. If it is more torque than the raw motor output, you will need to design in some gears or pulleys to gear it down for some mechanical advantage.

McMaster Carr and Stock Drive are good sources for shaft couplings, pulleys belts and other power transmission components.

http://sdp-si.com/
https://www.mcmaster.com/power-transmission


Thank you, iv found all the gears already. My question is concerning how to link all these motors and dispensers to my computer. Id like to control everything from one central system/ ECU. I dont want to be running around turning everything on by plugging it into the wall. What computer board do I need from Arduino to control the conveyor belt, the dispenser and anything else i might link to the ECU.

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Mon Feb 18, 2019 4:42 pm

You can control the EasyDriver with just about any Arduino-compatible microcontroller. The Metro-328 would be a good choice:
https://www.adafruit.com/product/2488

And here is a link to the Arduino stepper library:
https://www.arduino.cc/en/reference/stepper

If you want to control this all from your computer, you can send commands over the USB/Serial cable to the Metro. There is a nice tutorial on the subject here: https://www.baldengineer.com/simple-ser ... duino.html

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Mon Feb 18, 2019 9:57 pm

adafruit_support_bill wrote:You can control the EasyDriver with just about any Arduino-compatible microcontroller. The Metro-328 would be a good choice:
https://www.adafruit.com/product/2488

And here is a link to the Arduino stepper library:
https://www.arduino.cc/en/reference/stepper

If you want to control this all from your computer, you can send commands over the USB/Serial cable to the Metro. There is a nice tutorial on the subject here: https://www.baldengineer.com/simple-ser ... duino.html


Next Question, If i want to link 6 of your Peristaltic liquid pumps to turn on at the same time and programmed to let out equal amount of liquid . Can I do this all from one easy driver ? do i need multiple drivers ? Or do you have one large driver to handle multiple applications ?

BTW thank you for all the help.

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Tue Feb 19, 2019 6:50 am

The Motor Shield can control up to 4 DC motors. And it is stackable, so you could use 2 of them to run the pumps: https://www.adafruit.com/product/1438

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Mon Feb 25, 2019 6:38 pm

adafruit_support_bill wrote:The Motor Shield can control up to 4 DC motors. And it is stackable, so you could use 2 of them to run the pumps: https://www.adafruit.com/product/1438


This stepper motor you provide " Stepper motor - NEMA-17 size - 200 steps/rev, 12V 350mA. " Does it have enough torque to turn a conveyor belt of this size ?

https://www.youtube.com/watch?v=pXWA3WwS4WE

What size of stepper motor would you recommend to turn this size of belt?

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Mon Feb 25, 2019 7:15 pm

Maybe if it is all ball-bearings and doesn't have much load on it. My guess is that you would need to use a higher torque motor with a 'chopper' type driver.

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Mon Feb 25, 2019 7:35 pm

adafruit_support_bill wrote:Maybe if it is all ball-bearings and doesn't have much load on it. My guess is that you would need to use a higher torque motor with a 'chopper' type driver.


So a high torque motor such as this one ? https://www.automationdirect.com/adc/sh ... IAEALw_wcB

Will the Adafruit METRO 328 be able to power this Motor and control it ?

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Mon Feb 25, 2019 8:00 pm

That motor looks like it could handle the job well.

No microcontroller - Metro 328 included - is capable of powering a motor directly. You need a motor driver and a power supply that is matched to the motor.
https://learn.adafruit.com/all-about-st ... he-stepper

For a motor like that, I'd recommend something like this: https://www.omc-stepperonline.com/digit ... m860s.html
I use 4 of these on my CNC machine. They can be controlled by the Metro 328.

You would also need a hefty power supply: something like: https://www.omc-stepperonline.com/power ... 00-36.html

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Fri Mar 08, 2019 3:54 pm

adafruit_support_bill wrote:That motor looks like it could handle the job well.

No microcontroller - Metro 328 included - is capable of powering a motor directly. You need a motor driver and a power supply that is matched to the motor.
https://learn.adafruit.com/all-about-st ... he-stepper

For a motor like that, I'd recommend something like this: https://www.omc-stepperonline.com/digit ... m860s.html
I use 4 of these on my CNC machine. They can be controlled by the Metro 328.

You would also need a hefty power supply: something like: https://www.omc-stepperonline.com/power ... 00-36.html



I just placed a order with you all , So far I bought.

3x Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit - v2.3

9x https://www.ebay.com/itm/DC12v-Large-fl ... 2749.l2649

1x https://www.ebay.com/itm/US-FreeShip-1A ... 2749.l2649

The Nema 34 is for the conveyor belt and the pumps are for liquid.

Which metro kit do i need to purchase for you all to connect all this stuff together and anything else i might need for power . https://www.adafruit.com/?q=metro%20328

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Re: Timing Stepper Motor in Increments not speed

by adafruit_support_bill on Fri Mar 08, 2019 4:50 pm

As noted above, the stepper motor is not compatible with the shield. and will require a separate power supply.

Those peristaltic pumps are somewhat marginal. The specifications listed say 0.5A-1.4A. However, they don't specify the conditions under which that was measured. The driver chips on the shield are rated for 1.2A continuous. You could keep it in the 'safe zone' (with about 25% lower max speed) if you power them with 9v instead of 12v.

The best Metro for the job will depend on the complexity of the code. The 328 version has 32K of program memory and 2K of RAM. The M0 version has 256K Flash and 32K RAM. https://www.adafruit.com/product/3505

To stack all the shields on the same Metro, you will need to build at least 2 of them with stacking headers. https://www.adafruit.com/product/85

Power requirements for the peristaltic pumps will depend on how many are running at a time. Assuming the worst-case of 9 pumps all running at 1.2A, that would be 10.8A.

adafruit_support_bill
 
Posts: 71811
Joined: Sat Feb 07, 2009 10:11 am

Re: Timing Stepper Motor in Increments not speed

by Leroybrown505 on Mon Mar 11, 2019 5:10 pm

adafruit_support_bill wrote:As noted above, the stepper motor is not compatible with the shield. and will require a separate power supply.

Those peristaltic pumps are somewhat marginal. The specifications listed say 0.5A-1.4A. However, they don't specify the conditions under which that was measured. The driver chips on the shield are rated for 1.2A continuous. You could keep it in the 'safe zone' (with about 25% lower max speed) if you power them with 9v instead of 12v.

The best Metro for the job will depend on the complexity of the code. The 328 version has 32K of program memory and 2K of RAM. The M0 version has 256K Flash and 32K RAM. https://www.adafruit.com/product/3505

To stack all the shields on the same Metro, you will need to build at least 2 of them with stacking headers. https://www.adafruit.com/product/85

Power requirements for the peristaltic pumps will depend on how many are running at a time. Assuming the worst-case of 9 pumps all running at 1.2A, that would be 10.8A.


I purchased this nema stepper kit, it came with driver, power supply etc https://www.ebay.com/itm/US-FreeShip-1A ... 2749.l2649

I purchased the 328 the MO wasnt in stock. Do i need to purchase a second 328 to run the 9 other peristaltic pumps and shields with headers?

Ill be running all 9 pumps, I purchased two stackable shields with headers. will i need a 3rd ? also what if i wanted to run max power ? What other drivers would i need to purchase ? Im pretty sure when in use, all 9 will be turned on and in function. I dont want to short circuit anything at all.

Leroybrown505
 
Posts: 9
Joined: Tue Feb 12, 2019 12:48 am

Please be positive and constructive with your questions and comments.