Yes, You do the circuit without microcontroller and do the connections as per my previous post. Just connect the 5V power supply at the base of the transistor and sure it will work as per your requirement.
Note:Make sure you are shorting both the grounds. i.e. Short 5V ground and 12V ground together to complete the circuit.