Using a L298N Chip to drive stepper motor with Psoc 5LP | Cypress Semiconductor
Using a L298N Chip to drive stepper motor with Psoc 5LP
I'm currently using a CY8CKIT-059 prototyping kit and I have a L298N Motor control chip with a stepper motor. I will include all the data sheets below.
I have read a couple of resources in regards to using the PSoC 3 to drive a stepper motor and I'm fairly new to using PSoC but I have prior experience in using Ardiuno. I have deconstructed the code that is used the Arduino Stepper Library and modified it to work for PSoC.
So now, My stepper motor is able to continuously spin. I have enabled UART for it to do serial communication and I want to be able to input a command such as "On" and "off" to toggle the stepper motor on and off. I am currently stuck on how I would proceed to modify my code/design schematic to allow for what I want to do. I also understand that the way I've coded it may not be the most efficient way to run the stepper motor, Any improvements suggestions are also welcome.
Any help would be greatly appreciated.
Thanks in advance