Newbie question. As per my posting at https://www.electro-tech-online.com/threads/speaker-output-to-electret-mic-input.155675/ I am playing with one of these small LM393 based Arduino sound input boards: **broken link removed** running at 5v. I assume that the circuit diagram is something like this one: https://www.sunrom.com/p/sound-sensor-module-mic (The only physical difference is that my board has the output pin in the middle) The output is active low and digital. It turns on when the sound level reaches a certain volume and turns off when it drops below that.
I am trying to drive a small 5V solenoid from the output. I tried connecting the output directly to the gate of a p-channel mosfet, with a flywheel diode across the solenoid for protection, with the solenoid on the low side of the mosfet, but the input pulses are too short to activate the solenoid. I put a scope on the module output and even when I make a continuous loud sound the output spikes on and off rapidly. Is that to be expected? Maybe the module is faulty?
I tried putting a 1M pot inline with the gate, in parallel with a diode with the cathode facing the module output (designed to allow fast turn-on but slow turn-off), but all that did was cause the mosfet to heat up.
It is only when I turn the trimpot on the module until the output comes hard on that the solenoid activates. The problem is not helped by the fact that the trimpot on the board is not sensitive enough. At one setting the output is on permanently. Turn it by the smallest amount possible and the output will only come on with very loud noises. There seems to be no middle ground.
I need the output to be on for about 200ms to reliably activate the solenoid.
Part of the problem was the mosfet I was using. It was a MTP2955 p-channel mosfet. I see from the datasheet that it needs 10v, even though the scope showed 5v spikes on the mosfet output. I have since ordered some NDP6020P p-channel mosfets that turn on at 2.7v but I am still doubtful that they will turn on long enough to pull in the solenoid.
I have found various pulse stretching circuits based on a 555, for example https://www.555-timer-circuits.com/monostable-555.html but I was wondering if there was a simpler method of stretching the output pulse just using the mosfet and an RC combination (without heating up the mosfet). Bear in mind that the NDP6020P will still be hard on at 2.7v so that gives some leeway to allow the input to the gate to be stretched.
The only issue is that I want the turn on to be as fast as possible. I was worried that having to charge a cap on the input would slow down the turn-on. The 555 would not have that problem.
Attached is a shot of the scope reading of the module output with a sustained loud scream. The longest pulse is about 80ms. (Note the scale is 0.1s per div horizontal and 1V per div vertical.) (I obviously connected the probes backwards. The output pin sits at 5v and drops to 0v when activated.)
I want to activate it using normal voice. WIth that the pulses are very short. See nextimage. The longest pulse is about 6ms. (Note the horizontal scale is 20ms per div for that one).
I am trying to drive a small 5V solenoid from the output. I tried connecting the output directly to the gate of a p-channel mosfet, with a flywheel diode across the solenoid for protection, with the solenoid on the low side of the mosfet, but the input pulses are too short to activate the solenoid. I put a scope on the module output and even when I make a continuous loud sound the output spikes on and off rapidly. Is that to be expected? Maybe the module is faulty?
I tried putting a 1M pot inline with the gate, in parallel with a diode with the cathode facing the module output (designed to allow fast turn-on but slow turn-off), but all that did was cause the mosfet to heat up.
It is only when I turn the trimpot on the module until the output comes hard on that the solenoid activates. The problem is not helped by the fact that the trimpot on the board is not sensitive enough. At one setting the output is on permanently. Turn it by the smallest amount possible and the output will only come on with very loud noises. There seems to be no middle ground.
I need the output to be on for about 200ms to reliably activate the solenoid.
Part of the problem was the mosfet I was using. It was a MTP2955 p-channel mosfet. I see from the datasheet that it needs 10v, even though the scope showed 5v spikes on the mosfet output. I have since ordered some NDP6020P p-channel mosfets that turn on at 2.7v but I am still doubtful that they will turn on long enough to pull in the solenoid.
I have found various pulse stretching circuits based on a 555, for example https://www.555-timer-circuits.com/monostable-555.html but I was wondering if there was a simpler method of stretching the output pulse just using the mosfet and an RC combination (without heating up the mosfet). Bear in mind that the NDP6020P will still be hard on at 2.7v so that gives some leeway to allow the input to the gate to be stretched.
The only issue is that I want the turn on to be as fast as possible. I was worried that having to charge a cap on the input would slow down the turn-on. The 555 would not have that problem.
Attached is a shot of the scope reading of the module output with a sustained loud scream. The longest pulse is about 80ms. (Note the scale is 0.1s per div horizontal and 1V per div vertical.) (I obviously connected the probes backwards. The output pin sits at 5v and drops to 0v when activated.)
I want to activate it using normal voice. WIth that the pulses are very short. See nextimage. The longest pulse is about 6ms. (Note the horizontal scale is 20ms per div for that one).
Last edited: