07 · Save settings
Open this interactive lesson and device downloads
Goal
Save one Kp value and read it after reboot. This lesson does not run a robot controller.
Procedure
- Install this lesson, connect over USB and set Kp (default 2.5).
- Read
Loaded Kp=...; an existing saved value takes precedence. - Select “Apply to controller”, confirm the device value, then select “Save to controller” and wait for the save acknowledgement.
- Send
rebootin “Serial monitor”, reconnect, and verify the loaded value.
“Simulate save” and “Simulate restart” use browser storage; “Save to controller” uses board NVS. These stores are independent. USB downloads preserve saved parameters. Adjustments within this lesson require no new download.
Source: 07_nvs/main/main.c. The parameter service stores this lesson’s values in NVS and restores them on startup.
Storage scope
This lesson’s parameters are stored separately. Other lessons and Wi-Fi data are preserved.
Troubleshooting
Confirm the running project is 07_nvs and the device has acknowledged the applied value before saving. Moving a browser slider alone changes neither the device nor its stored value.
Verification
Save and reboot with two different Kp values and confirm the second replaces the first.