Thank you Tomas, I will look to do something like that.
Best posts made by Hen Ri
Latest posts made by Hen Ri
Unipi 1.1 and HX711
First of all, I wish an happy new year.
I've tried to connect a HX711 modul to the Unipi 1.1 but it doesn't work until now.
Basically, the HX711 semiconductor is 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales (https://www.mouser.com/ds/2/813/hx711_english-1022875.pdf).
This semiconductor works well with my arduino and with the raspberry alone but I'm able to make it works with Unipi, I tried to use Relay as well as Analog output as digital output but it is not working.
Is anyone already work with this kind of digital Converter with a Unipi 1.1 ?
can the neuron (with its digital output) solve the problem ?
Thank you everyone
RE: Problem with get_relay and jsonrpclib
I'll try in few hours.
So I will uninstall and reinstall everything.
Do you agree that I should use jsonrpclib-pelix for python 3.5?
Do I have to use the workaround that I used before or It should work without it?
Thanks for the help
Problem with get_relay and jsonrpclib
I'm a new user of Unipi and to begin with this board, I bought a Unipi 1.1.
I had a Raspberry running Raspbian GNU/Linux 9.1 (stretch)
and I used the last version of Python to code (3.5.1).
I install the 2.0 EVOK version according to the installation method available on github.
Then because I use python 3.5, I had problem with the jsonrpclib, so I uninstall the jsonrpclib and i install instead jsonrpclib-pelix. (https://forum.unipi.technology/topic/257/error-using-jsonrpclib/6)
And i used this workaround (https://forum.unipi.technology/topic/86/relay-command-with-python/3) because i had an error.
The web interface works well.
I try this code: (find here : https://wiki.mchobby.be/index.php?title=UniPi-EVOK-API)
from jsonrpclib import Server s=Server("http://192.168.1.16:8080/rpc") s.relay_set(1,1) print(s.relay_get(1)) s.relay_set(1,0) print(s.relay_get(1)) print(s.ai_get(1))
The relay is working.
My result print 3 times "None".
Is anyone know anything ?
It seems to be related with the workaround.
Should i continue with jsonrpclib or start with the websocket-client library?
Thanks a lot.
Kind Regards, Henri