Hi Ron:
Your diagram looks correct. As long as the sensor and the Foxonix board are on the same power supply, and if the output of the sensor is connected to the input pin, then the connections should be correct.
In the basic "Counting to Twelve" program that you started with, the PRG/RUN LED should only be on for as long as the audio is playing. If you didn't modify the program then yours should behave the same way. When the audio stops, the LED should turn off. If it's not, then it may be because there is extra silence at the end of your audio files. The chip would continue to play this silent audio and the LED would stay on. If this is the case then you should remove the extra silence at the end of your audio files.
Regardless, the sample program you started with is set so that the inputs will interrupt each other. So if audio is playing and another sensor is triggered the current audio would stop and the new audio would start.
Most PIR sensors have controls to set the sensitivity and the delay time. (Probably the two pots on your board.) It could be that the sensors that aren't triggering are set for really low sensitivity or a really long delay time, in which case it would appear that they are not triggering the chip. If you have a multimeter (to measure voltage) or an oscilloscope, you could check the output of the sensor to see if the output signal is high or low. That way you can tell if the motion sensor is triggering correctly.
One other question. When your PIR sensor is triggered does the output go low or does it go high?
Let me know what you find.
- Will
Foxonix - make your ideas heard.
@foxonixdev