Rotary dimmer switch and mysensors?
-
Hi,
as I am already rebuiding my house, there is a question on how to implement a rotary dimmer wall switch with mysensors? This switch should only be connected to an analogue in of the arduino and send the status (or changes) to the controller. But it should be a standard wall dimmer switch. I tried one, but no success on changing analogue in level. Has anyone done something like that? How?
Thanks and regards,
Otto
-
Have you seen Hek's "Dimmable LED With Rotary Encoder"? Maybe it can give you some direction... link.
-
Yes, thank you. Unfortunately this is not really useable. I have one wall rotary switch and connected it to an arduino directly. But the analogue in does not detect anything I am trying on the switch. I think the rotary encoder is working absolutely different to usual wall switches
-
I'm not sure if I understood. Do you have an analog dimmer , connected somehow to arduino? Maybe if you post the circuit + sketch here someone can help...
-
Hi,
yes, I have a REV Dimmer Typ 13623 (http://www.rev.de/dzo/artikel/201/0077494_201.pdf?t=1342180610)
Just connected it to an arduino with some "configurable firmata" and as controller I am using fhem. This sketch is just reporting the status of the pins directly to the controller. I am using pin A0 for instance - if I connect it directly to GND, this is immediately reported to the controller. If I am connecting the dimmer, nothing happens. I hope I could explain what I am trying to do...
-
The link is not working for me. Is the dimmer a potentiometer ie variable resistor type? Can you share the schematic of the dimmer and connection?
-
I want to control ceiling fan using Rottery dimmer switch using arduino.
How can i use?
-
Sorry, this should work:
http://www.rev.de/dzo/artikel/201/007/7494_201.pdf?t=1342180610
Unfortunately it is German only...
-
@otto001 it looks like you are using a 230 volt thyristor/triac dimmer. These do not act as a resistor and therefore cannot be used to connect to the Arduino....
Maybe if you tell what you want to accomplish there is some help available
-
@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)....
-
@otto001 The "waf" of constructions is low... What works for me is momentary switch button dims with a "long press". These are widely available in all kinds of designs. Another option is to combine it with a touch sensor..
-
@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; } }```
-
@AWI: thanks! will have a look at it!
-
@otto001 Hello!
Did you manage to implement this node?