Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this work with a 3xRCA to AV cable? Getting video noise, no sound #31

Open
dvilelaf opened this issue Dec 13, 2020 · 8 comments
Open

Comments

@dvilelaf
Copy link

I'm trying to make the sketch work in a ESP32 mini, and since I do not have any composite video-capable devices at home, I'm trying a 3xRCA to AV cable. After a few seconds connected, I can see some noisy vertical lines and some noisy colors from time to time, but no sound. Not sure if it's a connection problem of if there is something I'm missing. Maybe I didn't understand the scheme.

What I've done:

  • Solder positive of video cable to pin 25
  • Solder negative of video cable to ground
  • Solder both audio left and right positives to pin 26 through a 1k resistor (and set pin 26 as audio out in video_out.h)
  • Solder both audio left and right negatives to ground through a 10nf capacitor

photo_2020-12-13_14-24-55

@dvilelaf dvilelaf changed the title Should this work RCA to AV cable? Getting video noise Should this work with a 3xRCA to AV cable? Getting video noise, no sound Dec 13, 2020
@cziter15
Copy link

cziter15 commented Dec 13, 2020 via email

@dvilelaf
Copy link
Author

dvilelaf commented Dec 13, 2020

@cziter15, I read here the following comment:

If you're having the same problem as me the capacitor goes on the negative of the audio line, not T'd off the positive like it seems to newbs.

That's why I soldered the audio L/R outter/negative/shielding through the capacitor to ground. So should I solder the capacitor to the positive then?

What about the resistor? The scheme lists a 1k resistor in the audio line. Should I remove it? I'm a little confused about the 750 ohm impedance matching.

    -----------
    |         |
    |      25 |------------------> video out
    |         |
    |      18 |---/\/\/\/----|---> audio out
    |         |     1k       |
    |         |             ---
    |  ESP32  |             --- 10nf
    |         |              |
    |         |              v gnd
    |         |
    |         |     3.3v <--+-+   IR Receiver
    |         |      gnd <--|  )  TSOP4838 etc.
    |       0 |-------------+-+   (Optional)
    -----------

This is how I have it:

Video positive/yellow cable -----------------------------------PIN 25
Video negative/outter cable ---------------------------------- GND
Audio L/R positives (red & white) -------- 1k resistor --------PIN 26
Audio L/R negatives/outter ---------- 10 nF capacitor ---------GND

@Martin-Laclaustra
Copy link

Verify that you are using the correct connections for your device on the other end.
TRRS is far from being standardized:
https://en.wikipedia.org/wiki/Phone_connector_(audio)#TRRS_standards

@dvilelaf
Copy link
Author

Verify that you are using the correct connections for your device on the other end.

Interesting. How should I do that? The device is a cheap projector that has no instructions manual. Concerning the connections I listed on my last message, do you feel they're correct?

@dvilelaf
Copy link
Author

I've tried with another ESP32 on a breadboard. I've tried plugging pin 25 to every of the 3 different lines and none seems to output a video signal. Surely I must be doing something very wrong.

@dvilelaf
Copy link
Author

dvilelaf commented Dec 14, 2020

I can confirm that Bitluni CompositeVideo repository works with the actual cabling, and I can see the composite video demo. Still, esp_8_bit does not output video nor audio yet.

Edit: Corn64 fork also seems to output both video and audio (resoldering was needed due to TRRS), but as soon as my DualShock4 is detected in pairing mode, the program crashes.

@ghost
Copy link

ghost commented Dec 15, 2020

try changing the board type. I had video noise until I switched board type in the arduino IDE.

@CornN64
Copy link

CornN64 commented Dec 22, 2020

You can not use pin 26 for audio!
In fact both pin 25 & 26 outputs video and can't be changed to anything else.
You'll need to use some other pin like the one suggested (pin 18 or reconfigure it to some other), the reason being that the second DAC can not be used when running the APLL at these frequencies and another scheme is used for audio (PWM modulator) and thus it will not be compatible with bitlunis wiring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants