https://golfcars.yamaha-owners-manua...9626-A2-17.pdf
Check the wiring diagram on page 56. The PTV carts already have a voltage step down included though, so I may have linked the wrong model. If yours is a ptv model, I’d use said wiring diagram to locate your 12v hot wire and just use that to power whatever you have.