Rotary dimmer switch and mysensors?
-
Sorry, this should work:
http://www.rev.de/dzo/artikel/201/007/7494_201.pdf?t=1342180610
Unfortunately it is German only... -
Sorry, this should work:
http://www.rev.de/dzo/artikel/201/007/7494_201.pdf?t=1342180610
Unfortunately it is German only... -
@otto001 said:
http://www.rev.de/dzo/artikel/201/007/7494_201.pdf?t=1342180610
The knob could possibly be reused with a rotary encoder if you disassemble your dimmer. But it will be hard to squeeze in the necessary AC stuff + Arduino and radion behind the faceplate.
-
Thanks!
What I want to do is pretty simple: Just have a rotary dimmer connected to an arduino - the controller should get the values and dim the lights (connected to different devices) according to the rotary switch. But it should be a wall switch (to get a reliable WAF).... -
Thanks!
What I want to do is pretty simple: Just have a rotary dimmer connected to an arduino - the controller should get the values and dim the lights (connected to different devices) according to the rotary switch. But it should be a wall switch (to get a reliable WAF).... -
@AWI: Thanks for your hint. I am also thinking about switch buttons with long press. BTW: how did you implement the long press in mysensors?
@otto001 You can find an example in the "bounce2" library. Below an excerpt from a windowcover routine (nothing special for MySensors)
if ( buttonUp.update()){ // change in Up button if (buttonUp.read() == HIGH){ // release button buttUpstate = 0 ; Serial.println("Button UP released"); if (calibrateCover != A_STOP){ // calibrate end, set value calibrateCover = A_STOP; curPos = setPos = lastPos = 0 ; // Set the "UP" position (store in EEPROM and send to controller) } } else{ // press button, cover up buttUpstate = 1 ; Serial.println("Button UP pressed"); buttUptime = millis(); // register change time if (curAction != A_STOP){ // cover is running, stop at current position and make "set" setPos = curPos; } else { setPos = 0; } }```