Pages: [1]   Go Down
Author Topic: using the microphone input at the computer for analyzing  (Read 994 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Full Member
***
Karma: 0
Posts: 214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

the Protocol Analyzer uses a microphone input for the incoming signal.
Also Audacity can do this.

Can I use my earphone's cable that has a pin (that I can put into the PC's microophone input) and cut the cable and then supply voltage... ?

This is how I think:


Thank you
Logged

using Arduino Uno Rev 3

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can I use my earphone's cable
It's your cable. Use it if you want.

Quote
cut the cable
It's your cable. Cut it if you want.

Quote
and then supply voltage... ?
How much voltage? AC or DC? What amperage? What frequency? From where? For what purpose?

Being able to do something is not the same as knowing what to do,
Logged

Germany
Offline Offline
Full Member
***
Karma: 0
Posts: 214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

like illustrated in the picture 0 - 5V DC
It is for a 433MHz receiver and I want a good graph result
I already used a simple serial.println and read it via a terminal and converted these data to a graph
However, this method was very slow and unreliable.

Logged

using Arduino Uno Rev 3

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
like illustrated in the picture 0 - 5V DC
No. I don't believe that the PC is designed to accept a 0 to 5V DC input, The Arduino can not output anything other than 0 or 5V. PWM allows you to vary the duty cycle, so that some devices think that they are getting a variable voltage. They are not.

What baud rate are you using? What application on the PC is producing the graph? How are you sending the data (ASCII or binary)? What data are you sending? The 433MHz receiver must be getting data over the air from somewhere. What baud rate are you using to talk to the receiver?
Logged

Germany
Offline Offline
Full Member
***
Karma: 0
Posts: 214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Because I want to see the raw data, I simply read the RX's output with digitalRead(rx_pin) whereby rx_pin is the pin where the receiver is put in. And then check if this changed.



The program I wrote simply reads Serial input from COM port 10 and then saving these values in an array, depending of Odd(i) whereby i is the counter, it is drawn as 1 or 0. whereby odd(i) is the function i%2==1 (modulo).

I think the problem is that the Serial transmission is too slow for the amount of data that is sent, therefore I wanted to directly putthe RX's ouptut in the microphone input and then getting the graph with Audacity. Is that possible?

Logged

using Arduino Uno Rev 3

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is that possible?
That would depend on the input/output of the microphone connection. Audio, though, typically is a positive and negative (AC) voltage.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16499
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
wanted to directly putthe RX's ouptut in the microphone input and then getting the graph with Audacity. Is that possible?

Not likely at all. An audio input is expecting a AC voltage and is often capacitiance coupled and therefore no DC information like digital logic signals can pass through the coupling capacitor.


Lefty
Logged

Germany
Offline Offline
Full Member
***
Karma: 0
Posts: 214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, onfortunately, it definitely doesnt work. However, thank you for the explanation.
Logged

using Arduino Uno Rev 3

Pages: [1]   Go Up
Jump to: