Quantcast
Viewing all articles
Browse latest Browse all 5077

Troubleshooting • Re: Accurate timing detection of transmission completion via serial communication

Hello.
Now I am trying to control a servo motor via UART communication from raspberrypi 4b.
The library I am using is pigpio library in c language.
At this time, I am using a conversion board for UART and rs485, and when the control commands are sent to the servo motors, the timing is
I need to set any En pin to low at the timing when the control command to the servo motor is completed.
The process was interrupted by calculating the data transmission speed, etc.
However, this method did not seem to be able to detect the exact timing, and errors often occurred.
If there was a function like serial.flush() in arduino in the pigpio library, it would solve the problem, but it does not seem to exist.
Is there a better way to do this, please?
The timing is... what?

Statistics: Posted by ame — Mon Dec 18, 2023 8:06 pm



Viewing all articles
Browse latest Browse all 5077

Trending Articles