ATOM SPK is an audio player that adapts to the ATOM master control, with built-in I2S digital audio interface power amplifier chip NS4168, with automatic sampling rate detection, adaptive functions, and can effectively prevent audio signal distortion. Integrated TFCard card slot is convenient for saving and reading audio files. Provide 3.5mm headphone jack and external speaker interface, users can play audio through external headphones or speakers.
ATOM SPK Some IO conflict with ATOM Matrix's built-in hardware, so ATOM SPK is only applicable to ATOM LITE
Specifications | Parameters |
---|---|
Power amplifier chip | NS4168 |
Amplifier output power | 1W(VDD=3.3V) |
Headphone jack | 3.5mm |
Speaker interface | 1.25mm-2P |
Speaker power | 1W |
Net weight | 18.6g |
Gross weight | 37g |
Product size | 24*48*18mm |
Package size | 54*54*20mm |
EasyLoader is a simple and fast program burner, which has a built-in product-related case program, which can be burned to the main control through simple steps to perform a series of functional verification.
ATOM | G23 | G33 | G19 |
---|---|---|---|
TFCard | SCK | MISO | MOSI |
ATOM | G22 | G21 | G25 |
---|---|---|---|
NS4168 | BLCK | LRCLK | DATA |
NS4168 is a mono audio power amplifier(the right channel is used by default in the ATOM SPK hardware design)
Use ATOM SPK to play RawPCM files or MP3, the case is suitable for master: ATOM Lite.
AtomSPK.h - API
//Init I2S param(__rate: I2S sampling rate)
bool begin(int __rate = 44100);
//Play RawPCM param(___audioPtr: audio data pointer, __size: data length, freeFlag: whether to release the memory, __ticksToWait: allow the maximum duration of blocked playback)
size_t playRAW( const uint8_t* __audioPtr, size_t __size, bool __modal = false, bool freeFlag = true,TickType_t __ticksToWait = portMAX_DELAY );
//play Beep param(__freq: frequency, __timems: play market, __maxval: maximum volume, __modal: asynchronous or not)
size_t playBeep( int __freq = 2000, int __timems = 200, int __maxval = 10000, bool __modal = false );