Robot Challenge:�Troubleshooting and Debugging
Coach Series
A random collection of tips.
Disclaimer: This private training is provided by the North Texas Region and is not affiliated or operated by the LEGO® Group or by FIRST ®. The LEGO Group® and FIRST® are not responsible for any of its activities.
1
Robot Design: Troubleshooting 101 – Coach Series
Learning Objectives
2
Robot Design: Troubleshooting 101 – Coach Series
Introduction
3
Robot Design: Troubleshooting 101 – Coach Series
Troubleshooting, there is no avoiding it.
4
Robot Design: Troubleshooting 101 – Coach Series
What is troubleshooting?
Troubleshooting is a systematic approach to problem solving to isolate and correct issues with machines, electronics, computers and software systems.
5
Robot Design: Troubleshooting 101 – Coach Series
5 Fundamental troubleshooting steps
You can observe a lot by just watching. - Yogi Berra
6
Robot Design: Troubleshooting 101 – Coach Series
5 Fundamental troubleshooting steps
7
Robot Design: Troubleshooting 101 – Coach Series
Essential Troubleshooting Questions
Research online, you are most likely not the first to encounter the problem.
8
Robot Design: Troubleshooting 101 – Coach Series
General Troubleshooting
“The best thing about LEGOs is they come apart.
The worst thing about LEGOs is they come apart.”
-unknown
9
Robot Design: Troubleshooting 101 – Coach Series
General Troubleshooting
Note: Always check backwards compatibility of firmware before updating.
10
Robot Design: Troubleshooting 101 – Coach Series
Opps!
When something goes wrong, wouldn’t it be nice to have an undo button?
Hardware Undo
Software Undo
11
Robot Design: Troubleshooting 101 – Coach Series
Common Problems and Fixes
12
Robot Design: Troubleshooting 101 – Coach Series
Motor or sensor is not working
Connect the SPIKE™ Prime or EV3 to a computer by Bluetooth or USB cable.
For SPIKE™ Prime, launch LEGO® Education SPIKE™ Prime application and use Hub Connection to verify the SPIKE™ Prime Hub is communicating with the motor or sensor.
For EV3, launch Mindstorms EV3 Classroom application and use Hub Connection to verify that the EV3 brick is communicating with the motor or sensor correctly.
For EV3, launch Mindstorms EV3 (LabView) application and use Port View to verify that the EV3 brick is communicating with the motor or sensor correctly.
13
Robot Design: Troubleshooting 101 – Coach Series
Motor or sensor is not working
For EV3 using the Classroom Application, with the robot connected to the computer, check on the Hub Connections that motor or sensor is connected.
14
Robot Design: Troubleshooting 101 – Coach Series
Motor or sensor is not working
For EV3, with the robot connected to the computer, check the port settings in your program.
15
Robot Design: Troubleshooting 101 – Coach Series
Robot not moving straight
16
Robot Design: Troubleshooting 101 – Coach Series
Jumping or erratic robot movement
FLL-C® rules do not permit the use of lubricants.
CASTER INCLUED WITH SPIKE PRIME KIT
CASTER INCLUED WITH EV3 KIT
17
Robot Design: Troubleshooting 101 – Coach Series
Battery charge may impact performance (EV3)
* The EV3 rechargeable battery may show over 9 volts at full charge.
EV3 LARGE MOTOR
18
Robot Design: Troubleshooting 101 – Coach Series
EV3 brick charge indicator green, but no power
Problem:
The EV3 brick or SPIKE™ Prime charge indicator displays green (Red and green indicate charging), but the brick does not power on.
Troubleshooting:
19
Robot Design: Troubleshooting 101 – Coach Series
EV3 flashes red briefly then stops
Problem:
EV3 indicator lights flash red briefly like it is starting but stops and lights go out.
Troubleshooting:
20
Robot Design: Troubleshooting 101 – Coach Series
Use EV3 Port View
21
Robot Design: Troubleshooting 101 – Coach Series
Using Wait blocks
Setting to released reduces the chance of interfering with the robot’s movement
22
Robot Design: Troubleshooting 101 – Coach Series
Using Wait blocks (continued)
23
Robot Design: Troubleshooting 101 – Coach Series
Watching program execute on screen
When the EV3 brick is connect by Bluetooth the Mindstorms EV3 (LabView) application indicates which block is current running by the colored bar scrolling.
This can help you isolate where the program is failing.
This block is currently running
24
Robot Design: Troubleshooting 101 – Coach Series
EV3 brick displays “Starting”
Problem:
The EV3 brick’s display “starting” but does not finish powering on.
Troubleshooting:
25
Robot Design: Troubleshooting 101 – Coach Series
EV3 firmware update fails
26
Robot Design: Troubleshooting 101 – Coach Series
EV3 brick hangs during firmware update
Problem: The EV3 brick hangs during a firmware update.
Troubleshooting: Manually update the firmware.
27
Robot Design: Troubleshooting 101 – Coach Series
EV3 Manual Reset
Problem: The EV3 brick stops working and will not turn off.
Troubleshooting: Perform a manual reset.
EV3 User’s Guide: Resetting the EV3 brick does not delete existing files and projects from previous sessions in the EV3 brick memory. Files and projects from the existing session will be lost.
28
Robot Design: Troubleshooting 101 – Coach Series
SPIKE™ Prime Hub Reset
To reset your Hub to factory settings:
Be careful - resetting your Hub will delete all your programs, and they can’t be recovered!
29
Robot Design: Troubleshooting 101 – Coach Series
SPIKE™ Prime – Robot moves backwards
Problem: Motors are configured incorrectly.
Fix:
30
Robot Design: Troubleshooting 101 – Coach Series
SPIKE™ Prime does not move the correct distance
Fix: Set the circumference of the wheel.
31
Robot Design: Troubleshooting 101 – Coach Series
SPIKE™ Prime Hub's color-coded error messages
32
Robot Design: Troubleshooting 101 – Coach Series
SPIKE™ Prime Hub's color-coded error messages
33
Robot Design: Troubleshooting 101 – Coach Series
The SPIKE™ Prime Heart Program
The SPIKE™ Prime Heart Program is a great resource for quickly testing sensors, controlling motors, or controlling a motor with a sensor.
When both sensors and motors are connected, the motors can power on.
34
Robot Design: Troubleshooting 101 – Coach Series
The SPIKE™ Prime Heart Program (continued)
35
Robot Design: Troubleshooting 101 – Coach Series
The SPIKE™ Prime Heart Program (continued)
For addition information:
https://community.legoeducation.com/blogs/31/77
https://youtu.be/xUYNxi3gEzs
36
Robot Design: Troubleshooting 101 – Coach Series
Preserving the SPIKE™ Prime Hub’s battery life?
If the SPIKE™ Prime Hub isn’t going to be used for an extended period, it is recommended to fully-charging the battery before storing it.
You can also extend the battery life by removing the battery from your Hub before storing it.
Storing the Hub with a completely drained battery is not recommended.
37
Robot Design: Troubleshooting 101 – Coach Series
Heads up! Error Message Workaround
38
Robot Design: Troubleshooting 101 – Coach Series
Heads up! Error Message Workaround - Steps
Can also be used for images to use in Robot Design presentation
39
Robot Design: Troubleshooting 101 – Coach Series
Project Download to Hub Fails after Copying
Symptom: After copying and pasting a section of code from a project to a new project, the new project will not download to the hub displaying Something went wrong message.
Check 1: Does the code copied contains a My Block?
Check 2: Was the My Block code copied to the new program in addition to the My Block input block?
40
Robot Design: Troubleshooting 101 – Coach Series
Project Download to Hub Fails after Copying
Tip: You may need to fit canvas to window to see the My Block on the new project canvas.
41
Robot Design: Troubleshooting 101 – Coach Series
Everything is awesome!
-Emmet Joseph Brickowski
42
Robot Design: Troubleshooting 101 – Coach Series