I'm using wemos powered from li-ion 18650 with enabled Wi-Fi and photocell connected to A0 (10K voltage divider).
Due to current spikes from ESP, voltage drops frequently about 500mV and photocell becomes unusable.
I've tried electrolytic caps (470uF) as close to ESP as possible but it hasn't helped.
Thank you for sharing your ideas
This is my connection