Close

Small Improvements

A project log for Power Supply B3603 Alternative Firmware

B3606 is a cheap MCU controlled power supply, I'm reverse engineering it and writing software to add serial port and more features.

baruch-evenBaruch Even 02/25/2015 at 21:480 Comments

Today I worked on improving the code and adding small but important (to me) features.

The first is automatic and manual commit of settings. It is now possible to tell the device not to auto-commit and then be able to change both voltage and current in a single motion by setting the voltage, then the current and then commiting both into action.

A configuration of the device options is now done automatically so it will be easier to deploy the firmware. This is an option that is required to be able to PWM control the voltage and current and it took me a while to figure out how to program the flash.

The last feature of today is saving the configuration to flash for persistency. This is a small feature by itself but important to make calibration of the device worthwhile since otherwise it would be needed to calibrate it every time it is started.

Along the way I improved the code to make it more manageable.

Next up, calibration of the device.

Discussions