When I connect the node and try to use it the motor just buzzes and gets very hot. Using the same physical wiring I can create a simple arduino sketch and control the stepper just fine. Has anyone else used this node and could offer me some help.
So you are saying use 2 h-bridge-dc-motor nodes. One would use the pins on the arduino that are connect to IN1 and IN2 from the L298 while the other node would use the pins on the arduino connected to the IN3 and IN4 pins on the L298. Does this sound correct to you?
Hello, found this post after numerous attempts to drive a stepper motor using the L298n module.
Am using the exact pin configuration as that used by the original poster and also added a “continuously-pausable” node in between the button and the h-bridges, as you had advised above but it still wont work.
Could you please create an illustration of the nodes as I have totally been unable to make it work. Will really appreciate your help.
Thanks for the speedy response. My button is actually on D4, I even tried other pins but it just wont work. My goal was to have two buttons to determine the direction of the stepper motor in that button A is to trigger clockwise rotation and button B to reverse the direction at the end of travel. But am completely stuck as I cant make even one button work.
My dilemma is, both h-bridges are pulsed simultaneously which i believe will make both of them fire at the same moment. This will then drive both inputs of the l298 module hence energizing both coils of the stepper motor at the same time making it unable to move in either direction. Is my analysis correct or am totally missing something. I don’t have much experience with stepper motors and i am a newbie to XOD, so the learning curve is somewhat steep at the moment.
My immediate approach was to search the libraries for a node for the L298 module and found this, ironcandleforge/l298n-dual-h-bridge-stepper-motor-driver-module. Tried it with no success. Seems no one else has created a node for stepper motor using the module hence the attempt to use two h-bridges.
The stepper motor am using is bipolar, which means has four wires, two per coil. So that library ought to have worked but unfortunately it doesn’t. I have used gweimer/h-bridge library to drive regular motors successfully but its configuration cant work with bipolar stepper motor, I even tried modifying its patch with no success.