It's time to test your servos' feedback signal connections. If all is well, the example program below will cause the built-in LED on the Activity Board WX to blink on and off when you gently turn a wheel by hand.
- In BlocklyProp, create a new project named Test Encoders.
- Build the project shown below. Be sure the Robot initialize block's drop-down menu is set to ActivityBot 360°.
- Turn the robot's power switch (PWR) to Position 2.
- Click the Load and Run button.
- With your hand, gently twist the ActivityBot's left wheel. This movement should make the P26 LED turn on and off as you rotate the wheel.
- Repeat for the right wheel. Turning the right wheel should make the P27 LED turn on and off.
If It Doesn't Work
Here are some symptoms and causes:
P26 light stays off while turning the left wheel.
- The left feedback signal wire may be plugged into the wrong pin on the P14 servo port.
- The left feedback signal wire may be plugged into the P15 servo port instead.
- The left servo's 3-pin cable might be plugged in backward.
- The shunt jumper might be missing or incorrectly set on the voltage selector pins next to the P12/P13 servo port.
P27 light stays off while turning the right wheel.
- The right feedback signal wire may be plugged into the wrong pin on the P15 servo port.
- The right feedback signal wire may be plugged into the P14 servo port instead.
- The right servo's 3-pin cable might be plugged in backward.
- The shunt jumper might be missing or incorrectly set on the voltage selector pins next to the P12/P13 servo port.
P27 light instead of P26 light blinks while turning the left wheel (or vice versa).
- The feedback signal wires are swapped! Switch the wires plugged into P14 and P15.