Skip to content

Releases

v0.2 — the plate on a phone

Choose a tag to compare

@vvzvlad vvzvlad released this 02 Dec 22:24

Open firmware for the Miniware MHP50 hot plate, written from scratch against a teardown of the stock APP V3.02. It runs on the author's plate; take it as an early release, not as a finished product. What it does differently from the stock firmware is a table in the README.

Try the interface before you flash anything: https://openware-project.github.io/openware-mhp50/emulator/ — this firmware built for WebAssembly inside a drawing of the plate.

New since v0.1.1

  • An application for the phone, served from this repository: https://openware-project.github.io/openware-mhp50/app/. Over Bluetooth it shows the temperature, the setpoint, the power and the words that stand on the glass; starts and stops a run; draws the plan of a program against what the plate actually did; reads the programs off the plate's disk, edits them as cards or as text, writes them back and runs them; and moves a .gcode file either way between the phone and the disk. Nothing to install — it is static files on a page — but it needs a browser with Web Bluetooth: Chrome or Edge, on Android or a desktop. Safari has none; on an iPhone use a browser that has it, such as Bluefy (not tested). Add ?demo=idle|heat|prog|end to drive it against a fake plate.
  • A channel of text commands, the same one over the USB serial port and over Bluetooth, in the shape instruments use: *IDN?, MEASure?, TEMPerature 150, HEAT ON, PROGram:RUN "leadfree.gcode", the log, the flash, the disk. The contract with every command, answer and error is fw/app/scpi.h; python3 tools/mhp50.py scpi "<line>" sends any of them from a terminal, and the phone application speaks those same lines.
  • The iron adapters SA80, SA115, SA210, SA245 heat: tip polynomials, resistance fits, the PID and the power caps of 36, 30, 60 and 140 W are all taken out of the stock image. This path has never run on real hardware — there is no adapter to plug into the author's plate, so it is written from the teardown and checked by arithmetic against the stock's own numbers, not against a hot tip. If you have an adapter, expect to find bugs; the plates are the part that is tested.
  • The phone application's graph says how many watts a full tooth of its power comb stands for, so the comb reads as a number and not just as a bar.
  • The loader is rewritten by the running application over USB — make flash-loader. The stock DFU disk is needed exactly once, to put the loader on a plate that has none, and as the way back if it is ever killed.
  • Crash and hang on command — SYSTem:CRASh and SYSTem:HANG — so the fault record and the watchdog path can be run on a plate instead of read in the source. The heater goes off first in both: measured on the bench, 88 W going into the plate when the command lands and idle current one sample later.
  • A flash page is written with one fast programming instead of 64 word writes.

Install

Unplug the plate, hold button A, plug its USB-C into a computer: the disk MHP50_DFU appears. Copy mhp50_full.hex onto it — that one file carries the loader and the application — wait for it to come back renamed .rdy, then replug the plate without holding anything. On macOS drag the file in the Finder; cp in the Terminal does not work.

After that both halves are updated over USB, with no buttons and no DFU disk:

python3 tools/mhp50.py flash mhp50_app.hex
python3 tools/mhp50.py flash-loader mhp50_loader.hex
File What it is
mhp50_full.hex the loader (0x08010000) and the application (0x08012000) in one file, for the stock DFU disk
mhp50_app.hex the application alone, for an update over USB through the loader
mhp50_loader.hex the loader alone, for an update over USB from the application

The stock bootloader, the option bytes, the chip UID and the external flash are never written, so the stock firmware can be put back at any time through the same DFU disk.

What is in it

  • Heating programs as .gcode files on the plate's USB disk, with steps, tolerances, settle times, the fan, the RGB LED and the buzzer; four editable presets and a setpoint set with the buttons for a constant temperature, with no time limit.
  • Heating from the DC jack and from a USB-PD charger, inside the power of the contract.
  • The stock's protections: no plate, tilted, the module too hot, the input too low; the tilt sensor can be switched off.
  • The disk belongs to the computer only in the disk mode, so the plate and the host never write it at once; the log of a run lands on it as RUNLOG.TXT while the run goes.
  • A log of everything the plate did, read over USB or over Bluetooth, and a record of the last crash that survives the reset.

Known limits

  • The iron adapter path has never been run on an adapter — see above.
  • USB-PD stops at 20 V and 100 W: EPR (28 V, 140 W) is left out on purpose, because the plate's own limit is 90 W by default and asks for no more.
  • Bluetooth takes one phone at a time and does not pair.
  • Broadcasting the log over Bluetooth needs its own build (make BTLOG=1 app), which takes the place of the command channel.

v0.1.1 — the watts on the glass

Choose a tag to compare

@vvzvlad vvzvlad released this 01 Dec 21:44

Open firmware for the Miniware MHP50 hot plate, written from scratch against a teardown of the stock APP V3.02. It runs on the author's plate; take it as an early release, not as a finished product. What it does differently from the stock firmware is a table in the README.

Try the interface before you flash anything: https://vvzvlad.github.io/openware-mhp50/emulator/ — this firmware built for WebAssembly inside a drawing of the plate.

New since v0.1.0

  • The glass shows the power, in two lines beside the big temperature: waves over a plate for the watts going into it, and the socket they come from — a plug for the DC jack, the trident for a USB-C charger — for the watts the input allows. The number is the power over the regulator's period, not of a single burst, so a plate holding a temperature shows what it really takes.
  • Those watts are now true watts. The stock firmware reads the DC jack as 8.057 mV a code, which showed 26.3 V where a lab supply gave 24.0, and turns a power limit into a duty through a current with a margin, so the limit was never the limit. Both are measured and fixed: set to 90 W, the plate draws 87.7 to 89.0 W on the supply, and the line on the glass says the same.

Install

Unplug the plate, hold button A, plug its USB-C into a computer: the disk MHP50_DFU appears. Copy mhp50_full.hex onto it — that one file carries the loader and the application — wait for it to come back renamed .rdy, then replug the plate without holding anything. On macOS drag the file in the Finder; cp in the Terminal does not work.

After that the application is updated over USB, with no buttons and no DFU disk:

python3 tools/mhp50.py flash mhp50_app.hex
File What it is
mhp50_full.hex the loader (0x08010000) and the application (0x08012000) in one file, for the stock DFU disk
mhp50_app.hex the application alone, for an update over USB through the loader
mhp50_loader.hex the loader alone

The stock bootloader, the option bytes, the chip UID and the external flash are never written, so the stock firmware can be put back at any time through the same DFU disk.

What is in it

  • Heating programs as .gcode files on the plate's USB disk, with steps, tolerances, settle times, the fan, the RGB LED and the buzzer; four editable presets and a setpoint set with the buttons for a constant temperature, with no time limit.
  • Heating from the DC jack and from a USB-PD charger, inside the power of the contract.
  • The stock's protections: no plate, tilted, the module too hot, the input too low; the tilt sensor can be switched off.
  • The disk belongs to the computer only in the disk mode, so the plate and the host never write it at once; the log of a run lands on it as RUNLOG.TXT while the run goes.
  • A log of everything the plate did, read over USB, and a record of the last crash.

Known limits

  • The iron adapters (SA80, SA115, SA210, SA245) are identified and measured, but they do not heat yet.
  • Bluetooth only broadcasts the log, and only in a build made with BTLOG=1.

v0.1.0 — first release

Choose a tag to compare

@vvzvlad vvzvlad released this 01 Dec 18:12

Open firmware for the Miniware MHP50 hot plate, written from scratch against a teardown of the stock APP V3.02. It runs on the author's plate; take it as a first release, not as a finished product. What it does differently from the stock firmware is a table in the README.

Try the interface before you flash anything: https://vvzvlad.github.io/openware-mhp50/emulator/ — this firmware built for WebAssembly inside a drawing of the plate.

Install

Unplug the plate, hold button A, plug its USB-C into a computer: the disk MHP50_DFU appears. Copy mhp50_full.hex onto it — that one file carries the loader and the application — wait for it to come back renamed .rdy, then replug the plate without holding anything. On macOS drag the file in the Finder; cp in the Terminal does not work.

After that the application is updated over USB, with no buttons and no DFU disk:

python3 tools/mhp50.py flash mhp50_app.hex
File What it is
mhp50_full.hex the loader (0x08010000) and the application (0x08012000) in one file, for the stock DFU disk
mhp50_app.hex the application alone, for an update over USB through the loader
mhp50_loader.hex the loader alone

The stock bootloader, the option bytes, the chip UID and the external flash are never written, so the stock firmware can be put back at any time through the same DFU disk.

What is in it

  • Heating programs as .gcode files on the plate's USB disk, with steps, tolerances, settle times, the fan, the RGB LED and the buzzer; four editable presets and a setpoint set with the buttons for a constant temperature, with no time limit.
  • Heating from the DC jack and from a USB-PD charger, inside the power of the contract.
  • The stock's protections: no plate, tilted, the module too hot, the input too low; the tilt sensor can be switched off.
  • The disk belongs to the computer only in the disk mode, so the plate and the host never write it at once; the log of a run lands on it as RUNLOG.TXT while the run goes.
  • A log of everything the plate did, read over USB, and a record of the last crash.

Known limits

  • The iron adapters (SA80, SA115, SA210, SA245) are identified and measured, but they do not heat yet.
  • Bluetooth only broadcasts the log, and only in a build made with BTLOG=1.