Arduino Forum

Using Arduino => Programming Questions => Topic started by: Onkar_21 on Sep 14, 2019, 03:54 pm

Title: Use of global variables and its effect on encoder reading
Post by: Onkar_21 on Sep 14, 2019, 03:54 pm
Hello,

In my code on Arduino uno, for running wheeled robot, when my global variable usage was 29% motors ran well.
But as soon as my global variable usage got to 52%, motors did not run.

Can someone please help me to know whether global variables has effect on encoder reading.

Thanks in advance.
Title: Re: Use of global variables and its effect on encoder reading
Post by: spycatcher2k on Sep 14, 2019, 04:04 pm
Easy - you have some error in your code! But who knows (Other than the Person sitting at YOUR computer).