How can you turn 4v dc into 12v dc

Are you referring to an I/O pin set to OUTPUT, or the "5V" pin.

Neither should be used to "power" anything. Why do you "need" 12V?