Hello, I am making a project that keeps on reading values from five flex sensors then producing the output on a TFT LCD and a speaker. basically the flex sensors are on a glove and i'm detecting gestures and translating them into voice and image from an SD Card.
my system works fine but when the audio is played the reading stops which means that the system terminates although it is in loop. it is suppose to detect other gestures from flex sensors.
i commented the play function and let my system only display the images on LCD, it works perfectly and it keep on detecting different gestures till i disconnect the system.
so i figured that it is some thing with the " play" function itself.
even when i switched the output in the code to first play the audio then display the image, when the audio played and that is it. the image didn't appear and the system terminates.
but when image is first the both work then the system terminates.
when only image it works and it keep on detecting.
i really need a solution to make my system keep on detecting gestures after playing the audio.
My code is attached.
Thank you very much
system.ino (2.63 KB)