311
edits
Line 14: | Line 14: | ||
|} | |} | ||
curl -u "admin:password" http://10.111/cm?cmnd= | curl -u "admin:password" http://10.111/cm?cmnd=power1+1 | ||
rules so that motor direction gets activated, with a timeout. But if current limit hits, then cancel | rules so that motor direction gets activated, with a timeout. But if current limit hits, then cancel | ||
Rule1 ON Power1#state=1 DO backlog Delay | Rule1 ON Power1#state=1 DO backlog Delay 50; Power1 0 ENDON | ||
rule1 1 | rule1 1 | ||
Rule3 ON Power2#state=1 DO backlog Delay | Rule3 ON Power2#state=1 DO backlog Delay 50; Power2 0 ENDON | ||
rule3 1 | rule3 1 | ||
Rule2 ON ANALOG#Voltage1> | Rule2 ON ANALOG#Voltage1>150 DO Power1 0; Power2 0 ENDON | ||
rule2 1 | rule2 1 | ||
(100 is too low, limit sometimes trips before motor starts moving, 200 is a lot) | |||
set the adc range | set the adc range | ||
AdcParam | AdcParam 33, 0, 4095, 0, 1024 | ||
in the console you can view the rules | in the console (or by curl) you can view the rules and adcparam | ||
CMD: rule1 | CMD: rule1 |