3

I have this voice sensor:

http://s3.amazonaws.com/img.iluria.com/product/22C645/5241CF/450xN.jpg

I need to know how bytes pass through soundsensor into arduino and get this bytes and put out in a speaker.

I read on the net a Lib PCM thats converts chars in voices, but how do I extract bytes from sound sensor in analog-in?

Chetan Bhargava
  • 355
  • 1
  • 4
  • 16
Radagast
  • 133
  • 1
  • 4

2 Answers2

4

This post was awhile ago, but I wanted to offer some more definitive info for others like myself who were trying to identify it. What you have there is the Keyes KY-037 "high-sensitivity voice sensor" module. Mine came with the Inland Arduino Uno RFID Learning Kit.

Apparently the KY-037 and the KY-038 are the same except the KY-037 has a higher sensitivity microphone. I could not find any specs to quantify what that sensitivity difference is, however. Both have a LM393 voltage comparator on the board. The same Arduino code ought to work for both.

Here are a few helpful links I found, some also showing a bunch of the other Keyes modules and how to use them:

http://linksprite.com/wiki/index.php5?title=Advanced_Sensors_Kit_for_Arduino

http://brd4.braude.ac.il/~ksamuel/ElIn.31361/Lectures/022-Basic%20Definitions%20and%20Concepts%20Sensors%20and%20Actiators%202013-10-10.pdf (Page/slide 40)

http://tkkrlab.nl/wiki/Arduino_37_sensors

Fonebone
  • 141
  • 4
2

Oh, the joys of buying something off the Internet with no datasheet, no part number and no clue how to use it. And then expecting somebody else to tell you how it works.

That module looks like a KY-038, made by Keyes. No guarantees, though, because I'm not telepathic.

Bytes don't "pass through the soundsensor". Bytes don't pass anywhere, in fact. That board has an analogue output, A0, which is the amplified audio sensed by the microphone. It swings between 0 and 5 volts, and is 2.5V when no sound is being picked up. The board also has a digital output, D0, which is active-low when the intensity of the sound picked up by the microphone exceeds a thershold. I have no idea what this threshold is or what volume it represents, or if it can be changed.

Have a look at the pages on AnalogRead() for information on how to convert analogue audio to a digital signal.

I don't know what you mean by "a Lib PCM thats converts chars in voices" - 'chars' as in the C-type chars or do you mean literal 'characters from a voice', i.e. speech recognition? I cannot tell if you have misunderstood something or there's an unfortunate translation coincidence which is confusing matters.

CharlieHanson
  • 1,430
  • 1
  • 11
  • 25