Provide 8-bit PWM output with the analogWrite() function. The int “speeding(letter)” pins need to be connected to a PWM pin on the Arduino if you want to enable speed control through PWM.Īs a quick cheat I have included a list of PWM pins for the main two types of Arduino’s I use: This makes the L298N Dual H-Bridge Motor Controller very versatile if your project is using a lot of Arduino pins. The “int dir(number)Pin(letter)”‘ pins can be connected to any available digital pin you have available, as long as you declare the correct pin in your sketch. Since there isn’t a library for the L298N Dual H-Bridge Motor Controller you just have to declare which pins the controller is hooked to. The Arduino code sketch is pretty straightforward.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |