Hi,
I order an Adafruit Hallowing M0 Express at this https://learn.adafruit.com/adafruit-hallowing and I have some topics need to be clarified:
1. I'm planning to make a PC tool which 2-way communicates with Hallowing via Serial port. Can I use the Serial USB for read/write data? Or I need to use the other Serial1 on A9 and A10 with a TTL-USB module?
2. Is there any non-blocking Music player for Hallowing SAMD21 architecture? I could not find one.
3. I want to store some audio files, *.wav files, into built-in SPI Flash (already formatted to FATFS), and these audio files are not finalized during development which means I may need to change them many times. Is there a convenient way to upload/delete files like a File Explorer for this product?
Thank you very much for your time and best regards,
Manh
Hallowing M0 Express and 2-way Serial communication
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- tanmanh0707
- Posts: 6
- Joined: Sat Aug 27, 2022 6:26 am
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Hallowing M0 Express and 2-way Serial communication
Yes. The Serial connection to the computer can carry information both ways.
The CircuitPython audio methods are non-blocking:tanmanh0707 wrote: ↑Sat Aug 27, 2022 6:53 am Is there any non-blocking Music player for Hallowing SAMD21 architecture?
https://docs.circuitpython.org/en/6.3.x ... e.WaveFile
The UF2 bootloader mounts the file upload interface like a removeable drive. Saving files to the Flash chip is a simple drag-and-drop operation.tanmanh0707 wrote: ↑Sat Aug 27, 2022 6:53 am Is there a convenient way to upload/delete files like a File Explorer for this product?
- tanmanh0707
- Posts: 6
- Joined: Sat Aug 27, 2022 6:26 am
Re: Hallowing M0 Express and 2-way Serial communication
Thank you for confirmationadafruit_support_mike wrote: ↑Sat Aug 27, 2022 10:41 pm Yes. The Serial connection to the computer can carry information both ways.
I am using Spooky Eyes (UncannyEyes) Arduino based. I would like to have an Arduino based music player to work with UnncanyEyes also. Is there a library for that?adafruit_support_mike wrote: ↑Sat Aug 27, 2022 10:41 pm The CircuitPython audio methods are non-blocking:
https://docs.circuitpython.org/en/6.3.x ... e.WaveFile
As per my understanding, UF2 bootloader saves files to Flash chip.adafruit_support_mike wrote: ↑Sat Aug 27, 2022 10:41 pm The UF2 bootloader mounts the file upload interface like a removeable drive. Saving files to the Flash chip is a simple drag-and-drop operation.
I want to work with built-in 8MB SPI Flash, Is it what you mentioned about?
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Hallowing M0 Express and 2-way Serial communication
All of the Uncanny Eyes projects I can find in the Learning System use an ARM microcontroller, which is faster and has more memory than an Arduino's ATmega328.tanmanh0707 wrote: ↑Mon Aug 29, 2022 1:37 am I am using Spooky Eyes (UncannyEyes) Arduino based. I would like to have an Arduino based music player to work with UnncanyEyes also. Is there a library for that?
Could you post a link to the base project you're using please?
- tanmanh0707
- Posts: 6
- Joined: Sat Aug 27, 2022 6:26 am
Re: Hallowing M0 Express and 2-way Serial communication
Hi, thank you for your response.adafruit_support_mike wrote: ↑Mon Aug 29, 2022 7:55 pmAll of the Uncanny Eyes projects I can find in the Learning System use an ARM microcontroller, which is faster and has more memory than an Arduino's ATmega328.tanmanh0707 wrote: ↑Mon Aug 29, 2022 1:37 am I am using Spooky Eyes (UncannyEyes) Arduino based. I would like to have an Arduino based music player to work with UnncanyEyes also. Is there a library for that?
Could you post a link to the base project you're using please?
Sure, here is the project that I based on
https://learn.adafruit.com/animated-ele ... s/software
https://github.com/adafruit/Uncanny_Eye ... master.zip
It is the UncannyEyes project written in C/C++ / Arduino IDE based. So I would like to have a non-blocking music player in the same language/build system so that I can merge them into one single project. Such as Spooky eyes blinking while playing music.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Hallowing M0 Express and 2-way Serial communication
The title of that one is "Electronic Animated Eyes for ARM Microcontrollers", and it uses a Teensy 3.2:tanmanh0707 wrote: ↑Mon Aug 29, 2022 10:41 pm https://learn.adafruit.com/animated-ele ... s/software
https://www.adafruit.com/product/2756
A 72MHz ARM-M4 with 256kB of program memory and 64kB of RAM. It has the programming resources to do non-blocking audio. An Arduino Uno doesn't have enough power to do the same.
- tanmanh0707
- Posts: 6
- Joined: Sat Aug 27, 2022 6:26 am
Re: Hallowing M0 Express and 2-way Serial communication
Hi, thank you for your response.adafruit_support_mike wrote: ↑Tue Aug 30, 2022 9:09 pm The title of that one is "Electronic Animated Eyes for ARM Microcontrollers", and it uses a Teensy 3.2:
https://www.adafruit.com/product/2756
A 72MHz ARM-M4 with 256kB of program memory and 64kB of RAM. It has the programming resources to do non-blocking audio. An Arduino Uno doesn't have enough power to do the same.
I am not using Arduino Uno, I am using Adafruit Hallowing M0 Express with ATSAMD21G18 processor, 256Kb of program memory and 32KB of RAM. I checked the SpookyEyes section of Hallowing board and they led me to the UncannyEye for Teensy
https://learn.adafruit.com/adafruit-hal ... pooky-eyes
The Adafruit Hallowing is SAMD21 architecture which is same as ARM Cortex, I think. That's why I'm looking for a non-blocking audio player to play along with the Eyes. Is it possible?
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Hallowing M0 Express and 2-way Serial communication
Yeah, the HalloWing is capable of running the CircuitPython audio library I mentioned above.
Please be positive and constructive with your questions and comments.