i am working on an audible guidance device using arduino UNO and 2 SPI devices :MFRC522(rf reader) and microSD card module(for playing saved audio).Im using an OLED too but its via I2C and its not causing my problem.
i ran into a problem and thats because of shared spi pins of these 2 modules and i surfed on the net and found some useful things but im still not getting my expected result.
I know about SS pin and connecting 2 slave device to arduino and i did it in my code by writing HIGH and LOW to CS pins of my modules but sdcard module MISO pin seems to not being released when its CS pin is HIGH.
so i surfed the net again and i found out that if i put a diode or 330ohm resistor between sdcard MISO and arduino it would solve the problem A BIT!
the problem is that i want to play audio through a headset(using 3.5mm audio jack …) but when im using resistor it plays a loud beep sound and not my voices and when i put a diode it only plays the voice once and then arduino needs to be restarted to play voices again.
so thats all the details please help and heres my code.THANK YOU
myprojec.ino (3.48 KB)