# Transducer analog input

**URL:** <https://forum.arduino.cc/t/transducer-analog-input/1260927>\
**Category:** Sensors\
**Created:** [May 17, 2024, 12:08am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927 "2024-05-17T00:08:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam628202](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@sam628202](https://forum.arduino.cc/u/sam628202)\
**Post date:** [May 17, 2024, 12:08am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/1 "2024-05-17T00:08:43Z")

</div>

Hello! I am trying to understand values a transducer is giving me for testing its response to certain sound inputs. I put in this code

```arduino
void setup() {
  Serial.begin(9600); // Start the serial communication
}

void loop() {
  int sensorValue = analogRead(A0); // Read the analog input on pin A0
  Serial.println(sensorValue); // Print the value to the Serial Monitor
  delay(1000); // Wait for a second before reading again
}

```

and while it prints out an analog value every second as intended, it starts around 800 or 900 and decreases by 14-17 increments every second until it gets to zero, and then it stays at zero (until I reset it, then this whole process begins again).  
I cannot for the life of me figure out why. Does anyone have any suggestions?? Thank you so much!

---

<div class="post-metadata">

**Author:** ![Ron\_Blain](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ron_blain/32/1126393_2.png) [@Ron\_Blain](https://forum.arduino.cc/u/Ron_Blain)\
**Post date:** [May 17, 2024, 12:56am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/2 "2024-05-17T00:56:07Z")

</div>

Not much to the code. So what exactly is going into A0?

Ron

---

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [May 17, 2024, 12:57am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/3 "2024-05-17T00:57:44Z")

</div>

Did you miss the request to read the how to grt the most of the forum when you signed up. \>\>\>\> [How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966)

What Arduino board?

What sensor? Output sample?

How about a schematc and data sheets?

---

<div class="post-metadata">

**Author:** ![Paul\_KD7HB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_kd7hb/32/1127958_2.png) [@Paul\_KD7HB](https://forum.arduino.cc/u/Paul_KD7HB)\
**Post date:** [May 17, 2024, 12:58am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/4 "2024-05-17T00:58:51Z")

</div>

Are the grounds connected?

---

<div class="post-metadata">

**Author:** ![cedarlakeinstruments](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/cedarlakeinstruments/32/1128931_2.png) [@cedarlakeinstruments](https://forum.arduino.cc/u/cedarlakeinstruments)\
**Post date:** [May 17, 2024, 1:42am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/5 "2024-05-17T01:42:00Z")

</div>

> [@sam628202](#):
>
> Does anyone have any suggestions??

Not without knowing what the transducer is.

---

<div class="post-metadata">

**Author:** ![johnerrington](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnerrington/32/340106_2.png) [@johnerrington](https://forum.arduino.cc/u/johnerrington)\
**Post date:** [May 17, 2024, 5:00am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/6 "2024-05-17T05:00:00Z")

</div>

> [@sam628202](#):
>
> a transducer

such as? please provide a link.  
And a schematic

> [@How to make a schematic you can post.](https://forum.arduino.cc/t/how-to-make-a-schematic-you-can-post/675103):
>
> When you submit a question on the forum you will usually need to add a schematic (circuit diagram). The tutorial that follows will explain some ways to create a useful image; however lets start by explaining how to add the image to your post. Its easy. Having created the image all you need to do is : Save the image somewhere convenient - maybe your desktop Start your post, and place the cursor (insertion point) where you want the image to be shown; [upload image to forum] 3: click th…

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [May 17, 2024, 9:54am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/7 "2024-05-17T09:54:44Z")

</div>

> [@sam628202](#):
>
> Does anyone have any suggestions??

You have the transducer connected backwards.  
You connected it to the wrong supply voltage.  
You have a loose connection.  
That's the way the transducer is supposed to work.  
The transducer outputs an AC voltage (+/-)  
The transducer is broken.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [November 13, 2024, 9:55am UTC](https://forum.arduino.cc/t/transducer-analog-input/1260927/8 "2024-11-13T09:55:35Z")

</div>

Closed on November 13, 2024, 9:55am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
