While I'm good with the code, I'm a novice with the circuits so I thought I'd ask before I build and burn something up.
I have a motor driver board with a L298N. It's set up for a stepper, but I'm driving a DC motor. So instead of just direction and enable, you have enable and two inputs for direction. I want to save to two pins since one of those will always be the opposite of the other in my case. I have some of these n-channel MOSFETs. I want to use one to invert the signal in a configuration like this.
Driver Input 1 (not inverted) | | Arduino Pin----|--/\/R1\/------- Gate
+5V ----/\/\R2/\/---| --------- Drain | | Driver Input 2 (Inverted)
I need to know if this transistor is at all appropriate ( I think I bought them for turning on LEDs) or if I need something different and what sort of values would be appropriate for R1 and R2.