Hello, so I'm running 2 DC motors with a L298N controller and several other sensors from a Arduino Mega. All the other sensors run at 115200 baud but the L298N runs at 9600, would it be possible to increase the baud rate of the L298N to 115200 as well without experiencing error? I know I can use the serial ports for the sensors but would preferably run them all off the regular Dig pins. I couldn't find any information about this that's why I'm posting it here, sorry if the answer is obvious or was already answered.
Can you post a link or part number to that L298 that uses serial communication?
And post your code between code tags, like this:
[code]
Your
code
here.
[/code]
An L298N does not use serial communication so it doesn't run at any baud rate (most sensors don't either). I guess you mean you have found some bits of code from somewhere that use Serial, probably for debugging. That can be done at any rate you like and it doesn't affect the working of the H-Bridge at all.
But please show us what sensors and code you're actually talking about.
Steve