Difference between revisions of "2016 Electrical Motor Shield"

From RoboJackets Wiki
Jump to navigation Jump to search
(Created page with "== '''Motor Shield''' == Photo: == Description and Usage: == Utilize Arduino-based PID control of motor via comparison of actual (from encoders) and desired (from USB) wheel...")
 
Line 90: Line 90:
 
    
 
    
 
   |
 
   |
power
+
power output
output
 
 
    
 
    
 
   |
 
   |
VCC
+
VCC (5V)  
(5V)
 
 
   
 
   
 
  |-
 
  |-
Line 112: Line 110:
 
    
 
    
 
   |
 
   |
Left
+
Left Encoder A
Encoder A
 
 
    
 
    
 
   |
 
   |
logic
+
logic input   
input   
 
 
   
 
   
 
  |-
 
  |-
Line 124: Line 120:
 
    
 
    
 
   |
 
   |
Right
+
Right Encoder A
Encoder A
 
 
    
 
    
 
   |
 
   |
logic
+
logic input   
input   
 
 
   
 
   
 
  |-
 
  |-
Line 136: Line 130:
 
    
 
    
 
   |
 
   |
Left
+
Left Encoder B
Encoder B
 
 
    
 
    
 
   |
 
   |
logic
+
logic input   
input   
 
 
   
 
   
 
  |-
 
  |-
Line 148: Line 140:
 
    
 
    
 
   |
 
   |
Right
+
Right Encoder B
Encoder B
 
 
    
 
    
   |
+
   |logic input
logic
 
input
 
 
   
 
   
 
  |-
 
  |-
Line 160: Line 149:
 
    
 
    
 
   |
 
   |
Left
+
Left Speed
Speed
 
 
    
 
    
   |
+
   |PWM output
PWM
 
output
 
 
   
 
   
 
  |-
 
  |-
Line 172: Line 158:
 
    
 
    
 
   |
 
   |
Left
+
Left Direction
Direction
 
 
    
 
    
 
   |
 
   |
logic
+
logic output   
output   
 
 
   
 
   
 
  |-
 
  |-
Line 184: Line 168:
 
    
 
    
 
   |
 
   |
Left
+
Left Disable ISO
Disable ISO
 
 
    
 
    
   |
+
   |logic output
logic
 
output
 
 
   
 
   
 
  |-
 
  |-
Line 196: Line 177:
 
    
 
    
 
   |
 
   |
Right
+
Right Speed
Speed
 
 
    
 
    
 
   |
 
   |
PWM
+
PWM output   
output   
 
 
   
 
   
 
  |-
 
  |-
Line 208: Line 187:
 
    
 
    
 
   |
 
   |
Right
+
Right Direction
Direction
 
 
    
 
    
 
   |
 
   |
logic
+
logic output   
output   
 
 
   
 
   
 
  |-
 
  |-
Line 220: Line 197:
 
    
 
    
 
   |
 
   |
Right
+
Right Disable ISO
Disable ISO
 
 
    
 
    
 
   |
 
   |
logic
+
logic output   
output   
 
 
   
 
   
 
  |-
 
  |-
Line 232: Line 207:
 
    
 
    
 
   |
 
   |
Serial
+
Serial monitor and input
monitor and input
 
 
    
 
    
 
   |
 
   |
USB
+
USB input from NUC   
input from NUC   
 
 
   
 
   
 
|}
 
|}
  
 
== Schematic ==
 
== Schematic ==
 +
[[File:Motorshield16 1.PNG|left|thumb|576x576px|Motor Shield Schematic (Download from GitHub[https://github.com/RoboJackets/igvc-electrical/tree/master/Motor_Shield] for best resolution)]]
  
 
== Notes: ==
 
== Notes: ==
 
Test bench: Work in progress.
 
Test bench: Work in progress.

Revision as of 21:38, 9 November 2016

Motor Shield

Photo:

Description and Usage:

Utilize Arduino-based PID control of motor via comparison of actual (from encoders) and desired (from USB) wheel velocities.

Connections:

Header

Function

Signal Type

R-OSMC

Control motor speed and direction

pwm/logic output

L-OSMC

Control motor speed and direction

pwm/logic output

L-Encoder

Read data from encoder

logical input

R-Encoder

Read data from encoder

logical input

Arduino

See next table

Arduino Header Connections to motor shield

Pin

Function

Signal

5V

power output

VCC (5V)

GND

Ground

GND

D2

Left Encoder A

logic input

D3

Right Encoder A

logic input

D4

Left Encoder B

logic input

D5

Right Encoder B

logic input

D6

Left Speed

PWM output

D7

Left Direction

logic output

D8

Left Disable ISO

logic output

D9

Right Speed

PWM output

D10

Right Direction

logic output

D11

Right Disable ISO

logic output

USB

Serial monitor and input

USB input from NUC

Schematic

Motor Shield Schematic (Download from GitHub[1] for best resolution)

Notes:

Test bench: Work in progress.