SGTL5000 ESP32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SGTL5000 ESP32

3,663 Views
Josh23
Contributor I

Hey. I'm need some help. I am using the sgtl5000 to send data to the Esp32 via I2S from Line in. However I'm finding that the samples are repeated twice or thrice when I read them. I have given both the Esp32 and the SGTL5000 the same sampling frequency. I don't know what I'm missing

1000331459.jpg1000331459.jpg

 

0 Kudos
Reply
5 Replies

1,934 Views
jonesnatelye
Contributor I

I truly appreciate you openly sharing your technical situation with the SGTL5000 and ESP32 over I2S, as it allows many others to learn from the repeated-sample issue. This instantly reminds me of Geometry Dash, where precision in each move is the key to overcoming obstacles. If you’re looking to solve it thoroughly, proactively review your clock settings and consult the official documentation of both devices to make proper adjustments.

0 Kudos
Reply

3,639 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You ESP32 is acting like ping pong on the I2S bus please check it

Regards

0 Kudos
Reply

3,558 Views
Josh23
Contributor I

You were right. The problem was with the I2S format. I was using the I2S standard format on the SGTL5000 but standard MSB on the ESP32. When I changed the ESP32 to use the I2S Phillips stanard format, it worked. Though I do get alot of noise on the signal when I reconstruct it at the esp32.

0 Kudos
Reply

3,617 Views
Josh23
Contributor I

Ok. Let me investigate it.

0 Kudos
Reply

2,914 Views
liamoliver211999
Contributor I

In New York State, divorce mediation offers a collaborative approach for spouses to amicably resolve separation terms with the assistance of a neutral mediator. This process is often faster, more cost-effective, and less adversarial than traditional divorce litigation. Engaging an attorney during mediation can help protect your interests and ensure a fair agreement.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1978031%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESGTL5000%20ESP32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978031%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHey.%20I'm%20need%20some%20help.%20I%20am%20using%20the%20sgtl5000%20to%20send%20data%20to%20the%20Esp32%20via%20I2S%20from%20Line%20in.%20However%20I'm%20finding%20that%20the%20samples%20are%20repeated%20twice%20or%20thrice%20when%20I%20read%20them.%20I%20have%20given%20both%20the%20Esp32%20and%20the%20SGTL5000%20the%20same%20sampling%20frequency.%20I%20don't%20know%20what%20I'm%20missing%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221000331459.jpg%22%20style%3D%22width%3A%202408px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%221000331459.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305822i8C5FC88210BB912A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%221000331459.jpg%22%20alt%3D%221000331459.jpg%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3E1000331459.jpg%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2175390%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGTL5000%20ESP32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2175390%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20truly%20appreciate%20you%20openly%20sharing%20your%20technical%20situation%20with%20the%20SGTL5000%20and%20ESP32%20over%20I2S%2C%20as%20it%20allows%20many%20others%20to%20learn%20from%20the%20repeated-sample%20issue.%20This%20instantly%20reminds%20me%20of%20%3CA%20href%3D%22https%3A%2F%2Fgeometrydash2.co%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EGeometry%20Dash%3C%2FA%3E%2C%20where%20precision%20in%20each%20move%20is%20the%20key%20to%20overcoming%20obstacles.%20If%20you%E2%80%99re%20looking%20to%20solve%20it%20thoroughly%2C%20proactively%20review%20your%20clock%20settings%20and%20consult%20the%20official%20documentation%20of%20both%20devices%20to%20make%20proper%20adjustments.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2034168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3Edivorce%20mediation%20new%20york%20state%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2034168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20New%20York%20State%2C%20divorce%20mediation%20offers%20a%20collaborative%20approach%20for%20spouses%20to%20amicably%20resolve%20separation%20terms%20with%20the%20assistance%20of%20a%20neutral%20mediator.%20This%20process%20is%20often%20faster%2C%20more%20cost-effective%2C%20and%20less%20adversarial%20than%20traditional%20divorce%20litigation.%20Engaging%20an%20attorney%20during%20mediation%20can%20help%20protect%20your%20interests%20and%20ensure%20a%20fair%20agreement.%3C%2FP%3E%3CDIV%20class%3D%22%22%3EWebsite%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsrislaw.com%2Fnew-york-state-divorce-mediation%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Edivorce%20mediation%20new%20york%20state%3C%2FSPAN%3E%3C%2FA%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1984561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGTL5000%20ESP32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1984561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20were%20right.%20The%20problem%20was%20with%20the%20I2S%20format.%20I%20was%20using%20the%20I2S%20standard%20format%20on%20the%20SGTL5000%20but%20standard%20MSB%20on%20the%20ESP32.%20When%20I%20changed%20the%20ESP32%20to%20use%20the%20I2S%20Phillips%20stanard%20format%2C%20it%20worked.%20Though%20I%20do%20get%20alot%20of%20noise%20on%20the%20signal%20when%20I%20reconstruct%20it%20at%20the%20esp32.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGTL5000%20ESP32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOk.%20Let%20me%20investigate%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGTL5000%20ESP32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20ESP32%20is%20acting%20like%20ping%20pong%20on%20the%20I2S%20bus%20please%20check%20it%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E