Hello all!
New in electronics design, and also this forum. I hope I post in the right section. Short presentation: I'm from France, 38, engineer in IT automotive, embedded SW, had some education in electronics but without any practice in years, I'm mostly newbie.
I though this project would be just plugging modules together and write some code, but it appears that it's a bit more complex than that, so I started with Fritzing and finally went to KiCAD because I did not trust Fritzing to help me enough in creating a PCB.
The project is to pimp a wooden little advent calendar in the form of an house. With audio, lights and detection of when the drawers are opened.
![[SOLVED] Need Review: DIY Calendar House 2443151-0](https://www.eevblog.com/forum/index.php?action=dlattach;topic=445871.0;attach=2443153;image)
There is an ESP32 driving the whole, a PAM8403 mini-module to play sound from SD Card, some I2C IO expanders to fetch all the hall sensors that detect when drawers are pulled (I glued magnets on them), and a 24 channels PWM LED driver with a DC/DC converter (that I don't know yet if I need it) to push a bit the brightness of the 12V LEDs.
![[SOLVED] Need Review: DIY Calendar House 2443155-1](https://www.eevblog.com/forum/index.php?action=dlattach;topic=445871.0;attach=2443157;image)
![[SOLVED] Need Review: DIY Calendar House 2443159-2](https://www.eevblog.com/forum/index.php?action=dlattach;topic=445871.0;attach=2443161;image)
I need a good review of the schematics. I'm not sure at all how I connected the MOSFETs. The first, in the ESP32 block, is to cut out the power for most of all external modules. The second, in the Hall Power Switch block, is to control the power on the hall sensors and io expanders. The reason is that I bought A3144 hall sensors, which means that they draw current when a magnet is close, which means the drawers are pulled in, which means almost always in my case. So I decided to poll them using the ESP32. The routine will be: Close the MOSFET to have power flowing, wait a bit, retrieve the state of all hall sensors and open the MOSFET to cut off power and save battery life. The last MOSFET is used in the KeepAlive block. This is because I use power banks and those may go to sleep when too few current is drawn for some time.So the idea is to drain a bit of current for 20ms every 1 to 5 seconds.
The other big question is the wiring of the I2S bus. The board of the module already includes a capacitor and a 10k resistor in serie on the line. So I finally decided to wire them directly. But
in this blog post from the vendor, they use a 22k resistor in serie in addition and a 4.7k pull-down resistor, and I don't understand why. Besides, I'm afraid this would create a divider bridge that will very much lower the voltage in input of the module and the PAM may not see the signal at all. So... Resistor? Not resistors? I search a bit on the web, and I've never seen such a montage elsewhere, and the line resistors for such circuits are usually anyway much lower. I'm a bit lost...
And then any other review tip, remarks, comments, questions, ... All very welcome.
These are some illustration files, but beware that they are from previous versions, so they're just here to give you an idea, but the schematics are wrong.
![[SOLVED] Need Review: DIY Calendar House 2443163-3](https://www.eevblog.com/forum/index.php?action=dlattach;topic=445871.0;attach=2443165;image)
![[SOLVED] Need Review: DIY Calendar House 2443167-4](https://www.eevblog.com/forum/index.php?action=dlattach;topic=445871.0;attach=2443169;image)
Thank you very much!
Tehoor
PS: I posted on AAC too, I hope you don't mind...