Python GPIO to slow (hx711 interface)
-
At work we have a little CoffeClock, which measures the weight of the coffee machine and show, how much is Coffee is left and how old the coffee is (little arduino project). I wanted to update it and add a website using my omega and python. For this I have to communicate with an HX711. I found a Python Class (https://gist.github.com/underdoeg/98a38b54f889fce2b237) which I modified. The problem is, that with onionGpio I need about 1ms to switch an output high and low.
The HX711 goes into power down state when the signal is high for more then 60µs ....
The question:- is there an faster python module?
- are system calls to fastGPIO faster?
- should I forget about wasting time with Python and do it in C++?
Thanks Guys for your help!
-
@Alexander-Pitzer Use of fastGPIO should definitely be faster.
You might also want to consider the libnewgpio C/C++ code I have published for accessing GPIO - see https://github.com/KitBishop/Omega-GPIO-I2C-Arduino/tree/master/libnewgpio