ESP32 and Mozzi problems.

85 views
Skip to first unread message

Joaquín Contreras Soto

unread,
Nov 18, 2024, 9:14:37 AM11/18/24
to Mozzi-users
Hi, my first post here.

I'm trying to use Mozzi to make a synth with an ESP32-WROOM32u, but I can't get it to generate sounds.

I already tried the basic blink and also some LED tests (fast led Cylon) and they work.

But even basic examples like Sinewave doesn't generate any sound (I'm trying with the GND and 25 pins to see if sound comes out).

I don't know if it's a problem with the Mozzi library, something with my system (I'm on Arduino IDE 2.3.3, on Mac Osx Ventura).
or if the ESPs I have are just defective (ali express).

The Serial Monitor throws a lot of unreadable symbols (question marks and other characters) non-stop.

Has anyone experienced such a problem?


Thank you very much in advance!
Regards
Captura de pantalla 2024-11-17 a la(s) 01.43.58.png

Brian Forster

unread,
Nov 19, 2024, 6:34:27 AM11/19/24
to mozzi...@googlegroups.com

I found that building up a program is helpful try a single tone output on each pin just to check that is working, when you have working pins try multiple tones. Then try incorporating mozzi. I'm not sure mozzi is compatible with esp32 more Arduino like nano uno. There is a list of compatible boards on mozzi website

Regards
Brian Forster

--
You received this message because you are subscribed to the Google Groups "Mozzi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozzi-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/mozzi-users/6c8811e5-afb9-46f0-a92b-259cfa8b33adn%40googlegroups.com.
Message has been deleted
Message has been deleted

Joaquín Contreras Soto

unread,
Nov 22, 2024, 5:09:01 AM11/22/24
to Mozzi-users
Thanks Brian, ESP32 is supposed to be compatible, I will keep testing.

Thank you very much!

tomco...@live.fr

unread,
Nov 22, 2024, 5:09:07 AM11/22/24
to Mozzi-users
Hi,

The ESP is one of the few boards I have not tried myself, though the strategy to get it to work is usually the same (and goes along Brian's post):
 - try first with a simple example, stock, and see if you manage to have sound. That will make sure that Mozzi is working and that you have correctly identified the output pin.
 - then add the other libraries that you plan to use, one at a time. Some libraries can have unforeseen conflicts with Mozzi (fighting for Timers, or others for instance), so it is easier to troubleshoot (and go-around or fix) that when the conflict is clearly identified.

More specifically on your problem: does the Monitor displays the same kind of garbage with the Sinewave example? Are you sure of the pin? Some boards relabel the pins number, you should aim for the GPIO25 (for instance this board: https://randomnerdtutorials.com/esp32-pinout-reference-gpios/ has its 25th pin not connected to GPIO25). Sometimes it is worth trying them all very fast, with the ground in place).

Hope this helps,
Tom
 -

Joaquín Contreras Soto

unread,
Nov 22, 2024, 5:41:28 AM11/22/24
to Mozzi-users
Thank you for your answers!

Yes, I am testing the sinewave first, and I have already discovered something. I have to use an old version of the Board Manager, ESP32 2.0.10. This one has worked with sinewave, giving sound on pin 25 and not displaying those strange characters on the monitor. I think it was rebooting over and over again without starting to run.

it has been an exhausting journey of trial and error. I am working with a friend who is in Mexico (I am in Germany) and it works for him on a linux computer, using exactly the same software; IDE, Mozzi, Board manager version, and the same esp32. 
That has been the frustrating thing, knowing that it works, but not on my computers (2 different macs and one Windows PC).

Summary: only on linux it works as I need. So apparently I have to install linux on a computer or keep trying to make it work on Mac. Crazy, but it works.

Thank you very much for your help!

Joaquín
You received this message because you are subscribed to a topic in the Google Groups "Mozzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mozzi-users/q0M_cOZv2pw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mozzi-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/mozzi-users/44583059-0a13-47d7-bc5e-00a500aa21e9n%40googlegroups.com.

tomco...@live.fr

unread,
Dec 22, 2024, 12:06:06 PM12/22/24
to Mozzi-users
There are funky things happening with ESP32 around… I'll try to test also!

Thanks for the report!

Reply all
Reply to author
Forward
0 new messages