Replies: 10 comments 18 replies
|
This is the result when I connected it like the video link you sent, I did not plug the 2 ENA ENB pins into 5V, then I got the result like this |
|
I did not change the firmware but only changed the config file to match my wiring, and my N20 motor has 1:150 which means 200RPM no load |
sau.khi.n.i.5V.vao.2.chan.en.mp4 |
|
and this is the result after I connected the 2 ENA ENB pins to 5V, as expected when I pressed on the keyboard to accelerate, it was fixed at 5V, it reversed rotation but when I pressed the space button, it was unstable, that is the issue that needs to be discussed, as you can see, after pressing space, it stopped but after a while it continued to rotate and then stopped again. |
|
Hello, it seems there is something wrong with your wiring or L298N.
|
|
I don't recommend changing any GPIO at all, including encoders. ESP32 has
many GPIO limitations, so if you change GPIO, the project can stop working.
https://makerspet.com/blog/esp32-gpio-limitations/
…On Sat, Nov 22, 2025, 9:26 PM hoawglee ***@***.***> wrote:
But in the config file, I did not change the driver pin with esp32, but I
changed the encoder pin. However, as you can see, when you want to stop the
motor, the motor jerks locally, sometimes stopping and sometimes running.
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCJ6V3UZDEAMTT4SIN3LJW336FAO3AVCNFSM6AAAAACM5QLD52VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBVGAZDEOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
A problem with encode can cause instability. |
|
I'm not sure. I don't have enough information.
You can check if it's due to the PID or not - by disabling the PID.
zero out all PID coefficients except the proportional one
Now when you use teleop_keyboard and set linear speed to X, your motor
speed will be proportional to X*K_pid_proportional.
Once PID is disabled, try controlling the robot. Check if your wheel
oscillates or not. If oscillations are gone - try reenabling the PID. If
the oscillations come back - probably it is the PID.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
…On Sun, Dec 14, 2025 at 6:10 PM hoawglee ***@***.***> wrote:
I'm asking if it's due to the PID, because each system requires different
PID settings.
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCJ6V3VQEW3RDQ5OW6JXQVL4BYKCXAVCNFSM6AAAAACM5QLD52VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMRVGUYDKOA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|







Uh oh!
There was an error while loading. Please reload this page.
ch.a.n.i.5V.vao.2.chan.en.mp4
All reactions