This repository includes two applications for the M5Stack ATOM Echo running MicroPython.
M5Stack: Introducing the new M5Stack ATOM ECHO
- Clone the repository:
git clone https://github.com/lemariva/uPyM5Echo.git
- Rename the file
config.sample.pytoconfig.py. - Create three
wavfiles and rename them asaudio_nr0.wav,audio_nr1.wav,audio_nr3.wav(you can use mine files, they are inside theaudiosfolder). The files should be mono and the sample frequency 44.1kHz. If you want another frequency, you can modify the parameterSAMPLES_PER_SECOND = 44100inside themain.pyfile. - Upload the
pyandwavfiles using VSCode and the PyMakr Extension. You may need to modify the option"sync_file_types":"py",to"sync_file_types":"py,wav",inside the filepymakr.confto upload thewavfiles. The size of the files together should not be greater than 3MB, otherwise you'll get an error by uploading. If you want to, you can upload thewavfiles separately using theadafruit-ampyPython extension.
You can then connect to the M5Stack via Bluetooth using e.g., the BLE Scanner app and set the BLE Custom Characteristic to 01, 02, or 03 (Byte Array) to play different tracks.
The record and play example, which is shown in the video, results from using the micro_record_play.py file.
