Voltage divider does not work with LM393 sound sensorHow to get audio from a sensor for an ArduinoVoltage Divider not functioning as expectedVoltage divider using capacitorsVoltage divider not functioning correctlyNot getting appropriate output voltage from the sensor circuit. Is the Flex sensor damaged or am I doing it wrong?Voltage divider with ADCSensor Module misbehaving when connected to a voltage dividerHow to step down analog sensor signal voltage using voltage dividerProblem with voltage dividervoltage divider circuit designVoltage divider with pull up resistors

Find the unknown area, x

How does this Martian habitat 3D printer built for NASA work?

Is it wrong to omit object pronouns in these sentences?

How to cope with regret and shame about not fully utilizing opportunities during PhD?

is it correct to say "When it started to rain, I was in the open air."

Are there any sonatas with only two sections?

Mark command as obsolete

Creative Commons useage question!

Promotion comes with unexpected 24/7/365 on-call

Will a coyote attack my dog on a leash while I'm on a hiking trail?

Would life always name the light from their sun "white"

Were any of the books mentioned in this scene from the movie Hackers real?

What information exactly does an instruction cache store?

How do I identify the partitions of my hard drive in order to then shred them all?

Do Grothendieck universes matter for an algebraic geometer?

How might a landlocked lake become a complete ecosystem?

Is there any way to adjust the damage type of the Eldritch Blast cantrip so that it does fire damage?

What is this old US Air Force plane?

Could there be a material that inverts the colours seen through it?

How to describe a building set which is like LEGO without using the "LEGO" word?

Does "Software Updater" only update software installed using apt, or also software installed using snap?

Will casting a card from the graveyard with Flashback add a quest counter on Pyromancer Ascension?

Why are BJTs common in output stages of power amplifiers?

Why doesn't Iron Man's action affect this person in Endgame?



Voltage divider does not work with LM393 sound sensor


How to get audio from a sensor for an ArduinoVoltage Divider not functioning as expectedVoltage divider using capacitorsVoltage divider not functioning correctlyNot getting appropriate output voltage from the sensor circuit. Is the Flex sensor damaged or am I doing it wrong?Voltage divider with ADCSensor Module misbehaving when connected to a voltage dividerHow to step down analog sensor signal voltage using voltage dividerProblem with voltage dividervoltage divider circuit designVoltage divider with pull up resistors






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0












$begingroup$


I have a sound sensor which I want to connect to a RaspberryPi.



RaspberryPi input voltage on GPIO is 3.3V and this sound sensor output gives 5V.



I've made voltage divider that looks like this:



enter image description here



It works fine when I connect it with power supply. It gaves me ~3.1V on V out.



However when I connect it to sound sensor it does not give me the expected voltage.



My circuit looks like this:



enter image description here



Output voltage is ~2V and voltage between sensor output and resistor R4 is ~3.3V.



I've also noticed that the small diodeon sensor (which lights when sound is detected) lights a bit when circuit is connected that way.



What might be causing this problem? Should I add a diode between R4 and sensor output? Will this solve the problem?




This is the circuit of the sound sensor:



enter image description here










share|improve this question











$endgroup$







  • 1




    $begingroup$
    @JRE I am unsure if you adding the schematic into the question is too helpful. As shown in my answer, once you look at the schematic, the reason for the 'incorrect' voltage is clear, so adding the schematic voids the question a bit I would think.
    $endgroup$
    – MCG
    May 3 at 11:42










  • $begingroup$
    There are 10k pullup on the board since LM393 has open collector output. Furthermore, there are also LED in series with 470 ohm resistor. Two options: 1. Desolder the LED, short the R3 in your design. And then, since the output will be paralleled with the internal output bjt. You need to adjust R4 accordingly until you have 3.3V on the output. 2. Use an output buffer.
    $endgroup$
    – Unknown123
    May 3 at 11:47







  • 2




    $begingroup$
    I don't think it voids the question. It is quite possible to look at a diagram and not understand why it causes you a problem.
    $endgroup$
    – JRE
    May 3 at 11:50










  • $begingroup$
    Related: How to get audio from a sensor for an Arduino
    $endgroup$
    – Unknown123
    May 3 at 11:53










  • $begingroup$
    @JRE fair point!
    $endgroup$
    – MCG
    May 3 at 12:28

















0












$begingroup$


I have a sound sensor which I want to connect to a RaspberryPi.



RaspberryPi input voltage on GPIO is 3.3V and this sound sensor output gives 5V.



I've made voltage divider that looks like this:



enter image description here



It works fine when I connect it with power supply. It gaves me ~3.1V on V out.



However when I connect it to sound sensor it does not give me the expected voltage.



My circuit looks like this:



enter image description here



Output voltage is ~2V and voltage between sensor output and resistor R4 is ~3.3V.



I've also noticed that the small diodeon sensor (which lights when sound is detected) lights a bit when circuit is connected that way.



What might be causing this problem? Should I add a diode between R4 and sensor output? Will this solve the problem?




This is the circuit of the sound sensor:



enter image description here










share|improve this question











$endgroup$







  • 1




    $begingroup$
    @JRE I am unsure if you adding the schematic into the question is too helpful. As shown in my answer, once you look at the schematic, the reason for the 'incorrect' voltage is clear, so adding the schematic voids the question a bit I would think.
    $endgroup$
    – MCG
    May 3 at 11:42










  • $begingroup$
    There are 10k pullup on the board since LM393 has open collector output. Furthermore, there are also LED in series with 470 ohm resistor. Two options: 1. Desolder the LED, short the R3 in your design. And then, since the output will be paralleled with the internal output bjt. You need to adjust R4 accordingly until you have 3.3V on the output. 2. Use an output buffer.
    $endgroup$
    – Unknown123
    May 3 at 11:47







  • 2




    $begingroup$
    I don't think it voids the question. It is quite possible to look at a diagram and not understand why it causes you a problem.
    $endgroup$
    – JRE
    May 3 at 11:50










  • $begingroup$
    Related: How to get audio from a sensor for an Arduino
    $endgroup$
    – Unknown123
    May 3 at 11:53










  • $begingroup$
    @JRE fair point!
    $endgroup$
    – MCG
    May 3 at 12:28













0












0








0


1



$begingroup$


I have a sound sensor which I want to connect to a RaspberryPi.



RaspberryPi input voltage on GPIO is 3.3V and this sound sensor output gives 5V.



I've made voltage divider that looks like this:



enter image description here



It works fine when I connect it with power supply. It gaves me ~3.1V on V out.



However when I connect it to sound sensor it does not give me the expected voltage.



My circuit looks like this:



enter image description here



Output voltage is ~2V and voltage between sensor output and resistor R4 is ~3.3V.



I've also noticed that the small diodeon sensor (which lights when sound is detected) lights a bit when circuit is connected that way.



What might be causing this problem? Should I add a diode between R4 and sensor output? Will this solve the problem?




This is the circuit of the sound sensor:



enter image description here










share|improve this question











$endgroup$




I have a sound sensor which I want to connect to a RaspberryPi.



RaspberryPi input voltage on GPIO is 3.3V and this sound sensor output gives 5V.



I've made voltage divider that looks like this:



enter image description here



It works fine when I connect it with power supply. It gaves me ~3.1V on V out.



However when I connect it to sound sensor it does not give me the expected voltage.



My circuit looks like this:



enter image description here



Output voltage is ~2V and voltage between sensor output and resistor R4 is ~3.3V.



I've also noticed that the small diodeon sensor (which lights when sound is detected) lights a bit when circuit is connected that way.



What might be causing this problem? Should I add a diode between R4 and sensor output? Will this solve the problem?




This is the circuit of the sound sensor:



enter image description here







raspberry-pi voltage-divider






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 3 at 11:36









JRE

25.3k64585




25.3k64585










asked May 3 at 10:55









nervosolnervosol

1165




1165







  • 1




    $begingroup$
    @JRE I am unsure if you adding the schematic into the question is too helpful. As shown in my answer, once you look at the schematic, the reason for the 'incorrect' voltage is clear, so adding the schematic voids the question a bit I would think.
    $endgroup$
    – MCG
    May 3 at 11:42










  • $begingroup$
    There are 10k pullup on the board since LM393 has open collector output. Furthermore, there are also LED in series with 470 ohm resistor. Two options: 1. Desolder the LED, short the R3 in your design. And then, since the output will be paralleled with the internal output bjt. You need to adjust R4 accordingly until you have 3.3V on the output. 2. Use an output buffer.
    $endgroup$
    – Unknown123
    May 3 at 11:47







  • 2




    $begingroup$
    I don't think it voids the question. It is quite possible to look at a diagram and not understand why it causes you a problem.
    $endgroup$
    – JRE
    May 3 at 11:50










  • $begingroup$
    Related: How to get audio from a sensor for an Arduino
    $endgroup$
    – Unknown123
    May 3 at 11:53










  • $begingroup$
    @JRE fair point!
    $endgroup$
    – MCG
    May 3 at 12:28












  • 1




    $begingroup$
    @JRE I am unsure if you adding the schematic into the question is too helpful. As shown in my answer, once you look at the schematic, the reason for the 'incorrect' voltage is clear, so adding the schematic voids the question a bit I would think.
    $endgroup$
    – MCG
    May 3 at 11:42










  • $begingroup$
    There are 10k pullup on the board since LM393 has open collector output. Furthermore, there are also LED in series with 470 ohm resistor. Two options: 1. Desolder the LED, short the R3 in your design. And then, since the output will be paralleled with the internal output bjt. You need to adjust R4 accordingly until you have 3.3V on the output. 2. Use an output buffer.
    $endgroup$
    – Unknown123
    May 3 at 11:47







  • 2




    $begingroup$
    I don't think it voids the question. It is quite possible to look at a diagram and not understand why it causes you a problem.
    $endgroup$
    – JRE
    May 3 at 11:50










  • $begingroup$
    Related: How to get audio from a sensor for an Arduino
    $endgroup$
    – Unknown123
    May 3 at 11:53










  • $begingroup$
    @JRE fair point!
    $endgroup$
    – MCG
    May 3 at 12:28







1




1




$begingroup$
@JRE I am unsure if you adding the schematic into the question is too helpful. As shown in my answer, once you look at the schematic, the reason for the 'incorrect' voltage is clear, so adding the schematic voids the question a bit I would think.
$endgroup$
– MCG
May 3 at 11:42




$begingroup$
@JRE I am unsure if you adding the schematic into the question is too helpful. As shown in my answer, once you look at the schematic, the reason for the 'incorrect' voltage is clear, so adding the schematic voids the question a bit I would think.
$endgroup$
– MCG
May 3 at 11:42












$begingroup$
There are 10k pullup on the board since LM393 has open collector output. Furthermore, there are also LED in series with 470 ohm resistor. Two options: 1. Desolder the LED, short the R3 in your design. And then, since the output will be paralleled with the internal output bjt. You need to adjust R4 accordingly until you have 3.3V on the output. 2. Use an output buffer.
$endgroup$
– Unknown123
May 3 at 11:47





$begingroup$
There are 10k pullup on the board since LM393 has open collector output. Furthermore, there are also LED in series with 470 ohm resistor. Two options: 1. Desolder the LED, short the R3 in your design. And then, since the output will be paralleled with the internal output bjt. You need to adjust R4 accordingly until you have 3.3V on the output. 2. Use an output buffer.
$endgroup$
– Unknown123
May 3 at 11:47





2




2




$begingroup$
I don't think it voids the question. It is quite possible to look at a diagram and not understand why it causes you a problem.
$endgroup$
– JRE
May 3 at 11:50




$begingroup$
I don't think it voids the question. It is quite possible to look at a diagram and not understand why it causes you a problem.
$endgroup$
– JRE
May 3 at 11:50












$begingroup$
Related: How to get audio from a sensor for an Arduino
$endgroup$
– Unknown123
May 3 at 11:53




$begingroup$
Related: How to get audio from a sensor for an Arduino
$endgroup$
– Unknown123
May 3 at 11:53












$begingroup$
@JRE fair point!
$endgroup$
– MCG
May 3 at 12:28




$begingroup$
@JRE fair point!
$endgroup$
– MCG
May 3 at 12:28










4 Answers
4






active

oldest

votes


















2












$begingroup$

The LM393 is a comparator with open collector outputs.



So, based on your measurement your sensor output circuit will look like this:





schematic





simulate this circuit – Schematic created using CircuitLab



And this is why you are getting 2V at the output.





schematic





simulate this circuit



Have you tried to supply your sound sensor from the 3.3V rail? There is a chance it will work.



Also, this 2V at the output will be interpreted by a RaspberryPi as a high state.
So no problem either.






share|improve this answer









$endgroup$












  • $begingroup$
    Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
    $endgroup$
    – nervosol
    May 3 at 12:01


















2












$begingroup$

You can find the schematic for the module by clicking the download in the link you supplied. It looks like this:



enter image description here



It looks like when the threshold is reached, your output will go LOW, which enables the LED to turn on. When there is no noise, the output is high, and LED is off.



With a 10k pullup, you are not going to get the correct voltage on your divider. It may be better to use a MOSFET or transistor as a switch.



Moral of the story is always find a schematic if you are working with a breakout board.






share|improve this answer









$endgroup$












  • $begingroup$
    Yes you are right. The output with no sound is HIGH.
    $endgroup$
    – nervosol
    May 3 at 11:46



















1












$begingroup$

If you track down the circuit on the seller's site, you will see that it already has a resistor between the 5V supply and the output.



There's a 10k resistor on the board, and you have another 6k on your voltage divider. What have therefore is a voltage divider of 16k to 10k.



That ratio delivers 1.92V at the output. Almost exactly your measured value.




The circuit diagram also explains why the LED lights up (weakly.)



The lower resistor of your divider provides a path to ground for the LED. It is 10k, so not much current flows - but it is enough.




The simplest solution is to use a diode instead of a voltage divider.



Put a pullup on the GPIO pin on the Pi, and connect it to the sound sensor with a diode. Cathode (banded end) towards the sound sensor.



The Pi has a proper high input when there's no sound.



No current flows through the LED when it's quiet.



When there's a noise, the sound sensor pulls the output low and the Pi "sees" that through the diode - it has a proper low signal when sound is detected. And, the LED will light up correctly.






share|improve this answer









$endgroup$




















    0












    $begingroup$

    You should measure the resistance between Vout and Gnd on the module to see if there is a pull down present. If so, you will have to recalculate your voltage divider. Furthermore, a voltage divider is usually only a good idea to use with high impedance IO since any for of parallel resistive load will screw with your ratio. It's better to use a transistor in your case.






    share|improve this answer









    $endgroup$













      Your Answer






      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("schematics", function ()
      StackExchange.schematics.init();
      );
      , "cicuitlab");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "135"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f436723%2fvoltage-divider-does-not-work-with-lm393-sound-sensor%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2












      $begingroup$

      The LM393 is a comparator with open collector outputs.



      So, based on your measurement your sensor output circuit will look like this:





      schematic





      simulate this circuit – Schematic created using CircuitLab



      And this is why you are getting 2V at the output.





      schematic





      simulate this circuit



      Have you tried to supply your sound sensor from the 3.3V rail? There is a chance it will work.



      Also, this 2V at the output will be interpreted by a RaspberryPi as a high state.
      So no problem either.






      share|improve this answer









      $endgroup$












      • $begingroup$
        Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
        $endgroup$
        – nervosol
        May 3 at 12:01















      2












      $begingroup$

      The LM393 is a comparator with open collector outputs.



      So, based on your measurement your sensor output circuit will look like this:





      schematic





      simulate this circuit – Schematic created using CircuitLab



      And this is why you are getting 2V at the output.





      schematic





      simulate this circuit



      Have you tried to supply your sound sensor from the 3.3V rail? There is a chance it will work.



      Also, this 2V at the output will be interpreted by a RaspberryPi as a high state.
      So no problem either.






      share|improve this answer









      $endgroup$












      • $begingroup$
        Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
        $endgroup$
        – nervosol
        May 3 at 12:01













      2












      2








      2





      $begingroup$

      The LM393 is a comparator with open collector outputs.



      So, based on your measurement your sensor output circuit will look like this:





      schematic





      simulate this circuit – Schematic created using CircuitLab



      And this is why you are getting 2V at the output.





      schematic





      simulate this circuit



      Have you tried to supply your sound sensor from the 3.3V rail? There is a chance it will work.



      Also, this 2V at the output will be interpreted by a RaspberryPi as a high state.
      So no problem either.






      share|improve this answer









      $endgroup$



      The LM393 is a comparator with open collector outputs.



      So, based on your measurement your sensor output circuit will look like this:





      schematic





      simulate this circuit – Schematic created using CircuitLab



      And this is why you are getting 2V at the output.





      schematic





      simulate this circuit



      Have you tried to supply your sound sensor from the 3.3V rail? There is a chance it will work.



      Also, this 2V at the output will be interpreted by a RaspberryPi as a high state.
      So no problem either.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered May 3 at 11:31









      G36G36

      5,6961511




      5,6961511











      • $begingroup$
        Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
        $endgroup$
        – nervosol
        May 3 at 12:01
















      • $begingroup$
        Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
        $endgroup$
        – nervosol
        May 3 at 12:01















      $begingroup$
      Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
      $endgroup$
      – nervosol
      May 3 at 12:01




      $begingroup$
      Fortunately simplest solution worked. Connecting sensor to 3.3V gives the same output which is safe for RaspberryPi
      $endgroup$
      – nervosol
      May 3 at 12:01













      2












      $begingroup$

      You can find the schematic for the module by clicking the download in the link you supplied. It looks like this:



      enter image description here



      It looks like when the threshold is reached, your output will go LOW, which enables the LED to turn on. When there is no noise, the output is high, and LED is off.



      With a 10k pullup, you are not going to get the correct voltage on your divider. It may be better to use a MOSFET or transistor as a switch.



      Moral of the story is always find a schematic if you are working with a breakout board.






      share|improve this answer









      $endgroup$












      • $begingroup$
        Yes you are right. The output with no sound is HIGH.
        $endgroup$
        – nervosol
        May 3 at 11:46
















      2












      $begingroup$

      You can find the schematic for the module by clicking the download in the link you supplied. It looks like this:



      enter image description here



      It looks like when the threshold is reached, your output will go LOW, which enables the LED to turn on. When there is no noise, the output is high, and LED is off.



      With a 10k pullup, you are not going to get the correct voltage on your divider. It may be better to use a MOSFET or transistor as a switch.



      Moral of the story is always find a schematic if you are working with a breakout board.






      share|improve this answer









      $endgroup$












      • $begingroup$
        Yes you are right. The output with no sound is HIGH.
        $endgroup$
        – nervosol
        May 3 at 11:46














      2












      2








      2





      $begingroup$

      You can find the schematic for the module by clicking the download in the link you supplied. It looks like this:



      enter image description here



      It looks like when the threshold is reached, your output will go LOW, which enables the LED to turn on. When there is no noise, the output is high, and LED is off.



      With a 10k pullup, you are not going to get the correct voltage on your divider. It may be better to use a MOSFET or transistor as a switch.



      Moral of the story is always find a schematic if you are working with a breakout board.






      share|improve this answer









      $endgroup$



      You can find the schematic for the module by clicking the download in the link you supplied. It looks like this:



      enter image description here



      It looks like when the threshold is reached, your output will go LOW, which enables the LED to turn on. When there is no noise, the output is high, and LED is off.



      With a 10k pullup, you are not going to get the correct voltage on your divider. It may be better to use a MOSFET or transistor as a switch.



      Moral of the story is always find a schematic if you are working with a breakout board.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered May 3 at 11:38









      MCGMCG

      7,09531851




      7,09531851











      • $begingroup$
        Yes you are right. The output with no sound is HIGH.
        $endgroup$
        – nervosol
        May 3 at 11:46

















      • $begingroup$
        Yes you are right. The output with no sound is HIGH.
        $endgroup$
        – nervosol
        May 3 at 11:46
















      $begingroup$
      Yes you are right. The output with no sound is HIGH.
      $endgroup$
      – nervosol
      May 3 at 11:46





      $begingroup$
      Yes you are right. The output with no sound is HIGH.
      $endgroup$
      – nervosol
      May 3 at 11:46












      1












      $begingroup$

      If you track down the circuit on the seller's site, you will see that it already has a resistor between the 5V supply and the output.



      There's a 10k resistor on the board, and you have another 6k on your voltage divider. What have therefore is a voltage divider of 16k to 10k.



      That ratio delivers 1.92V at the output. Almost exactly your measured value.




      The circuit diagram also explains why the LED lights up (weakly.)



      The lower resistor of your divider provides a path to ground for the LED. It is 10k, so not much current flows - but it is enough.




      The simplest solution is to use a diode instead of a voltage divider.



      Put a pullup on the GPIO pin on the Pi, and connect it to the sound sensor with a diode. Cathode (banded end) towards the sound sensor.



      The Pi has a proper high input when there's no sound.



      No current flows through the LED when it's quiet.



      When there's a noise, the sound sensor pulls the output low and the Pi "sees" that through the diode - it has a proper low signal when sound is detected. And, the LED will light up correctly.






      share|improve this answer









      $endgroup$

















        1












        $begingroup$

        If you track down the circuit on the seller's site, you will see that it already has a resistor between the 5V supply and the output.



        There's a 10k resistor on the board, and you have another 6k on your voltage divider. What have therefore is a voltage divider of 16k to 10k.



        That ratio delivers 1.92V at the output. Almost exactly your measured value.




        The circuit diagram also explains why the LED lights up (weakly.)



        The lower resistor of your divider provides a path to ground for the LED. It is 10k, so not much current flows - but it is enough.




        The simplest solution is to use a diode instead of a voltage divider.



        Put a pullup on the GPIO pin on the Pi, and connect it to the sound sensor with a diode. Cathode (banded end) towards the sound sensor.



        The Pi has a proper high input when there's no sound.



        No current flows through the LED when it's quiet.



        When there's a noise, the sound sensor pulls the output low and the Pi "sees" that through the diode - it has a proper low signal when sound is detected. And, the LED will light up correctly.






        share|improve this answer









        $endgroup$















          1












          1








          1





          $begingroup$

          If you track down the circuit on the seller's site, you will see that it already has a resistor between the 5V supply and the output.



          There's a 10k resistor on the board, and you have another 6k on your voltage divider. What have therefore is a voltage divider of 16k to 10k.



          That ratio delivers 1.92V at the output. Almost exactly your measured value.




          The circuit diagram also explains why the LED lights up (weakly.)



          The lower resistor of your divider provides a path to ground for the LED. It is 10k, so not much current flows - but it is enough.




          The simplest solution is to use a diode instead of a voltage divider.



          Put a pullup on the GPIO pin on the Pi, and connect it to the sound sensor with a diode. Cathode (banded end) towards the sound sensor.



          The Pi has a proper high input when there's no sound.



          No current flows through the LED when it's quiet.



          When there's a noise, the sound sensor pulls the output low and the Pi "sees" that through the diode - it has a proper low signal when sound is detected. And, the LED will light up correctly.






          share|improve this answer









          $endgroup$



          If you track down the circuit on the seller's site, you will see that it already has a resistor between the 5V supply and the output.



          There's a 10k resistor on the board, and you have another 6k on your voltage divider. What have therefore is a voltage divider of 16k to 10k.



          That ratio delivers 1.92V at the output. Almost exactly your measured value.




          The circuit diagram also explains why the LED lights up (weakly.)



          The lower resistor of your divider provides a path to ground for the LED. It is 10k, so not much current flows - but it is enough.




          The simplest solution is to use a diode instead of a voltage divider.



          Put a pullup on the GPIO pin on the Pi, and connect it to the sound sensor with a diode. Cathode (banded end) towards the sound sensor.



          The Pi has a proper high input when there's no sound.



          No current flows through the LED when it's quiet.



          When there's a noise, the sound sensor pulls the output low and the Pi "sees" that through the diode - it has a proper low signal when sound is detected. And, the LED will light up correctly.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 3 at 11:48









          JREJRE

          25.3k64585




          25.3k64585





















              0












              $begingroup$

              You should measure the resistance between Vout and Gnd on the module to see if there is a pull down present. If so, you will have to recalculate your voltage divider. Furthermore, a voltage divider is usually only a good idea to use with high impedance IO since any for of parallel resistive load will screw with your ratio. It's better to use a transistor in your case.






              share|improve this answer









              $endgroup$

















                0












                $begingroup$

                You should measure the resistance between Vout and Gnd on the module to see if there is a pull down present. If so, you will have to recalculate your voltage divider. Furthermore, a voltage divider is usually only a good idea to use with high impedance IO since any for of parallel resistive load will screw with your ratio. It's better to use a transistor in your case.






                share|improve this answer









                $endgroup$















                  0












                  0








                  0





                  $begingroup$

                  You should measure the resistance between Vout and Gnd on the module to see if there is a pull down present. If so, you will have to recalculate your voltage divider. Furthermore, a voltage divider is usually only a good idea to use with high impedance IO since any for of parallel resistive load will screw with your ratio. It's better to use a transistor in your case.






                  share|improve this answer









                  $endgroup$



                  You should measure the resistance between Vout and Gnd on the module to see if there is a pull down present. If so, you will have to recalculate your voltage divider. Furthermore, a voltage divider is usually only a good idea to use with high impedance IO since any for of parallel resistive load will screw with your ratio. It's better to use a transistor in your case.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 3 at 11:16









                  Alex ErAlex Er

                  256




                  256



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Electrical Engineering Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f436723%2fvoltage-divider-does-not-work-with-lm393-sound-sensor%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                      Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                      What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company