Can I use a solenoid without a transistor. One solenoid pin will be connected to 12V and the other pin to the MCU. When the pin connected to the MCU turns, ground, it will activate the solenoid and when switched to high, there is no path for electricity to move and offs the solenoid. Using a diode.