Psi,
I fixed the 3.3v regulator enable pin, thanks for that.
Thanks so much for the feedback, the trick with the Pizeo is awesome, I have no idea how to determine if the pins are complementary.
ive not looked to closely but the reset and voltage superviser stuff doesnt look right.
You don't appear to have any ground going to the GND_1 pin of the esp32
Also i doubt your reset button will glitch the power enough for the superviser to detect it and toggle EN for a reset.
10k is a tiny load, 10R maybe
Yeah this was a shot in the dark for me. 1. I assuming all of the grounds on the ESP32 are tied together infernally therefor GND_1 is grounded through GND_12, but I can easily be wrong on this. I will add a ground here just to be sure.
I looked over the datasheet for the supervisor and was a little confused, I used case 2, which seems to remove the resistor all together. I included the sample circuit from the datasheet.
- Check CP2104 datasheet, ive never used the CP2104 but i'm pretty sure you need VBUS connected so the chip can detect when a usb cable is inserted.
You were right on the VBUS I fixed that and a few other things I caught after looking again at the data sheet which I also included.
You will get a louder piezo beep if you connect both the piezo pins to outputs on the ESP32 and switch them in opposition.
ie, one output high when the other is low, then flip. If running from 3.3V this creates 3.3V deflection in one direction then 3.3V in the other so your using both directions for double the peak to peak deflection you would have got driving the piezo from 3.3V and GND.
This is a great idea, I was thinking of adding a buck boost converter to get 3v3 up to 5v or higher to get the volume up since it was very low on the breadboard.
I am not sure how to implement this in code though, is there a library that has this function or would I have to code this? I added a jumper to bypass the second IO just in case I cant get this to work the way you described.
Note that you will want to check what two pins on the ESP32 can output a complementary timer signal.
I am not sure how to check this in the datasheet, I am not sure how I would implement this in the code.
Thanks again Psi, the few minutes you took to respond has saved me $$$ and hours of my time. I really appreciate it.