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

                      Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                      Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                      Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020