Adafruit Motor Shield V2: Difference between revisions

From Visuino
Jump to navigation Jump to search
Created page with "Image:TArduinoAdafruitMotorShieldV2.png == Summary == I2C motor control shield supporting DC motors, servos, and PWM channels with configurable drivers and pulse modulation. == Description == The Adafruit Motor Shield V2 component provides comprehensive motor control capabilities through I2C interface. It supports two driver channels each controlling two DC motors, multiple servo outputs, and 16 PWM channels. The shield features configurable motor parameters includ..."
 
No edit summary
 
Line 73: Line 73:
== Pins ==
== Pins ==
=== Input Pins ===
=== Input Pins ===
*'''SDA''' (i2c) I2C data line (Digital 18/Analog 4).
*'''Digital [9] (Servo 2)''' 
*'''SCL''' (i2c) – I2C clock line (Digital 19/Analog 5).
*'''Digital [10] (Servo 1)''' 
*'''Servo In''' (pwm) – Servo control input (Digital 9-10).
*'''Digital [I2C-SDA] 18 / AnalogIn[4]'''
*'''Motor1 In''' (pwm) – Motor 1 control input.
*'''Digital [I2C-SCL] 19 / AnalogIn[5]''' 
*'''Motor2 In''' (pwm) – Motor 2 control input.
 
*'''PWM0 In''' (pwm) – PWM channel 0 input.
*'''Servo In'''
*'''PWM1 In''' (pwm) – PWM channel 1 input.
*'''Motors / Driver1 / Motor1 In'''
*'''PWM14 In''' (pwm) – PWM channel 14 input.
*'''Motors / Driver2 / Motor2 In'''
*'''PWM15 In''' (pwm) – PWM channel 15 input.
*'''PWM Channels / PWM0 In'''
*'''PWM Channels / PWM14 In'''
*'''PWM Channels / PWM15 In'''


=== Output Pins ===
=== Output Pins ===
*'''Digital Out''' (digital) – Digital signal output.
*'''Digital [9] (Servo 2) – Out'''
*'''Analog (PWM) Out''' (pwm) – PWM signal output.
*'''Digital [10] (Servo 1) – Out'''
*'''Servo Out''' (servo) – Servo signal output.
*'''Digital [I2C-SDA] 18 / AnalogIn[4] – Out'''
*'''Motor1 Out''' (motor) – Motor 1 drive output.
*'''Digital [I2C-SCL] 19 / AnalogIn[5] – Out'''
*'''Motor2 Out''' (motor) – Motor 2 drive output.


== Categories ==
== Categories ==

Latest revision as of 00:04, 17 September 2025

File:TArduinoAdafruitMotorShieldV2.png

Summary

I2C motor control shield supporting DC motors, servos, and PWM channels with configurable drivers and pulse modulation.

Description

The Adafruit Motor Shield V2 component provides comprehensive motor control capabilities through I2C interface. It supports two driver channels each controlling two DC motors, multiple servo outputs, and 16 PWM channels. The shield features configurable motor parameters including slope control, PWM frequency adjustment, and servo pulse customization. Typical applications include robotics, CNC systems, automated controls, and any project requiring precise motor and servo management.

Diagram:

Properties

  • Motors – Motor driver configuration.
    • Address – I2C device address (Default: 0x60).
    • Driver1 – First motor driver.
      • Motor1 – Motor 1 settings.
        • Enabled – Enables motor (Default: True).
        • Initial Value – Initial speed value (Default: 0.5).
        • Slope Run – Acceleration slope (Default: 0).
        • Slope Stop – Deceleration slope (Default: 0).
      • Motor2 – Motor 2 settings.
        • Enabled – Enables motor (Default: True).
        • Initial Value – Initial speed value (Default: 0.5).
        • Slope Run – Acceleration slope (Default: 0).
        • Slope Stop – Deceleration slope (Default: 0).
    • Driver2 – Second motor driver.
      • Motor1 – Motor 1 settings.
        • Enabled – Enables motor (Default: True).
        • Initial Value – Initial speed value (Default: 0.5).
        • Slope Run – Acceleration slope (Default: 0).
        • Slope Stop – Deceleration slope (Default: 0).
      • Motor2 – Motor 2 settings.
        • Enabled – Enables motor (Default: True).
        • Initial Value – Initial speed value (Default: 0.5).
        • Slope Run – Acceleration slope (Default: 0).
        • Slope Stop – Deceleration slope (Default: 0).
  • PWM Channels – Pulse Width Modulation settings.
    • PWM0 – PWM channel 0.
      • Enabled – Enables channel (Default: True).
      • Initial Value – Initial PWM value (Default: 0).
      • On Value – Active PWM value (Default: 1).
    • PWM11 – PWM channel 11.
      • Enabled – Enables channel (Default: True).
      • Initial Value – Initial PWM value (Default: 0).
      • On Value – Active PWM value (Default: 0).
    • PWM14 – PWM channel 14.
      • Enabled – Enables channel (Default: True).
      • Initial Value – Initial PWM value (Default: 0).
      • On Value – Active PWM value (Default: 1).
    • PWM15 – PWM channel 15.
      • Enabled – Enables channel (Default: True).
      • Initial Value – Initial PWM value (Default: 0).
      • On Value – Active PWM value (Default: 1).
    • PWM Frequency (Hz) – PWM frequency (Default: 1600Hz).
    • Sleep – Sleep mode (Default: False).
  • Servo – Servo motor configuration.
    • Servo – Servo channel 1.
      • Enabled – Enables servo (Default: True).
      • Initial Value – Initial position (Default: 0.5).
      • Max Pulse – Maximum pulse width (Default: 2400μs).
      • Min Pulse – Minimum pulse width (Default: 544μs).
      • Reversed – Reverse direction (Default: False).
      • Use PWM Library – PWM library usage (Default: False).
    • Servo – Servo channel 2.
      • Enabled – Enables servo (Default: True).
      • Initial Value – Initial position (Default: 0.5).
      • Max Pulse – Maximum pulse width (Default: 2400μs).
      • Min Pulse – Minimum pulse width (Default: 544μs).
      • Reversed – Reverse direction (Default: False).
      • Use PWM Library – PWM library usage (Default: False).

Pins

Input Pins

  • Digital [9] (Servo 2)
  • Digital [10] (Servo 1)
  • Digital [I2C-SDA] 18 / AnalogIn[4]
  • Digital [I2C-SCL] 19 / AnalogIn[5]
  • Servo → In
  • Motors / Driver1 / Motor1 → In
  • Motors / Driver2 / Motor2 → In
  • PWM Channels / PWM0 → In
  • PWM Channels / PWM14 → In
  • PWM Channels / PWM15 → In

Output Pins

  • Digital [9] (Servo 2) – Out
  • Digital [10] (Servo 1) – Out
  • Digital [I2C-SDA] 18 / AnalogIn[4] – Out
  • Digital [I2C-SCL] 19 / AnalogIn[5] – Out

Categories

  • File:I2C.png – I2C communication interface components.
  • File:Motor.png – Motor control components.
  • – Servo motor components.
  • File:PWM.png – Pulse Width Modulation components.
  • – Expansion shield components.
  • File:Adafruit.png – Adafruit product components.
  • – Robotics and automation components.