<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									L298n pwm - Motors &amp; Control				            </title>
            <link>https://forum.dronebotworkshop.com/motors/l298n-pwm/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 13 Nov 2026 19:39:35 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: L298n pwm</title>
                        <link>https://forum.dronebotworkshop.com/motors/l298n-pwm/#post-5195</link>
                        <pubDate>Sat, 02 Nov 2019 15:51:32 +0000</pubDate>
                        <description><![CDATA[Hi DinoFirst of all welcome to the forum!Is it possible that the pin you are using on your Arduino is not one of the PWM-enabled ones?  I&#039;m asking because your problem sounds like what would...]]></description>
                        <content:encoded><![CDATA[<p>Hi Dino</p><p>First of all welcome to the forum!</p><p>Is it possible that the pin you are using on your Arduino is not one of the PWM-enabled ones?  I'm asking because your problem sounds like what would happen if you did an analogwrite to a non-PWM pin.</p><p>Of the 54 digital I/O pins on the Arduino Mega only 15 of them are capable of PWM.</p><p>And at the risk of sounding blatantly self-promotional I did a video and article about using the L298N with an Arduino, perhaps it will help you.</p><p>https://www.youtube.com/watch?v=dyjo_ggEtVU</p><p>Hope some of this helps, again welcome to the forum!</p><p>?</p><p>Bill</p><p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>DroneBot Workshop</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/l298n-pwm/#post-5195</guid>
                    </item>
				                    <item>
                        <title>L298n pwm</title>
                        <link>https://forum.dronebotworkshop.com/motors/l298n-pwm/#post-5191</link>
                        <pubDate>Sat, 02 Nov 2019 09:55:17 +0000</pubDate>
                        <description><![CDATA[Hi, this is my first post. I&#039;m unable to find an answer to my questions. I&#039;m building a robot base which uses 2x L298n to run 4 DC Gearmotors 12V, connecting to a Arduino Mega. I have encout...]]></description>
                        <content:encoded><![CDATA[<p>Hi, this is my first post. I'm unable to find an answer to my questions. </p><p>I'm building a robot base which uses 2x L298n to run 4 DC Gearmotors 12V, connecting to a Arduino Mega. I have encoutered a repeating problem with the driver. Everything is connected and running. I have used a power supply to test it (up to 31 V and 10 A) the problem i'm having is that no matter how high of voltage i'm using i can't send a command with lower PWM (0-255 enA, enB) signal than 130 to run the motors.</p><p>Example: With the power supply and 255 pwm i can run both of the motors with 3 V, but with the 16 V i'm unable to lower the speed below 130 pwm, which basiclly means that my speeds are fast - very fast which makes no difference to me, i want to have lower speeds as well. </p><p>For the code I'm using the completely basic one with pin Modes, digital Write to HIGH/LOW and analogWrite to set the speed. I don't know much about PWM or L298n and the videos i have watch don't really talk about it, I have L298n from two different suppliers and the same thing happens with both. </p><p>If i were to guess I would say that the problem lies in communication between my MEGA and L298n, maybe the PWM frequency. Should I try with the PWM frequency arduino library or does that have nothing to do with my problem? </p><p>Dino Keran </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>Keran</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/l298n-pwm/#post-5191</guid>
                    </item>
							        </channel>
        </rss>
		