Who can help me switching an impulse relais with an arduino and still keep the traditional way of using my light switches and have some sort of feedback to the arduino and back to my control software.
Relais in the picture is the one I use in my setup. this gets a puls from a 24V pushbutton. using the arduino to generate this 24V puls is not so hard with a secondary relais board. but i stll need to be able to use my pushbuttons in the traditional way so there needs to be some kind of feedback once I push a button.
>>1039434
>>1039435
Had to read your post like 5 times to understand, but I think i got it:
To control the pulse relays, wire the arduino-controlled secondary relays in parallel to your pushbuttons (so they will be switching the same 24V to the pulse relay).
To "sense" the relay state, I'd recommend attaching an auxiliary contact to the pulse relay (Hager EPN051 in your case), switching the Arduino's +5Vcc to one digital input (with something like a 10kOhm pull-down resistor to GND). So when the pulse relay changes state, your Din also changes state and is sensed directly. Or you could use your Arduino's pinMode() as INPUT_PULLUP to reverse this logic with no extra discrete parts (switching to ground with the auxiliary contact).
Beware though, you're mixing mains with a low-voltage appliance, which is all fun and games until someone touches the live phase.
>>1039434
>>1039435
Seems like English isn't your first language so I drew a picture. I think the simple solution is to replace your standard light switch with a two-pole (DPST) light switch. This allows your Arduino to see when the light is on manually, and the paralleled contacts allow the Arduino to control it with the switch off.
If you want the arduino to be able to turn the light on or off regardless of the position of the switch, and the switch to be able to turn the light on or off regardless of the arduino, you need both the switch and the relay to be at least SPDT.
en.wikipedia.org/wiki/Multiway_switching#Traveler_system
If you want feedback, you could use an optical sensor to detect whether the light is on. If you want to detect the position of the installed light switch, either use a DPDT switch (with one set of contacts used for the feedback) or find a switch with a neon indicator lamp and use an optical sensor.
If you want the installed switch to be a "master" switch (so that "off means off" regardless of the arduino), connect the relay in series, between the switch and the light.
>>1039768
If the switch is not a switch, but as OP said a button, then all you need is to wire the arduino relay in parallel to the button. And why not sense the pulse relay position? I expect there to be multiple switches/buttons to control a single relay, so that would be a bitch to wire properly.
>>1039820
He is right ... it is a button so no SPDT or DPDT switches required.
1 light can be switched by multiple buttons, so reading at the button is no option. I need to read at the relais or have some sort of extra parts (like the auxiliary contact) to get the feedback.
>>1039473
I'm not to smart about electronics so can you explain a bit more or point me in the right direction?
Many Thx!
>>1040030
Like this (pic related). You need to buy the auxiliary contact and place it right beside the relay to mechanically connect their levers. Then it's just a matter of wiring it correctly (especially the Arduino part). You can use either a digital input pin or an analog one, and determine a suitable wiring variant:
1) use Din with internal pull-up to Vcc -> connect to auxiliary contact and switch it to Arduino GND, no extra parts needed
2) use Din without internal pull-up -> connect to Vcc and GND via a pull-down resistor (something like 10kOhm), and connect each leg of the resistor to the auxiliary contact inputs
3) use Ain with pull-up or pull-down like in 1) and 2), the wiring is the same
You need to cover the switching relay yourself, I don't know what you have at your disposal. But you should definitely switch 24V in parallel to the existing switches (just add a wire to the main realy input and switch it to +24V in pulse mode).
>>1040054
Ok now this looks promising!
This EPN051 looks like it might work.
For the relais part i would like to use a cheap Arduino RelaisBoard ...
>>1040068
I feel like we're all getting trolled when you replace the 'y' in 'relay' with an 'i'.