How to pass data through the audio port?

Hello. Interested in the question: I need to transfer information from the microcontroller via the audio port on the computer. On the microcontroller we output is what would this data need to be connected to rashema for a microphone on a PC? Right? Or can you not connect to mikrofonom entrance. And just reprogrammed the audio port on the PC to receive data. So, too, really do?
another idea was to add a microcontroller to SD memory card that would be all the testimony was preserved on it, at the end of the deposition data is sent to the computer. Tell you something ? maybe I'm in something wrong ...
July 9th 19 at 12:50
6 answers
July 9th 19 at 12:52
View in the direction of the modulation from the old PC, which stored data on audio cassettes. Although it is strange to use the old MCS-51, SD card and transmission of sound. Now there is a normal AVR and STM with a USB controller, and the ROM chips.
I use the microcontroller Datasheet AT89LP214 has. But it would be more interesting as you realize that a signal would be transmitted from the microcontroller on audioreklamy on your PC . On audiorate we write a driver and use the remove program of the testimony already with PC.
Jack we use 4 pins the same as in USB. 2 pin 2 signal. This is the same as USB only in the implementation not understand everything - aida_Runte commented on July 9th 19 at 12:55
AVR normal for a given task there is, once safely STM, and NXP, but to take without hesitation. AVR in current situation it's either Arduino sketches or sverniciatore that either.
If advised of the ATS that ATmega X - there is at least the DMA is what is and should be first author (and sound without DMA it's a hell of a distortion on arkah), but it's hardly at the price/quality wins and little known. - Josephine_Gislas commented on July 9th 19 at 12:58
: well, the road back already is not present. As I took the microcontroller and it has already started to issue the diploma. Now as then it is perverted. I've been thinking. The output From MK digital signal , we put a digital to analog Converter output an analog signal using the program remove this signal is again converted to digital and get our values from sensors to a MK. Correct if wrong - aida_Runte commented on July 9th 19 at 13:01
I saw that you are using this microcontroller, it Intel 51 architecture. Once you ask such questions, I conclude that you are a beginner. Well, I do not see sense now to take it.

About your choice I can't say anything, maybe you have a sound card is the only interface input / output. And so Yes, you can just use the one level encoding of the signal, then you can purely read the state of port well, and to jerk his leg. If something is difficult, there are already trickier.

And so, if possible, better not to reinvent the wheel. At least take the built-in UART.

: : I've seen that use this microcontroller, it Intel 51 architecture. Once you ask such questions, I conclude that you are a beginner. Well, I do not see sense now to take it.

About your choice I can't say anything, maybe you have a sound card is the only interface input / output. And so Yes, you can just use the one level encoding of the signal, then you can purely read the state of port well, and to jerk his leg. If something is difficult, there are already trickier.

And so, if possible, better not to reinvent the wheel. At least take the built-in UART.

: Yes, I think more and more that the author is from ignorance of the toils. The drivers are what you want, although just work yourself out of a program with sound and drivers, then why... Sorry if it is not, and you want it to transfer everything via the sound card. - dave.Murr commented on July 9th 19 at 13:04
Send via UART, and all IMHO. On USB-UART (this is cp, ftdi) or COM (only the signal levels copralite). - dave.Murr commented on July 9th 19 at 13:07
a beginner, and therefore came to ask the views of other MB will tell you something. - aida_Runte commented on July 9th 19 at 13:10
: Advise, then something on the Atmel? - aida_Runte commented on July 9th 19 at 13:13
: Follow the path of least resistance. COM/USB in a computer there? Can I use them? In your microcontroller has a UART. so what can they pass without hemorrhoids. Quite popular method. - dave.Murr commented on July 9th 19 at 13:16
And if you use a digital-to-analog Converter box? It will be my digital signal from MK to encode in analog we can get audio output. Is that unrealistic?https://xakep.ru/2014/03/27/62269/ - aida_Runte commented on July 9th 19 at 13:19
: DAC/ADC on the idea stupid instead of numbers, give the analog signal of a value/measure the magnitude of the analog signal. It for you will do nothing.
In General, all even take the same UART and implement all software. But really, why? The microcontroller is a standard UART interface to my computer it connects fine. Why not take advantage of them, not to reinvent the Bicycle? - dave.Murr commented on July 9th 19 at 13:22
: this diploma has proposed to implement through the audio connector. Will be more interesting if you figure it out. No one said this diploma is not handed over. The project lies in the fact that would with the MC to diagnose the ebook, you connect the sensors to take sensor readings and transmit them via audio Jack on the PC. And for this suggested to use transfer data via USB and the audio Jack. - aida_Runte commented on July 9th 19 at 13:25
: because you can take these two UART signal wiring and connect them to the Audio output. Then put a digital to analogue Converter. Receive the analog signal using the program remove it and preobrazovan in the numbers and get our values from sensors to a MK. Or do not ride? - aida_Runte commented on July 9th 19 at 13:28
either tell us your idea for using USB. We'll take readings on a PC? Explain - aida_Runte commented on July 9th 19 at 13:31
If we are to go on, then audio is too new. Better the old fashioned way of blinking the led, transmitting Morse code. There is a significant plus, it is possible to decode without a computer. Well, or at least to put on the PC's infrared sensor :) - Keira commented on July 9th 19 at 13:34
: well damn I'm not in joking play. I'd like to hear a normal reply) - aida_Runte commented on July 9th 19 at 13:37
July 9th 19 at 12:54
You here is all chewed: do microcontroller FSK modem, connect it with the MIC input on the computer and listening to the signal, and then decodedate it. Driver there any side not feel anything, but ACCORDING to decode signal on the computer will have to write, of course. "reprogram" audio Jack is also not necessary you have your MIC input is. No matter, separate or combined.
Don't want to have fun with the encoding and decoding of data - make the connection through COM port, it's all easymode for newbies.
Want to SD card, learn to work with it as SPI and work with the file system.
If you have a diploma lit and knowledge about microcontrollers in a neighbourhood of zero, make the exchange via COM-port and do not fuck the brain, headings, typed in caps, it's rude.
July 9th 19 at 12:56
clearly the second option "add a microcontroller to SD memory card" it is better and more time there are problems just with getting the sound, and, therefore, implementation of audio FSK modem is better not to Suva.

Examples with SD card sea. But since it's not specified what do Arduino/стм32 and so that I can not help. Suggest to Google under its platform. SD card Razgulay very much, "soldered 10 wires, copied from a ready example and it worked" are examples of the category are immediately, and should know who to be to not find them.
I use the microcontroller Datasheet AT89LP214 has. But it would be more interesting as you realize that a signal would be transmitted from the microcontroller on audioreklamy on your PC . On audiorate we write a driver and use the remove program of the testimony already with PC.
Jack we use 4 pins the same as in USB. 2 pin 2 signal. - aida_Runte commented on July 9th 19 at 12:59
July 9th 19 at 12:58
As I understand we share the digital signal from the analog? - aida_Runte commented on July 9th 19 at 13:01
nothing shared. do fsk modem on the side of the microcontroller (google://atmega fsk modem) and a squeak in the audio section. on the other side and take demodulize. we get the figure. - Josephine_Gislas commented on July 9th 19 at 13:04
And how do we get it ? still need additional software? - aida_Runte commented on July 9th 19 at 13:07
in any case, you need additional software (or a separate driver, which makes it even harder), as "And just reprogrammed the audio port on the PC to receive the data" is nonsense, simply put. - dave.Murr commented on July 9th 19 at 13:10
: Well, I just misspoke. We write the driver under audio Jack which enables us to reconfigure our audio Jack for data reception and transmission. That is so true? - dave.Murr commented on July 9th 19 at 13:13
July 9th 19 at 13:00
Of course you can encode 0/1 by different frequencies, but it is much safer to use a USB
July 9th 19 at 13:02
You can still use the quadrature (2-phase) or tone (2 frequencies) modulation.

Find more questions by tags Microcontrollers