Logic based transistor use with Arduino - Common ground