Slightly off topic, but I assume many people here are using Raspberry Pi's in 12v systems. This new Raspberry Pi Hat is primarily aimed at people who want Raspberry Pis in the cars, but it looks to have some features that would be of interest to this community such as 12v supply with auto shutdown, CAN, I2C and 12v inout mapping to GPIOs.
https://thepihut.com/products/carpihat-car-interface-hat-for-raspberry-pi?variant=41600908460227
Features
- 12V -> 5V buck converter to power the Pi and touchscreen, with fuse and filtering.
- Safe shutdown circuitry to allow the pi to control its own power.
- < 1mA current draw when switched off.
- Dedicated reverse, illumination and aux 12V inputs.
- 2 general purpose 12V inputs. (for a total of 5 12V inputs)
- 2 high current, high side switched 12V outputs (@1A). (great for switching relays, lights ect)
- 1 independent CAN bus port.
- Real-time clock to maintain system time across reboots.
- Broken out I2C bus
- Broken out 1W for temperature sensors etc
- 5V Power Output for displays and other 5V devices
- Optional: protective shroud
All 12V inputs are opto-isolated to ensure the Raspberry Pi is well protected against the typically noisy automotive power environment.