This driver controller is based on py_rmd_servo by cHemingway. I modified and extended it specifically for the RMD-S series motor which is supposed to come with a DRC03 V2 driver. However, the driver identifies itself as a DRD02-S8 with version 1.7 firmware 🤷. This should work with RMD-S, RMD-L and many other Chinese BLDC motor drivers (maybe with some slight modifications). I've looked at many different driver manuals and a lot of them are using the same protocols.
This code is for the RS485 version of the driver. There is an option to get the driver with can-bus but this code will not work with it.
RMD-S-4005 motor driverI'm using Gradio as a quick-and-dirty way to get a working GUI to test out the functions of the motor. It's not exactly what Gradio was meant for but it does a great job and also looks clean.