0 Members and 1 Guest are viewing this topic.
I mean you can easily test that it works by simply connecting TX with RX, and verify that what you send is whay you receive. I'd write a small program in Python or whatever to send byte patterns and verify.Without a scope or logic analyzer it'll be difficult to debug the circuit though.
What's the point ?Waste a lot of your time, to reivent the well to save 2 bucks, and have a horrible performance ?
This is a total nonsense, nothing is easier than buy < 2 USD converter , or even use one arduino,
No matter how good the audio-serial converter is, I strongly doubt it would be error free over the tens of thousands of bits in a typical small program. It only takes a single bit error in your code to make it crash, right? so this seems like a bad idea.
That's not going to work very well as you've drawn it, because the DC level will drift off if you get a run of bytes with unequal numbers of ones and zeros.
You might be able to fix the output side by connecting a diode with its cathode to the right side of C2 and its anode to ground, so that the DC level gets reset whenever it tries to dip below ground.
You'll have a similar problem on the input side. You could try eliminating C1 and just drive the MIC input directly (or maybe through a resistor to protect against damaging something). But if there is AC coupling in the sound card that won't help. In that case you might need some smarts in your decoding software to cope with a slowly changing DC level.
There is already AC coupling inside (almost?) every soundcard input, adding another AC coupling doesn't change much. The only solution to it is that your RX software has to ignore the DC level and look for rising and falling edges, wherever they are.