this may be overkill for your project, I was paid to design devices for the government, and it was not my money I was spending:
https://www.ebay.com/itm/284140172657
https://www.ebay.com/itm/284029474871
this will give you regulated +12, +5V, +3.3 V, and one variable voltage of your choice, with enough current for any realistic Arduino or ESP32 project.
Solar panel >> MPPT >> BMS / battery holder >> Switching PS >> 1na219s, one per voltage