How to connect bipolar stepper motor to Arduino with L297 and L298N drivers?

You mentioned them getting hot.

Just leaving a remark.