BTT Relay Firmware mod for Klipper
-
Install python 3.x
-
PowerShell command
pip install stcgal
-
Connect your board to any USB to Serial adapter
-
Put on Reset jumper
-
PowerShell command
upload.bat COM#
where # is your COM port number
- Erase Reset jumper
Add this lines to your printer.cfg config file:
[output_pin RELAY_ON_OFF]
pin: YOUR_MOTHERBOARD_PIN
value: 1
Now after Klipper starts it should set HIGH level on pin
Emergency Stop set LOW level, so printer will lost power
You can use G-code to remove power:
SET_PIN PIN=RELAY_ON_OFF VALUE=0 ; immediately shut down the printer
Microcontroller: STC15W204S
STC ISP programming software (v6.91)
For uVision compiler setup use that video