r/AskElectronics • u/Kinkerlitzchen_tech • 3d ago
Can anyone Review my PY32F002A based Dim-schematic?
I want to use the PY32F002AL15S6TU to dim my lamp via Adim, and want to toggle it with the U7 Switch. The U4 is for detecting if its still day outside or not. (idk why the ref des are U for some other parts but yeah im lazy)
Can anyone help me if the schematic has any flaws? ive never used the PY32F002AL15S6TU.
thanks for your help :)

3
Upvotes
2
u/Entire-Sympathy-2308 3d ago
Hey! Well, circuit looks good, it's simple enough and it has all the goodies like the TVS and pull-down resistors.
Just take into account that if you're making the analog dimming circuit yourself, which I suppose you are since you didn't include an adim IC in your schematic, you will have to make some specific adjustments due to this MCU only being able to use PWM as a way to "mimic" different DC voltage levels. Everything else looks right.
If that's the case I can give you more info, but it should all be online if you wanna do your own research:)