WEBVTT

NOTE
Mastering the BEAR Actuator 06: Firmware flash & Calibration
Transcript by RoboGeeks: https://robogeeks.org/videos/9SpF0toSe7o

1
00:00:02.100 --> 00:00:13.100
Hello everyone! In this video, we'll introduce the accessories Westwood Robotics designed specifically for flashing and calibrating BEAR actuators and walk you through the complete process.

2
00:00:14.600 --> 00:00:25.100
First, prepare the following hardware. A power supply, data cables, the BEAR debugger, an ST-Link programmer, and the actuator to be flashed.

3
00:00:25.100 --> 00:00:33.100
You'll also need a Windows computer with STM32 ST-Link utility and BEAR calibration tool installed.

4
00:00:33.100 --> 00:00:40.100
Download links for the software and firmware files, along with the full documentation, are in the video description.

5
00:00:40.100 --> 00:00:47.440
Before flashing, check the assembly orientation and wiring order of the ST-Link.

6
00:00:47.440 --> 00:00:54.440
The connector isn't symmetrical, and inserting it the wrong way round will misalign the pins and prevent flashing.

7
00:00:54.440 --> 00:01:01.440
Use the small triangle mark on the ST-Link to orient it, and follow the wiring order shown on screen.

8
00:01:01.440 --> 00:01:05.170
Now let's start flashing the firmware.

9
00:01:05.170 --> 00:01:11.170
First, connect the ST-Link to your computer and to the 6-pin flash port on the back of the actuator.

10
00:01:11.170 --> 00:01:16.170
The port location varies by model, so check the documentation for yours.

11
00:01:16.170 --> 00:01:22.170
Then connect the actuator to the power supply and set the voltage within its operating voltage range.

12
00:01:22.170 --> 00:01:27.170
You can check the connection status from the light on the ST-Link in the actuator.

13
00:01:27.170 --> 00:01:30.170
Next, open STM32 ST-Link utility.

14
00:01:30.170 --> 00:01:35.170
Make sure the actuator is powered on, then click Connect to the target in the top left corner.

15
00:01:35.170 --> 00:01:42.170
Once it's connected, the connection details appear in the output window, and the light on the ST-Link starts flashing.

16
00:01:42.170 --> 00:01:46.170
Go to Target in the menu bar and select Program and Verify.

17
00:01:46.170 --> 00:01:53.170
In the pop-up window, click Browse and select the hex firmware file that matches your actuator model.

18
00:01:53.170 --> 00:01:54.170
Then click Start.

19
00:01:54.170 --> 00:01:58.170
Flashing runs automatically and usually takes just a few seconds.

20
00:01:58.170 --> 00:02:03.540
Note that sometimes a readout protection warning will pop up.

21
00:02:03.540 --> 00:02:14.540
If it does, click OK, then go to Target in the menu bar, select Option Bytes, change Readout Protection to Level 0, and click Apply.

22
00:02:14.540 --> 00:02:21.540
Then click Connect to the target again, Run Program and Verify once more, and click Start to finish flashing.

23
00:02:21.540 --> 00:02:30.860
Now for calibration, you'll need the Bear Debugger, an accessory designed specifically for calibrating bear actuators.

24
00:02:30.860 --> 00:02:37.860
Connect the debugger to the 4-pin port on the back of the actuator and power the actuator on.

25
00:02:37.860 --> 00:02:40.860
Open the Bear Calibration tool.

26
00:02:40.860 --> 00:02:47.860
In the connection target area, click Refresh to update the port list, then select the COM port for the debugger.

27
00:02:47.860 --> 00:02:52.860
In this video, it's COM5, but the port number varies from computer to computer.

28
00:02:52.860 --> 00:02:56.860
Then select the correct actuator model from the product list.

29
00:02:56.860 --> 00:03:01.860
Next, select a calibration step from the Start Step list.

30
00:03:01.860 --> 00:03:05.860
For a full calibration, uncheck Use Previous Flash Data.

31
00:03:05.860 --> 00:03:12.860
To run a specific step or skip certain steps, keep this option checked and select the desired starting step.

32
00:03:12.860 --> 00:03:15.860
Click Start to begin calibration.

33
00:03:15.860 --> 00:03:22.860
By default, calibration starts with the ADC Offset step and proceeds through the remaining steps in the order shown in the list.

34
00:03:22.860 --> 00:03:27.860
Note that Tor Compensation is optional. You can skip it as needed.

35
00:03:27.860 --> 00:03:31.860
Before calibration begins, a safety confirmation window will appear.

36
00:03:31.860 --> 00:03:37.860
Please strictly follow the safety instructions provided in the window, then click Yes to proceed.

37
00:03:37.860 --> 00:03:42.860
You can monitor the calibration progress using the Step Progress bar.

38
00:03:42.860 --> 00:03:47.860
Once a step is complete, the state panel on the left will display Waiting for Next.

39
00:03:47.860 --> 00:03:50.860
Click Next Step to continue.

40
00:03:50.860 --> 00:03:53.860
Each calibration step may consist of several sub-steps.

41
00:03:53.860 --> 00:03:57.860
Once all sub-steps are complete, a dialog box will appear.

42
00:03:57.860 --> 00:04:00.860
Click Yes to save the calibration values.

43
00:04:00.860 --> 00:04:03.860
Repeat this process for the remaining steps.

44
00:04:03.860 --> 00:04:07.860
After the final step is complete, a confirmation window will appear.

45
00:04:07.860 --> 00:04:12.870
The Bear Calibration tool also offers an Auto mode.

46
00:04:12.870 --> 00:04:17.870
Enable it and click Start to run all calibration steps automatically in sequence.

47
00:04:17.870 --> 00:04:20.870
You can disable Auto mode at any time.

48
00:04:20.870 --> 00:04:23.870
The current step will continue until it is complete.

49
00:04:23.870 --> 00:04:26.870
And the results of all completed steps will be retained.

50
00:04:26.870 --> 00:04:32.870
If a connection error occurs, check that the supply voltage is within the required range

51
00:04:32.870 --> 00:04:35.870
and that the communication cable is securely connected.

52
00:04:35.870 --> 00:04:39.870
Make sure to disconnect the ST-Link from the actuator before calibration.

53
00:04:39.870 --> 00:04:49.870
If the ST-Link remains attached to the actuator but is not connected to a computer, it will hold the actuator in reset, preventing the calibration software from connecting.

54
00:04:49.870 --> 00:04:58.870
The actuators may rotate or vibrate during certain calibration steps, so always follow the safety instructions in the safety confirmation window.

55
00:04:58.870 --> 00:05:02.870
Last but not least, when should you calibrate your Bear?

56
00:05:02.870 --> 00:05:10.870
We recommend running a calibration after flashing new firmware or whenever your Bear generates excessive heat or can't hold its position.

57
00:05:10.870 --> 00:05:13.870
Please keep in mind that calibration can't fix hardware damage.

58
00:05:13.870 --> 00:05:18.870
If you suspect a hardware problem, contact Westwood Robotics Support for help.

59
00:05:18.870 --> 00:05:22.870
Now, you've successfully flashed and calibrated your Bear actuator.

60
00:05:22.870 --> 00:05:24.870
Give it a try and enjoy building with Bear.
