Hi to all,
does everyone have try to use the sparkfun qwiic motor driver for the dosing pumps? how can I use this board to make it work with mycodo?
Thanks
Hi to all,
does everyone have try to use the sparkfun qwiic motor driver for the dosing pumps? how can I use this board to make it work with mycodo?
Thanks
When asking questions about specific hardware, please post a link to that hardware or include as much technical specs about the hardware as possible so people will know exactly what hardware you are referring to without having to waste their time to look it up.
Please read the Mycodo Documentation before posting questions like this.
The Mycodo documentation includes lists of supported hardware for inputs and outputs…
If the hardware you want to use is not listed in the Mycodo Supported Outputs, then you will need to program your own Custom Output module to make it work with Mycodo.
Yes, I had looked if it was in the section of the supported outputs, mine was a rhetorical question.
The item is this : Hookup Guide for the Qwiic Motor Driver - SparkFun Learn
qwiic_motor_driver.py (17,2 KB)
ok, I just modified this file from " pump_grove_motor_driver_v1_3.py" .
I have some questions to do:
import qwiic_scmd
in the initial part of the code or is it necessary to install it in a different mode?-because I’m using the “scmd library” in the part of the code “class OutputModule(AbstractOutput):” I need to use the variables? of the scmd library ?
-when my code it will be complete I just need to load it in .py format in custom input ?
thanks
Any Python library imports that aren’t built-in should occur in initialize().
You will need to modify the output module to use the functions from your new library. You should use the module you’re copying as a rough framework, but all the old library functions will need to be replaced with the analogous functions of your new library.
Yes, but it will be an output, not an input. Be sure to use a unique file name and output_name_unique in the OUTPUT_INFORMATION dictionary, otherwise there will be a conflict with the existing output module when you attempt to import it.