logo elektroda
logo elektroda
X
logo elektroda

Arduino + bistable relay lighting control - reading ON state from relay/button?

kulkry 18816 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 13367887
    kulkry
    Level 9  
    Posts: 5
    Rate: 3
    Functional description:
    Lighting control implemented either directly from a relay or via a push button.

    Problem:
    I would like the Arduino to be informed that the light is switched on in case of a pulse from the relay as well as a pulse from the button. Will my scheme work correctly? How can this be solved differently?


    Arduino + bistable relay lighting control - reading ON state from relay/button?
  • ADVERTISEMENT
  • #2 13368075
    tomix
    Level 16  
    Posts: 349
    Help: 7
    Rate: 98
    Wrong connection of the bistable relay, you have a short circuit on the bell button.
    Arduino + bistable relay lighting control - reading ON state from relay/button?
  • ADVERTISEMENT
  • #3 13368121
    kulkry
    Level 9  
    Posts: 5
    Rate: 3
    Sorry this is due to rush, I am attaching a new schematic. I'm mainly concerned with the simplest way to tell the arduino to send a pulse to the bistable from the button/arduino?

    Arduino + bistable relay lighting control - reading ON state from relay/button?
  • #4 13368192
    tomix
    Level 16  
    Posts: 349
    Help: 7
    Rate: 98
    Sorry, I caved because I looked at the schematic wrong ;) I didn't mean the bridges you corrected, of course, but ok. The first BIS wiring diagram was also ok. Explain to me what task the "5V relay" is supposed to do ? To me it looks like a trafo that should power the Arduino, and by the way has NC and NO contacts ?
  • #5 13368269
    kulkry
    Level 9  
    Posts: 5
    Rate: 3
    The Arduino is powered either from the computer's USB port or directly from the power supply. I use relays to switch 220V devices and I wanted to use one of them to send a pulse to a bistable relay. The bistable should be on 220V so that if the arduino or one of the components of the house is damaged, manual switching of the light would still work. The problem is that I need to put information about the switching status of the bistable on the WWW, so that someone can remotely (from outside the building) see whether the light has been switched off or not.

    I am using several such relays:
    3.1.18. It is forbidden to publish information to sources that expire after a certain period of time (publishing links to short-lived sites). [retrofood]

    I am looking at this schematic and the ON/OFF signal of the bistable should be applied all the time only problem is that on the input of the arduino
    i can't give more than 5V to the arduino input but I don't want to combine with some trafo but maybe there is some other way to solve this problem?

    Arduino + bistable relay lighting control - reading ON state from relay/button?
    Arduino + bistable relay lighting control - reading ON state from relay/button?
  • ADVERTISEMENT
  • #6 13368292
    tomix
    Level 16  
    Posts: 349
    Help: 7
    Rate: 98
    Correct, the analogue signal about the light being on when a pulse is applied to the BIS-402 should be continuous. The topic of switching from 230V to 5V was once discussed, have a look here: https://www.elektroda.pl/rtvforum/topic462573.html Using a trafo misses the point.

    If the relay connected directly to the Arduino will act as a monostable then everything is ok - you will drive BIS-402 with a pulse.
  • #7 13368315
    kulkry
    Level 9  
    Posts: 5
    Rate: 3
    I would like to use a component I can buy, I don't want to make anything of my own because I don't have the time ;p In principle I could probably use an old phone charger that gives less than 5v and the effect would be satisfactory?
  • ADVERTISEMENT
  • #8 13368343
    tomix
    Level 16  
    Posts: 349
    Help: 7
    Rate: 98
    If it has to be small, lightweight and inexpensive then maybe some kind of 5V switching power supply?
  • #10 13371278
    kulkry
    Level 9  
    Posts: 5
    Rate: 3
    Thanks for all the information, I will probably use the power supply :)
ADVERTISEMENT