Hi All,
I have an IR sensor hooked up to a NodeMCU v3 and passive buzzer with an LED. The device triggers the LED and the buzzer if the sensor detects an object for more than 10 seconds. It is working well but I have a hardware issue. The buzzer causes the board to short if I have it connected during startup (it makes a buzz and lights up all LEDs). This prevents the board from every functioning as it just gets stuck during startup. If I have the buzzers positive input disconnected during startup and then connect after, it works fine. The trouble is, the nature of my project is one where you would unplug and store when not using, then plug in and power up when you need it. So if it shorts on power up this won't work. I am still very new to all of this so the electronics side is still a learning curve for me. I tried a resistor in line with the live input to the buzzer but this just made the sound quieter. Can anyone provide some guidance as to the correct wiring set up to prevent this short from happening? The buzzer is connected to D4/GND, LED to D5/GND and IR sensor to VCC/A0/GND. I actually tried startup with all other devices removed and just the buzzer connected and I had the same issue so I don't think the other wiring is causing anything. Thanks for any help anyone can give!