I have had very good success using the buck/boost, step up/down, DC-DC convertors from the likes of Aliexpress and Bangood etc.
They have a potentiometer to set the output voltage, eg 12.0v.
This voltage will be constant even when the battery voltage swings from about 10v during engine cranking...