This repository contains the host and client code for a streaming (voice) laser microphone - but adaptable to any sensor - based off a PIC16F18313. The code samples ANA0 at approximately 8khz, streaming the result over 115200baud serial.
This was originally based off an ESP8266 (for inbuilt wifi), but the ADC tops out at 2Khz when wifi is on.
Two gotchas when using interrupts:
- Firstly, you need to manually enable global and peripheral interrupts
- Secondly, the clock source should not be HFINTOSC - use FOSC/4.