I2s2 connection

have the teensy 4.1 in that for audio connection it play from sdcard .wav i2s2 my gps is connected in serial3 in teensy 4.1 but if I enable i2s2 the gps is not working,if I disable i2s2 pin on the code serial3 is working please give a solution
 
@jayakandan: It is best to post your example sketch that demonstrates the behavior in question, as well as a clear description of any hardware that you are using (GPS, whatever device you're using on I2S2, etc.) so that others can potentially reproduce your problem & help to troubleshoot what you're seeing.

Mark J Culross
KD5RXT
 
@kd5rxt-mark :Thank you for your reply,I have used l86 gps module here I declare sketch in that if I disable all these lines my gps is working otherwise it is not working
 

Attachments

  • IMG_20250820_010333.jpg
    IMG_20250820_010333.jpg
    99 KB · Views: 75
Last edited:
Can you supply a COMPLETE sketch that can be compiled that demonstrates your problem. Also please state what gps module you are using. Without this info no-one can compile your example and chase down your problem.
 
Serial3 uses pin 14,15 and I2S2 uses pins 2,3,4,5,33 so they should not conflict in software or hardware.

My only guess is perhaps the GPS antenna may be too close to signals like MCLK and BCLK. If used indoors, perhaps the GPS antenna gets a very weak signal. Perhaps simply turning on those clock signals is creating small electrical interference which disrupts the weak GPS signal.

Please understand without seeing the complete program and photo of the hardware wiring the best anyone can do to help is blind guessing. If you want better help, please give enough info so anyone could reproduce the problem. But if you can't share that much info, at least let us see. Without seeing, only blind guessing is possible.
 
Ok Thank you for your reply I have send you code please verify this when I give speaker on serial monitor my gps is stopped showing lat long message until I give speaker message on serial monitor the lat long message is showed
 

Attachments

  • code.txt
    2 KB · Views: 75
Back
Top