Difference between revisions of "2016 Electrical Motor Shield"
(Tag: Visual edit) |
(Tag: Visual edit) |
||
| Line 15: | Line 15: | ||
| | | | ||
| − | '''Signal | + | '''Signal Type ''' |
| − | Type''' | ||
|- | |- | ||
| Line 26: | Line 25: | ||
| | | | ||
| − | pwm/logic | + | pwm/logic output |
| − | output | ||
|- | |- | ||
| Line 37: | Line 35: | ||
| | | | ||
| − | pwm/logic | + | pwm/logic output |
| − | output | ||
|- | |- | ||
| Line 48: | Line 45: | ||
| | | | ||
| − | logical | + | logical input |
| − | input | ||
|- | |- | ||
| Line 59: | Line 55: | ||
| | | | ||
| − | logical | + | logical input |
| − | input | ||
|- | |- | ||
| Line 69: | Line 64: | ||
| | | | ||
| − | See | + | See next table |
| − | next table | ||
|} | |} | ||
Revision as of 20:41, 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
Notes:
Test bench: Work in progress.