Member level 1
Hello, I've designed the circuit in the picture and aside from its main purpose, when the Q1 MOSFET is being triggered or is triggered recently the yellow led must be kept open. When the door is switch is closed while the yellow led is on, the pink power led must blink also the buzzer must go off after a while. The relays, pink power led and yellow led are all connected to LM317 (U2) as loads. My problem is that yellow led is dimming and lightening while the pink led is blinking (basically when a new load is connected), or both pink and yellow LEDs are dimming even further when RL2 is on. I checked the voltage across them and I saw that voltage on each load drops when another is connected. There is something I really messed up while using LM317 voltage regulator, as it doesn't do its sole purpose of existence
Note: U1 LM317 works just fine as the load of its doesn't change. The MQ2 is connected properly in real life forget the schematic, I used sole sensor not the module anyway. Also the cables coming from below and left are just 24 volt supply which is generated by a boost converter.
Expert suggestions and guidance is required.