Hallowing M0 Express and 2-way Serial communication

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tanmanh0707
 
Posts: 6
Joined: Sat Aug 27, 2022 6:26 am

Hallowing M0 Express and 2-way Serial communication

Post by tanmanh0707 »

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

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Hallowing M0 Express and 2-way Serial communication

Post by adafruit_support_mike »

tanmanh0707 wrote: Sat Aug 27, 2022 6:53 am Can I use the Serial USB for read/write data?
Yes. The Serial connection to the computer can carry information both ways.
tanmanh0707 wrote: Sat Aug 27, 2022 6:53 am Is there any non-blocking Music player for Hallowing SAMD21 architecture?
The CircuitPython audio methods are non-blocking:

https://docs.circuitpython.org/en/6.3.x ... e.WaveFile
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?
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.

User avatar
tanmanh0707
 
Posts: 6
Joined: Sat Aug 27, 2022 6:26 am

Re: Hallowing M0 Express and 2-way Serial communication

Post by tanmanh0707 »

adafruit_support_mike wrote: Sat Aug 27, 2022 10:41 pm Yes. The Serial connection to the computer can carry information both ways.
Thank you for confirmation
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
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 UF2 bootloader mounts the file upload interface like a removeable drive. Saving files to the Flash chip is a simple drag-and-drop operation.
As per my understanding, UF2 bootloader saves files to Flash chip.
I want to work with built-in 8MB SPI Flash, Is it what you mentioned about?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Hallowing M0 Express and 2-way Serial communication

Post by adafruit_support_mike »

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?
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.

Could you post a link to the base project you're using please?

User avatar
tanmanh0707
 
Posts: 6
Joined: Sat Aug 27, 2022 6:26 am

Re: Hallowing M0 Express and 2-way Serial communication

Post by tanmanh0707 »

adafruit_support_mike wrote: Mon Aug 29, 2022 7:55 pm
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?
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.

Could you post a link to the base project you're using please?
Hi, thank you for your response.
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.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Hallowing M0 Express and 2-way Serial communication

Post by adafruit_support_mike »

tanmanh0707 wrote: Mon Aug 29, 2022 10:41 pm https://learn.adafruit.com/animated-ele ... s/software
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.

User avatar
tanmanh0707
 
Posts: 6
Joined: Sat Aug 27, 2022 6:26 am

Re: Hallowing M0 Express and 2-way Serial communication

Post by tanmanh0707 »

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.
Hi, thank you for your response.
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?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Hallowing M0 Express and 2-way Serial communication

Post by adafruit_support_mike »

Yeah, the HalloWing is capable of running the CircuitPython audio library I mentioned above.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”