New to Arduino programming, need some guidance.

I am trying to create a simple sound counter using a transducer. I would like it to count as the sound is produced, then display to an LCD screen. All I can find in the Labs for analogue inputs has to do with pots, though. Anyone have any guidance they can give me? Thanks in advance.

Counting is easy - working out when 'the sound is produced' seems like the hard part. Do you know how to read a value from the transducer? Do you know how to determine whether a sound is being produced? I guess you'll be doing some sort of threshold comparison of the samples read to work out whether a sound is being produced, and look for the presence of sound for some interval followed by absence of a sound for some interval to determine whether this is an event that needs to be counted. If you can get that part working then displaying the count on an LCD screen should be just like all the LCD examples.

Okay, so I am using the serial window to see the actual voltage level as I am producing sound. All I'm doing is clapping, unfortunately I'm not seeing a noticeable difference in voltage. One side of the transducer is to 5v, the other side has a 10k resistor to ground and is attached to A0 on the arduino.

My current code is this.

void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(A0);
float voltage = sensorValue * (5.0 / 1023.0);
Serial.println(voltage);

That's just so that I can see if there is any variation due to sounds being produced. So far no luck... Ideas?

What transducer?
This must produce a lot of serial output.

You might need an amplifer.

OKelliegh:
So far no luck... Ideas?

Confirm that the transducer is suitable for this application, find out how it is intended to be used, and use it like that.

I did a similar project a decade ago with an 8051, figured it would be easier with an arduino. And yeah, this mic worked in that circuit without a problem.