VelTek shield motor step

From Training Technology Lab Wiki
Revision as of 17:21, 9 May 2019 by Andb (talk | contribs) (→‎Setup)
Jump to navigation Jump to search

Required hardware components

To complete this exercise you need for following:

Arduino
VelTek shield
DC motor w. encoder
12V AC/DC adaptor
USB A to B cable
Motor cable
Small flat-head screw driver
Optional: cheap USB hub

Required software

  • A serial terminal program with logging capabilities. Putty is available on Windows/Linux/Mac and is recommended
  • Math program capable of importing numbers from a text file. Matlab or Octave is recommended, but Excel can also be used.

Setup

  1. Connect VelTek shield to Arduino
  2. Connect motor cable to DC motor. The little white plug can only go in one way. When inserted correctly, the orange wire is towards the edge of the circuitboard. (See picture)
  3. Use screwdriver to connect red and black wire from motor cable to the green terminal on VelTek shield. The red and black wire is for motor voltage that drives the DC motor.
  4. Connect blue wire to Arduino GND, and yellow wire to Arduino 5V. These wires power the encoder circuit on the back of the motor.
  5. Connect violet wire to Arduino pin 3 and orange wire to pin 2. These wires carry the output signals from the encoder on the motor.
  6. Plug the AC/DC adaptor into a 230V wall socket and then insert 12V plug from adaptor into the Arduino.
  7. Optional but strongly reccomended: Connect Arduino board to USB hub.
  8. Connect Arduino or USB hub with Arduino to your computer.

Hardware description

Software description