New firmware makes automation easier with new "Reset To Defaults" command

Started by bigjosh, January 31, 2025, 04:07:32 PM

bigjosh

I've made a fork of the CurrentRanger R3 firmware that makes it easier to control the device using scripts rather than human interaction.

It adds a new USB interface command "!" that resets all runtime settings to default variables. It does not change the calibration values.

This makes automation much easier because you can easily put the CurrentRanger into a known state. This makes it possible to, say, blindly send the string "!a34fu" and the CurrentRanger will reliably start streaming nanoamp values in the nanoamp format with BIAS disabled and LPF enabled. I do not think there is a way to do this robustly with the previous firmware.

In combination with the change described at https://lowpowerlab.com/forum/currentranger/always-power-up-cr/, I can now use the CurrentRanger in a test fixture to test current consumption as part of a production line.

This update also fixes up the three trivial compiler warnings by adding some parenthesis and adding a typecast.

You can download the new firmware here...
https://github.com/bigjosh/CurrentRanger/releases/tag/1.1.5