Teensy based control board designed for adding closed loop control to OWI-535 Robotic Arm Edge kit.
Using the 6 D cell battery output is suggested. See assembly notes for more details.
The Teensy is not powered by the batteries, and must be provided USB power for the robot to operate.
Each motor is driven by a pair of signal pins signals from the Teensy. Setting one HIGH
and the other LOW
will result in moving the motor, and thus each joint.
- Pins
10
and9
controlM1
, opening and closing the claw. - Pins
6
and5
controlM2
, the "wrist" joint - Pins
4
and3
controlM3
, the "elbow" joint. - Pins
20
and21
controlM4
, the "shoulder" joint. - Pins
22
and23
controlM5
, which rotates the arm - Pin
13
controls the light on the claw end. This is the same as the Teensy's built in LED.
For closed loop feedback, the following pins are available:
- Pin
A1
corresponds toM1
's potentiometer. - Pin
A2
corresponds toM2
's potentiometer. - Pin
A3
corresponds toM3
's potentiometer. - Pin
A4
corresponds toM4
's potentiometer. - Pin
A5
corresponds toM5
's potentiometer.
Note, each potentiometer "tuning" will be somewhat different, and require some setup for each robot and each joint.
The controller uses the same analog pins as the Analog feedback. As a result, it's not simple to use the controller for input when the analog feedback is plugged in. However, doing so will not harm the electronics.
- Pin
A1
corresponds toM1
's joystick. - Pin
A2
corresponds toM2
's joystick. - Pin
A3
corresponds toM3
's joystick. - Pin
A4
corresponds toM4
's joystick. - Pin
A5
corresponds toM5
's joystick. - Pin
A0
corresponds to the Light slider.
Due to the joystick construction the joystick will only generate a few values. When read using AnalogRead
, you will get roughly 512
when the joystick is idle, and around 1023
or 0
when the joystick is pressed.
The LED switch is wired up to it's own unique input, and can be used alongside a closed loop input without issue. The LED
switch will be around 512
when off, and 1023
when on.