Yep, diode is the easiest way.

12V Source.jpg

The INTERNET, the MISinformation superhighway