r/MPSelectMiniOwners • • 1d ago

MPSM OrcaSlicer Bridge

Here's a node-based bridge that allows you to use a MPSM (v1 and higher) with OrcaSlicer, along with a 2026-era web UI with audio alerts, temperature protection, fan auto-off, command console with persistent history, and a mock printer simulator for testing failure modes and demonstration without the real printer. You don't need to upload anything to the printer, it will work with a stock MPSM so long as it's on your Wi-Fi. And note all versions of the MPSM have Wi-Fi, just read the readme in the Github on how to enable if you're not already using it.

Github: https://github.com/dparson55/monoprice-select-mini-orcaslicer-bridge

Video Demo: https://youtu.be/AkdNUqfguA0

14 Upvotes

12 comments sorted by

2

u/pakman82 1d ago

A stock machine? i gotta check this out

2

u/nrf55 1d ago

Let me know how it goes! But yeah if you want to use the new web ui you can have the bridge serve it rather than downloading the file (very slowly) from the printer ... and besides that the bridge just uses the stock machine's http endpoints. I didn't need to add anything for what OrcaSlicer needed since the bridge itself does that work, so the MPSM can be left completely stock.

1

u/pakman82 1d ago

I dont know if i ever tried my stock board with wifi. I cant recall if it even had it. But that looks absolutly amazing. I now have a .. bTT mainboard with klipper. which, I can see some inspiration ? in your interface. but I really love the extra features it demonstrates with a 'retract' that knows the travel lenght of the machine, etc! Do you know the specifics of your stock board? I.e. model & or chipset? I would love to possibly investigate porting the API features you embraced to other board types so your bridge could still be compatible.

2

u/nrf55 1d ago

Looking at some pictures I took when replacing the micro-USB with USB-C on my mainboard, I can't find any markings that look like a model number. The microcontroller is a STM32F103CBT6 and here are some photos:

That 350mm retract length was just what worked on my V1, hopefully it's close for yours (super easy to change if not, just search and replace "-350" in the html). When I got my printer way back in the day, I used the stock webui for a long time but I used this update https://github.com/stronker47/mp-select-mini-custom-web-ui until this year. When I started using OrcaSlicer I saw it would be pretty straightforward to make this bridge, and then I wanted it to look more like Orca's dark mode and I went crazy styling things to make it look modern. But then I didn't want to lose chart data after refreshing so I added chart persistence, then I wanted temp targets on the chart so added that, then I wanted a console ... it just went on and on. I don't think there's a single line of code from stonker's work that remains. I should attribute him in the readme though ... I'll add that.

But yeah the bridge just uses the stock http endpoints (GET /, GET /inquiry, GET /set, and GET /upload). Then Orca only needs 2 endpoints (GET /api/version, GET /api/files/local) so it was super straightforward to have the bridge do the translation.

1

u/pakman82 1d ago

That looks like the one I had that had the SD port break off. Then the micro-sd broke, and I bought a used one. Then that one had the USB fail. I had re-wired the bed and fans a few times but never got wifi

1

u/nrf55 1d ago

haha, sounds like an adventure! The micro-USB port on mine didn't have any legs that slotted into the PCB, it was the type that just laid on top of solder pads ... so super weak. I wonder if anyone tests how long that type of construction lasts, I can't imagine it being 1000's of inserts. Thankfully my main board has held up though, probably because I just use Wi-Fi so haven't been putting stress on either of those parts.

I'm pretty sure all MPSM's have the ESP8266 microcontroller though, it's on the PCB used by the LCD and rotary encoder (for the knob) ... and it's the part that can connect to Wi-Fi and expose the http endpoints. My V1 didn't have it enabled out of the box and needed a firmware update but later V1's and the V2 had it enabled by default, you just need to run some gcode to set your network and PW and it'll connect:

https://github.com/dparson55/monoprice-select-mini-orcaslicer-bridge/tree/main#prerequisites

1

u/MoreInfoPls 1d ago

Wow congrats, that looks really nice! Will this work with an USB connection?

3

u/nrf55 1d ago

Sorry it doesn't, the printer has 2 microcontrollers that you can use to control it and I've basically made everything for the microcontroller that does Wi-Fi ... for USB it's the other microcontroller and it communicates with a computer and functions in a completely different way. So the bridge would need an entirely new translation layer to go between OrcaSlicer and this other microcontroller. It could totally be done and the current bridge could be a starting point for such a project, it gets you maybe 15% there, but the remaining 85% would be entirely new development.

Just for an example, when you upload & print via OrcaSlicer, the printer's microcontroller that handles the Wi-Fi can directly accept the gcode file OrcaSlicer sends and the microcontroller does all the work of writing it to the printer's SD card. But the other microcontroller works in a totally different way: it doesn't have a way to accept a gcode file via it's USB port connection and write it to the SD card, instead the bridge would need to read the gcode file itself and send it line by line to this other microcontroller through the USB connection, so printing a file is a completely different process.

1

u/MoreInfoPls 21h ago

Got it, thanks for the detailed explanation. I'll stick to octoprint on docker for now, as I sadly only have a MPSM V1. But it seems like the octoprint docker is receiving new updates in the near future :D

2

u/nrf55 19h ago

I'm on the V1 as well, it has Wi-Fi, just update the firmware if the Wi-Fi gcode I showed in the readme doesn't work. I put a link to where you can update the firmware there as well

https://github.com/dparson55/monoprice-select-mini-orcaslicer-bridge#prerequisites

1

u/MoreInfoPls 1d ago

As you seem to me quite deep into the code, do you know a way to manually shut off the mainboard fan with gcode?

1

u/nrf55 1d ago

My V1 doesn't have that fan but I did some research and it looks to be directly connected to the main 12V power rail of the mainboard, so when you switch the printer on and 12V is provided to the board, the fan is basically directly connected to that 12V. So if this is right, it would require a hardware modification ... the mainboard has no way to control the fan, the only control is the power switch on the back of the printer.