4

I need to do some operations on Raspberry Pi3 pins in specific time. For example I send some bytes via uart then I need to wait about 5ms and again send next part of bytes, but I noticed that if I do time.sleep(0.005) or for example wiringpi.delay(5) from time to time this sleep/delay has some kind of interruption and it doesn't takes 5ms but for example 10ms. All this is irregular and I doesn't know how to catch this problem. Some ideas how to made that always 5ms ?

KyluAce
  • 933
  • 1
  • 8
  • 25
  • 1
    check [this](https://stackoverflow.com/questions/1133857/how-accurate-is-pythons-time-sleep) out... – coder Sep 15 '17 at 08:50
  • I saw this before – KyluAce Sep 15 '17 at 09:02
  • @coder this questions maybe are similar but in mine, main problem is that sleep/delay are giving me sometimes different time interval. So it works good for most of time and then gives me not 5ms but 10ms. As you see this have nothing to finding out accurating of `time.sleep` because Like I said before my problem is irregular. – KyluAce Sep 15 '17 at 09:34

0 Answers0