I was wondering if somebody could take a crack on why I am getting this bug. I am doing an inverted pendulum for my senior level design, and we decided to make it somewhat harder (yeah, we're not the brightest EEs), by making it an arm-driven one rather than using a cart. We're using a Vexta stepper motor, which can provide a lot of torque, the only problem is that there isn't many IC drivers that supply enough current. So we had to resort to creating our own by building Dual H-bridges out of N-channel and P-channel MOSFETs. When we hook the motor to the driver, we get a messy square wave coming out of 3 of the MOSFET pairs (which is normal because of the motor's inductance), but for some odd reason, a nice clean square wave comes out of 1 of the pairs. We changed the MOSFETs, diodes, checked the Source to Drain resistance of each MOSFET, and no matter what, 1 pair always gives a clean square wave. Any ideas here?