After experimenting with playing sound from an external source on my Pokitto by playing audio into the audio_out pex pin, I now no longer have sound from my Pokitto itself
Audio will still come out of the Pokitto through the audio out pin, but not the speaker. Which is more likely -
Looking at the schematic, it appears that if you put a headphone plug into the Pokittoâs headphone jack, then you could safely feed an audio signal into the PEX pin. The plug could be connected to headphones or just be an empty, standalone one with all connections left open, since its purpose is only to open up the switch in the headphone jack.
Doing this, the audio would come out of the speaker. You wouldnât be able to send audio from the PEX to headphones plugged into the jack. The volume of the audio coming out of the speaker would be strictly controlled by the amplitude of the of the PEX signal (which should not exceed 3.3V). This is because Pokittoâs on board volume control circuitry will not be in the signal path.
Plugging in headphones passes the audio directly to the headphones and nothing out of the speaker. Also just jamming something in the jack to knock the switch results in no sound either.
I wonder if in the sound interrupt, if I just pass the input from an analog pin straight to the audio buffer would it produce a sound?
My suggestion to insert a plug into the headphone jack is only to allow safely playing sounds on the speaker from an external signal fed into the PEX âaudio outâ pin. It assumes that the circuitry is undamaged.
playing sound into the pex pin, with headphones plugged in plays the sound through the headphones and canât hear anything on pokitto speaker. With cotton-swab plugged in, nothing through speaker.
If the schematic for the audio circuit that @jonne published early in this topic is correct, then that shouldnât be able to happen. Plugging in headphones should open the switch in the jack, which will disconnect the PEX âaudio outâ pin (and thus the speaker amp input) from the audio output and headphone circuitry. The PEX pin should then only be able to drive the speaker.
@jonne,
Does what @spinal said make any sense to you?