NPN BJT Vbe & Vce Using one ground?
First you need proper resistor at the base and collector to limit current flowing through the device are else you will make permanent damage to the device

I am assuming the circuit you had put in is for functional purpose

From the circuit, you are using the NPN transistor as switch, to make it ON you need to forward bias the Base Emitter junction and to OFF you need to bring down the voltage below the base emitter junction voltage, now check if the two things are possible with your setup

To make the transistor OFF you need to apply a voltage -12v - 0.7 (assuming nominal base emitter voltage 0.7V) you need to apply minimum -12.7 V so it is not possible with your MCU, so with your circuit the switch is always on