compatibility layer for SLA printers with Chituboards like the Photon and Mars series
Added basic support chituboard based printers(Elegoo Mars, Anycubic Photon, Phrozen, etc.) to octoprint.
- upload files to folder
- File analysis CLI command works
octoprint plugins chituboard:sla_analysis NAME
- Plugin might not work if you’ve updated your Elegoo Mars printer to the newest firmware due to issues with Chitu3d encrypting their files so users are forced to use Chitubox 1.9.0. I’m not planning on incorporating the non FOSS chitubox SDK into an AGPLv3 licensed plugin.
Install via the bundled Plugin Manager or manually using this URL:
- Raspberry Pi Zero W, Zero WH, 3A+ or 4B only supports raspberry pi’s with USB-OTG ports
- Supported printers: SLA printers with chitu3d mainboard
- Anycubic Photon
- Elegoo Mars
- Elegoo Mars Pro
- Elegoo Mars 2
- Elegoo Mars 2 Pro
- Elegoo Saturn
- Phrozen Sonic Mighty 4K
- Phrozen Sonic Mini 4K
- Creality LD-002H
- Creality LD-002R
- Peopoly Phenom L
- EPAX E10/X10
Follow hardware setup instructions in source repo https://github.com/rudetrooper/Octoprint-Chituboard
Connecting Pi to printers USB port
Our goal here is to use the Pi as a USB flash drive. The printer mainboards use the USB port to read USB FAT storage devices not for serial control. The printer can only supply around 500 mA via the 5V line so its best to power you pi with an external power source. Follow one of these steps.
- Put some tape on the 5V line of your USB cable. This tutorial is a good reference on how to do this.
- Cut the connection between the 5V line and the USB port on the Pi. Some people online do this, but I didn’t want to do any permanent changes to my Pi.
- The USB-OTG port on the Raspberry pi 4B is also the USB host port
- users should put tape on the USB-A end of your USB C to USB A cable
- users will also need to power the pi via the GPIO pins, I suggest using the X735.
- users who forget to tape over the 5V pin on will risk frying their pi 4B
Connecting the Pi to the printer’s serial port
Connect the jumper wires from the pi’s UART0 port to the Elegoo Mars 2 motherboard like this. pinout.xyz is a good reference if you’re unfamiliar with the Raspberry Pi’s GPIO pins. Note that the Pi’s TX pin is connected to the motherboard’s RX pin and vice-versa. Connect GND to GND, Rx to Tx, and Tx to Rx
Used code or studied file format reverse engineering from these repos: