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.py
toconfig.py
. - Create three
wav
files and rename them asaudio_nr0.wav
,audio_nr1.wav
,audio_nr3.wav
(you can use mine files, they are inside theaudios
folder). The files should be mono and the sample frequency 44.1kHz. If you want another frequency, you can modify the parameterSAMPLES_PER_SECOND = 44100
inside themain.py
file. - Upload the
py
andwav
files 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.conf
to upload thewav
files. 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 thewav
files separately using theadafruit-ampy
Python 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.