Hi Kiste,

Nice solution. Hans has options to select from ??.

BTW. @hans. I made as small error in  my hardware receiver solution. Capacitor 
C3 should be 2nF (two 1nF in parallel) but if I where you I would try Kiste's 
solution first. If that works you are done.

Kind regards,

Rob

________________________________
Van: 'Oliver Seitz' via jallib <[email protected]>
Verzonden: dinsdag 5 april 2022 19:12
Aan: [email protected] <[email protected]>
Onderwerp: Re: [jallib] PWM serial audio transmission

I have only made small changes in the code and improved the comments. I did not 
try this version, but I'm quite sure it should work. You only need a PIC, a 
resistor, a TTL-Serial converter with a computer and the sample audio file 
which i posted earlier to see it working.

(You can even omit the resistor, but you could fry the PIC then. Especially if 
you don't use the error LED and have no idea about what volume to set)

Greets,
Kiste

Am Dienstag, 5. April 2022, 12:05:59 MESZ hat hans 
<[email protected]> Folgendes geschrieben:


Hello Rob and Kiste,
The next days i have a friend who can assist me. So (beside his AC project) we 
might find time to continue with this . So please give us the last info.
Thanks again
hans

Op zondag 3 april 2022 om 15:57:03 UTC+2 schreef [email protected]:
Hi Hans,

I also tried it with a lower frequency, 3330 Hz for the low tone and 4030 Hz 
for the high tone so that the signal is strong enough when you record it.

If you want to know more, let me know.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens hans 
<[email protected]>
Verzonden: zondag 3 april 2022 15:11
Aan: jallib <[email protected]>

Onderwerp: Re: [jallib] PWM serial audio transmission
Still foggy, just wait a little longer with this case.

Op zaterdag 26 maart 2022 om 20:05:55 UTC+1 schreef [email protected]:
Hi Hans,

I hope you are getting well soon. Last update. I recorded the audio and played 
it back to see if it works.

And it seems to work but may need some fine tuning. In this video you see the 
device in operation: https://youtu.be/w-j0ekk975g

The yellow line on the oscilloscope is the audio signal and the blue line the 
trigger signal. This trigger signal is also visible by the Amber LED on the top 
right of the breadboard.

I recorded the low tone (it is a video recording but I am only using the audio) 
and switched from low tone to the high tone frequently. What you see is that 
the signal of the high tone is smaller but it still works. You also see that 
the refresh of the oscilloscope is a bit behind so the LED on the breadboard 
shows the real trigger. I also attached two screenshots. You see that the 
trigger response is quite fast (zoomed in) but with a high tone it is not 
constant (see zoomed out) but that can be solved in software and could be 
because the signal is smaller. Also I noticed that when no signal is present 
the output is also high but that stops as soon as the low tone is detected.

So still a proof of concept but seems to do something. I also attached the 
audio tone. Maybe lower tones would be better.

For recording I just used the output of the PIC using a resistor divider of 10 
k with 100 Ohm and connecting that to the line in of my computer. For playback 
I added an LM358 to amplify the input signal and I used the headphone output.

Kind regards,

Rob


Op donderdag 24 maart 2022 om 12:47:49 UTC+1 schreef [email protected]:
Hi Marieke,

Thanks for the update. Let's hope Hans recovers soon.

Kind regards,

Rob

________________________________
Van: 'Oliver Seitz' via jallib <[email protected]>
Verzonden: donderdag 24 maart 2022 07:37

Aan: [email protected] <[email protected]>
Onderwerp: Re: [jallib] PWM serial audio transmission
Altijd met Rust...

It took me two weeks to think, code and test, and it will take more weeks for 
proper documentation. So no need for you to hurry ;-)

Greets,
Kiste

Am Mittwoch, 23. März 2022, 22:36:19 MEZ hat hans <[email protected]> 
Folgendes geschrieben:



Hello everyone,

My grandfather Hans has only one usable eye and has got an infection on it. We 
have read your contributions and he is very happy with them. Sorry but he can't 
work with it right now.

Regards Marieke

Op woensdag 23 maart 2022 om 17:22:42 UTC+1 schreef Kiste:
And here's the receiver, and a sample file. Mp3 does work at 1200baud, but you 
shouldn't use less than 128kbit for encoding. At 80kbit I only got garbage. 
Volume must be reasonably high, slowly turn louder until the error LED is 
constantly off.

Don't send too much data back-to-back, have pauses of like 10 ms every second 
(but keep the tone on all the time)

Don't assume error-free transmission, send data multiple times and check when 
receiving.

Greets,
Kiste



Am Sonntag, 20. März 2022, 13:22:14 MEZ hat 'Oliver Seitz' via jallib 
<[email protected]> Folgendes geschrieben:


Hi all,

here's my encoder. I looked for something similar to the 12F683 which Hans has 
in stock, and found some 12F629, which should be quite compatible.

[https://groups.google.com/group/jallib/attach/3706ee4887ec0/IMG_20220320_125643851.jpg?part=0.3&view=1]

C1: minimum 1µF, no need to be polarized
R1:680R..1k
C2: 100nF
R2:1k..4k7
D1=D2: 1N4148, 1N4001 or similar, silicon, not schottky

This gives a frequency which a line (AUX) audio input should be able to handle. 
The receiver will be the same kind of chip, but it must have a comparator and a 
reference voltage module. TMR0 will be used.

The transmitter will work on any 6 or 8 pin controller, as it doesn't use any 
peripherals.

Greets,
Kiste



--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/189584036.471955.1647778917998%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/189584036.471955.1647778917998%40mail.yahoo.com?utm_medium=email&utm_source=footer>.


--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jallib/2bdcd32b-101d-4d29-8397-ddbb370e4788n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/2bdcd32b-101d-4d29-8397-ddbb370e4788n%40googlegroups.com?utm_medium=email&utm_source=footer>
.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/1612276249.1299494.1648103861495%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/1612276249.1299494.1648103861495%40mail.yahoo.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to a topic in the Google 
Groups "jallib" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jallib/46GAtaPeJ_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected].

To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/bac9ec42-c8a3-4f2f-82b1-16b63d06b6f6n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/bac9ec42-c8a3-4f2f-82b1-16b63d06b6f6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jallib/df201f79-6365-434b-b804-c948ddb305b3n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/df201f79-6365-434b-b804-c948ddb305b3n%40googlegroups.com?utm_medium=email&utm_source=footer>
.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/523724631.932444.1649178768469%40mail.yahoo.com<https://groups.google.com/d/msgid/jallib/523724631.932444.1649178768469%40mail.yahoo.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/DB6P195MB01833AD456472E04F62B1311E6E49%40DB6P195MB0183.EURP195.PROD.OUTLOOK.COM.

Reply via email to