Hello there,
I am having adafruit motor shield V1.0. My question is, how can I configure PINS other than PIN allotted for motor shield and make it use as a breakout board using the same AFMotor Library? Reason is, I want more number of PWM Pins other than Pin 44,45 & 46 in Arduino Mega.
Adafruit Motor Sheild V1.0 as a Breakout Board
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Shubhs
- Posts: 22
- Joined: Wed May 13, 2015 8:04 am
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
- Shubhs
- Posts: 22
- Joined: Wed May 13, 2015 8:04 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
Actually I am NEW to this Electronic World. Initially I thought that for LCD PWM Pins is required, but it was not so.
I am having adafriut TFT LCD (2.8") and I want to use it as a shield using the adafruit_TFTLCD library. And I want to use 1 STEPPER MOTOR with adafruit motor shield V1 using AF_Motor library. So the PIN allotment in the Libraries of adafruit_TFTLCD and AF_Motor library i think are conflicting hence I can't see updates on LCD. But when I am making AF_Motor library as a comment line with also some other code lines related to it as a comment line, Display starts working. So how can I use it as a breakout board so that I can run LCD and Stepper simultaneously.
I am having adafriut TFT LCD (2.8") and I want to use it as a shield using the adafruit_TFTLCD library. And I want to use 1 STEPPER MOTOR with adafruit motor shield V1 using AF_Motor library. So the PIN allotment in the Libraries of adafruit_TFTLCD and AF_Motor library i think are conflicting hence I can't see updates on LCD. But when I am making AF_Motor library as a comment line with also some other code lines related to it as a comment line, Display starts working. So how can I use it as a breakout board so that I can run LCD and Stepper simultaneously.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
There are too many pin conflicts. I don't believe those two boards are compatible.
You should upgrade to the V2 motor shield. That requires only 2 pins.
https://www.adafruit.com/product/1438
You should upgrade to the V2 motor shield. That requires only 2 pins.
https://www.adafruit.com/product/1438
- Shubhs
- Posts: 22
- Joined: Wed May 13, 2015 8:04 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
Still is their any possibilities??? I think if I change the PIN numbers in .cpp & .h file, my problem can be solved & even I have tried it also. But didn't get the desired output. The LCD Screen was not working when I am using it as a shield. But any how I have made LCD to work as a Breakout Board but I couldn't able to do the same with Motor Sheild V1. So I believe it is possible to do so. Right now, I am using LCD shield as a Breakout Board and motor shield as a shield. But I want to use it reversely i.e. motor shield as a breakout board and LCD shield as a shield. So please kindly help me.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
The pin requirements for the motor shield depend on the motors you are using. https://learn.adafruit.com/adafruit-mot ... faq#faq-12
If you are using all of the motor channels, you will not have enough pins left for the LCD.
If you are using all of the motor channels, you will not have enough pins left for the LCD.
- Shubhs
- Posts: 22
- Joined: Wed May 13, 2015 8:04 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
I am using 1-Stepper motor(Nema 17) as I have mentioned earlier. So I don't have all the channel requirements. I only want to use either "M1 & M2" or "M3 & M4" ports. thats it! So how can I get that? as a BreakOut Board. :(
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
The link above lists the pin requirements for steppers:
The following pins are in use only if the DC/Stepper noted is in use:
Digital pin 11: DC Motor #1 / Stepper #1 (activation/speed control)
Digital pin 3: DC Motor #2 / Stepper #1 (activation/speed control)
Digital pin 5: DC Motor #3 / Stepper #2 (activation/speed control)
Digital pin 6: DC Motor #4 / Stepper #2 (activation/speed control)
The following pins are in use if any DC/steppers are used
Digital pin 4, 7, 8 and 12 are used to drive the DC/Stepper motors via the 74HC595 serial-to-parallel latch
- Shubhs
- Posts: 22
- Joined: Wed May 13, 2015 8:04 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
I have change the pin configuration in the .cpp & .h file and then connected the motor shield as a Break-Out Board but still I think adafruit_TFT Library and AF_Motor library are conflicting each other because LCD Screen is still White.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Motor Sheild V1.0 as a Breakout Board
Please post photos showing your wiring to the boards.
And also post the code you are using.
Use the "</>" button over the edit window and paste your code between the
And also post the code you are using.
Use the "</>" button over the edit window and paste your code between the
Code: Select all
tags.
Please be positive and constructive with your questions and comments.