Hello everyone,
I am working on a project and I just wanted to make sure what I want to do it possible -
If I stack an Adafruit Motor Shield on top of my Arduino Uno, can I stack this LCD kit (https://www.adafruit.com/products/772) on top of the AFMS?
In addition to that, for my project, I will be using Pins 9 & 10 for Servos, and I want to have 2 steppers wired in parallel to the Motor Shield. I want to use stacking headers on the LCD shield so I can still make connections to the Uno - I would like to be able to connect 2 limit switches, and an absolute rotary encoder (10bit) - by my count, that is 12 pull up signals + the 2 pins for servos (pins 0-13). The motor shield and LCD shield use the IC2 for communication correct?
Is this a viable set up? Any foreseeable issues?
LCD + Motor Shield + Uno Stacking
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88145
- Joined: Sat Feb 07, 2009 10:11 am
Re: LCD + Motor Shield + Uno Stacking
Yes. That will work.If I stack an Adafruit Motor Shield on top of my Arduino Uno, can I stack this LCD kit (https://www.adafruit.com/products/772) on top of the AFMS?
You will want an alternative wiring arrangement for the servos, since the servo headers will be obstructed by the LCD.I will be using Pins 9 & 10 for Servos,
Not sure what you mean by "wired in parallel". Depending on the motor specs, you risk overloading the shield with two motor coils per channel.and I want to have 2 steppers wired in parallel to the Motor Shield.
Other than that, it sounds like you have enough pins to do what you want to do.
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
I thought I read somewhere in the forums that for a pulley system, you could have a stepper on either end of your belt wired in parallel, so that they move at the same time and speed, is this not the case?
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
For something like this - I thought the two motors on top would be wired in paralell so that they move in sync.....
- adafruit_support_bill
- Posts: 88145
- Joined: Sat Feb 07, 2009 10:11 am
Re: LCD + Motor Shield + Uno Stacking
It depends on the motors. You can wire them in parallel - as long as the combined current/phase ratings for your motors do not exceed the 1.2A continuous rating for the shield.
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
Wow so I guess there really are somethings that you're not suppose to just jump into when trying to learn...
So if I'm reading you right - I'm totally screwed for using even just one of these motors...
All I'm trying to do is make a rail with a motor on either end (the rotary encoder is so I can move the platform by hand at varying speeds and locations, and the rig will "replay" the motion - its for a camera) that drive a platform via a belt on said rail .... I see people building 3D printers with 5 or more motors plus the extruder and stuff! How is this possible if I can't power a single one of these motors!? I thought these nema 17 motors were some kind of standard when I bought 2 of them. Does the high amps have to do with the 0.9 degree accuracy? Anybody need some 0.9 degree stepper motors? God I feel like an idiot right now...
So if I'm reading you right - I'm totally screwed for using even just one of these motors...
All I'm trying to do is make a rail with a motor on either end (the rotary encoder is so I can move the platform by hand at varying speeds and locations, and the rig will "replay" the motion - its for a camera) that drive a platform via a belt on said rail .... I see people building 3D printers with 5 or more motors plus the extruder and stuff! How is this possible if I can't power a single one of these motors!? I thought these nema 17 motors were some kind of standard when I bought 2 of them. Does the high amps have to do with the 0.9 degree accuracy? Anybody need some 0.9 degree stepper motors? God I feel like an idiot right now...
- Attachments
-
- image.jpg (140.91 KiB) Viewed 657 times
-
- image.jpg (167.15 KiB) Viewed 657 times
Last edited by Hungryman on Tue Nov 11, 2014 10:12 am, edited 1 time in total.
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
So looking back, I was definitely only looking at low voltage when I bought those motors, and thinking about it now, that cant be 1.9 v constant is it? Crazy high amps and low voltage? To be honest I was really bad with the math side of electronics - dropped out of 2nd year engineering because of it, but I still have an inventive mind, I thought that I could forget about amps and stuff with Arduino and build some stuff...
Anyway, if you would be so kind as to let me know if there is a motor you would recommend for the set up I described, alternately... A solution to how I can use these two 42BYGHW810 if it's possible would be great.
Anyway, if you would be so kind as to let me know if there is a motor you would recommend for the set up I described, alternately... A solution to how I can use these two 42BYGHW810 if it's possible would be great.
- adafruit_support_bill
- Posts: 88145
- Joined: Sat Feb 07, 2009 10:11 am
Re: LCD + Motor Shield + Uno Stacking
NEMA-17 is a standard - for the bolt hole spacing on the mounting faceplate. It has nothing to do with electrical specifications.
Low-volatge/High-current motors such as that one can achieve higher torques, but generally require a current-limiting driver to achieve full performance. This guide has some recommendations: https://learn.adafruit.com/all-about-st ... he-stepper
These NEMA-17 motors will work well with the Motor shield V2 - At 12v and 350mA/phase you can safely run 2 in parallel: https://www.adafruit.com/product/324
Low-volatge/High-current motors such as that one can achieve higher torques, but generally require a current-limiting driver to achieve full performance. This guide has some recommendations: https://learn.adafruit.com/all-about-st ... he-stepper
These NEMA-17 motors will work well with the Motor shield V2 - At 12v and 350mA/phase you can safely run 2 in parallel: https://www.adafruit.com/product/324
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
Thanks Bill, I bought a pair of those motors, I also got the LCD shield and a back up motor shield (just in case). Looking ahead, is there anything I need to do hardware wise when I stack the LCD/button shield on the motor shield? Or how do I go about assigning the IC2 address?
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: LCD + Motor Shield + Uno Stacking
Both the Motor Shield and the LCD Shield have rows of solder pads that you can use to set their addresses. They're both aggressively stackable. ;-)
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
Where is the row on the LCD shield? I have looked over it thoroughly and cannot find it. It is clear as day on the motor shield but I do not see it on the LCD
- adafruit_support_bill
- Posts: 88145
- Joined: Sat Feb 07, 2009 10:11 am
Re: LCD + Motor Shield + Uno Stacking
Unless Mike is aware of a recent revision on the LCD shield, it is not addressable without a bit of trace cutting and jumper work. But there is no conflict with the motor shield, so no change should be necessary.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: LCD + Motor Shield + Uno Stacking
Looks like I was talking shash.. thanks for catching me on that Bill.
The LCD Shield uses an MCP23017 I2C GPIO expander, which has three address pins. I'm so used to seeing those broken out that I hallucinated a row of jumper pads on the bottom of the PCB.
The LCD Shield uses an MCP23017 I2C GPIO expander, which has three address pins. I'm so used to seeing those broken out that I hallucinated a row of jumper pads on the bottom of the PCB.
- Hungryman
- Posts: 61
- Joined: Fri Oct 03, 2014 1:16 pm
Re: LCD + Motor Shield + Uno Stacking
Thanks Bill and Mike, so if I assign the motor shield to anything but 0 it will be fine.
I saw this thread from a couple years ago on 5-phase steppers
http://forums.adafruit.com/viewtopic.php?f=31&t=23830
Am I right to understand that we cannot use a 5-phase motor with the motorshield? Is there a different driver available?
I saw this thread from a couple years ago on 5-phase steppers
http://forums.adafruit.com/viewtopic.php?f=31&t=23830
Am I right to understand that we cannot use a 5-phase motor with the motorshield? Is there a different driver available?
- adafruit_support_bill
- Posts: 88145
- Joined: Sat Feb 07, 2009 10:11 am
Re: LCD + Motor Shield + Uno Stacking
That's not a common drive configuration. You might be able to hack something together based on a shield, but it would be a non-trivial hardware/software exercise.
Please be positive and constructive with your questions and comments.