Reading jack output

Hey everyone!

I'm just starting with electronics, I'm not an expert. Please be gentle ;). See my current setup below:

(See next post, not allowed to attach images in first post)

The goal is to read the output signal (normal jack) of the walkie-talkie. When reading analog pin zero, something really strange happens:

638

78

0

0

0

0

0

0

0

0

13

363

794

1023

1023

1023

1023

1023

625

58

0

0

0

0

0

0

0

0

29

343

795

1023

1023

1023

1023

1016

626

49

0

0

0

0

0

0

0

0

12

324

801

1023

1023

1023

1023

1019

617

39

0

0

0

0

0

0

0

0

19

327

821

1023

1023

1023

1023

1017

603

16

0

0

0

0

Since the walkie-talkie doesn't emit any signals, this should be all zero's, right? More strange things happen when I unplug everything completely:

143

111

92

84

93

107

136

167

198

229

253

263

253

235

205

174

142

111

90

86

93

108

136

167

198

230

253

261

252

234

204

173

141

108

90

83

94

108

137

168

199

231

253

261

253

233

203

172

140

109

90

85

92

108

137

168

199

229

254

261

251

Can anyone explain this behavior?



More strange things happen when I unplug everything completely:

Can anyone explain this behavior?

That's a floating input. You need some kind of a load on the pin.

You need to be really careful connecting to the analogue pins to make sure you don't connect negative voltages.

Plugging an LED directly into a Duemilanove like you have is a good way of destroying the output pin, its completely unnecessary as the Duemilanove already has an LED on pin 13 built onto the board.

That old tutorial from the NG days wants either updating or erasing.....

The audio output from a walkie talkie is almost certainly negative relative to ground at times (like half the time) which means you won't be doing the ADC any good either. The analog input pins are 0-5v only (Not strictly but at this stage of the game, its near enough)

I'd do a bit of learning before you destroy your Arduino.

And measuring anything always involves making two connections, one is the signal you wish to measure and the other is a common reference connection usually called ground or circuit common. On a Arduino it's called ground and it needs to be connected to the negative side of the battery powered device you are trying to measure.

If the 'output' jack you are measuring is the RF (or antenna connection) of the set, you will never get anything meaningful to read on the Arduino, it's too high a frequency and is a AC voltage.

Without external components, anything wired directly to an Arduino analog input pin must be DC and not go above or beyond 0 to +5vdc.

Lefty

Thanks for your answer AWOL. Why don't I get a floating input if I disconnect the blue wire from the breadboard, but not from the arduino board?

Ok, pluggy, I won't do it again ;). I read it in a book I bought together with the Arduino.

I read it in a book I bought together with the Arduino.

If its telling you to connect an LED directly between Gnd and Pin 13, its way out of date. At one time in the Arduino's history it was OK to do it, not with modern ones like the Duemilanove since they don't have an inline current limiting resistor. What they do have is their own LED with resistor on Pin 13. (Usually marked 'L').

Thanks for all your answers so far! So I'll need a rectifier to convert AC to DC and an amplifier to scale the voltage up/down, right?

It depends on what you want to do with the audio and at what levels its coming out of the jack at. The arduino lacks horsepower for sampling audio frequencies so what you can do with it is a little limited. One way or another you need to get its output to 0-5v. It wants amplifying before rectifying so the 0.6 volt drop across a rectifier diode isn't so relevant then maybe reduce it with a voltage divider. Depends on what voltage is coming out.......

I'll try to grab some equipment from school tomorrow, to read the voltages coming out of the walkie-talkie.

And you need to connect the arduino ground(Gnd) to the ground of the walkie talkie, if the idea is to digitalize the sound I don't think that it would work very well.

I sometimes find it handy to plug an LED in like that to test things - you can purchase a LED that has the current limiting resistor, suitable for 5v built in.

Why don't I get a floating input if I disconnect the blue wire from the breadboard, but not from the arduino board?

You always get it but the longer the wire the bigger is the pickup. It's an antenna.