project description: I’m using a RPi as a smart thermostat using machine learning techniques. This is a python script running on my device, which is working fine. I currently use Cayenne to visualize my control scheme & temperature, but also want to use it to communicate a setpoint to my script to overrule the setpoint of the ML agent, eg when I’m coming home later.
hardware: RPi 3B (wifi), kernel 4.4 (downgraded from 4.9 as adviced), temperature sensor+relais, android cayenne app
my question: I want to make a slider that communicates a setpoint value (eg 20°C) to the RPi, which the script can use as input in the control scheme.
what I had in mind but didnt work: a cayenne slider on the PWM output 18 of the RPi, then read in my script the voltage on this pin.
Simply controlling the relais from the Cayenne app is working fine, but is not what I want to do.
Should I have a physical PWM driver to do this? Is there an alternative to communicate a setpoint value from the cayenne app to the RPi?