Questions of Adafruit Motor Shield V2

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bhl
 
Posts: 8
Joined: Fri Jan 10, 2020 3:35 pm

Questions of Adafruit Motor Shield V2

Post by bhl »

Hi All,
I am trying to use this online example ( https://www.instructables.com/3-AXIS-C ... ICAL-ENCO/ ) to test Adafruit Motor Shield V2.
What I want to do is to have Adafruit Motor Shield V2 mounted on top of Arduino Mega 2560, input the STEP/DIR control set point, and use the closed-loop control via getting the feedback signal from the encoders of the motor.
However, I got confused about the interfacing pins between the Arduino and Adafruit Motor Shield V2, which are the red blocks with "?" inside the following picture.
adafruit.png
adafruit.png (51.82 KiB) Viewed 115 times
I assume these pins should be among the digital I/O pins, but cannot identify what are the exact pin numbers. Would any educate me on it?
motor shield pin.PNG
motor shield pin.PNG (778.35 KiB) Viewed 115 times
Thank you!

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Questions of Adafruit Motor Shield V2

Post by adafruit_support_bill »

The motor shield does not have a hardware step & direction interface. The dual H-bridge chips on the board are controlled by a PCA9685 PWM chip with an i2c interface. Stepper motor functions are implemented in the library.

https://learn.adafruit.com/adafruit-mot ... per-motors

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”