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 ?
High precision sleep/delay in python (without interruption)
625 Views Asked by KyluAce At
0
There are 0 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in TIME
- I need help to understand the time wich my simple ''hello world'' is taking to execute
- What would be the most efficient way to store multiple sets of fixed arrays (std::vector)?
- C++ : Is there an objective universal way to compare the speed of iterative algorithms?
- (React)At rendering, initial value of zustand comesout firstly Please, give me your opinions
- Time not correct in "Device explorer" (device manager ; android studio)
- Countdown to varying payday in Javascript
- Time Limit Exceeded, Leetcode problem, 3Sum, 308 / 313 testcases passed, Why is it slow? Python
- Print time stamp in c
- TIMESTAMP Field - UTC <> Local TimeZone
- How to carry Last 24 hours value in time filter from one dashboard to another dashboard in Splunk
- Is there a way to get daylight savings time info for non local timezones
- Can I print '1' n times without using a loop in C programming?
- Embedded Linux board using a GPIO-PPS (without GPS, etc.) for time conditioning - ppstest can SEE the signal and report, but no time conditioning
- Converting streamlit library time input to milliseconds since epoch
- latest version of redshift with crazy compile times
Related Questions in INTERRUPT
- the end of the I/O operation is notified to the system by an interrupt.how much system time do the mentioned operations occupy?
- Unable to set an interrupt affinity in linux?
- fastLED degrades PWM outputs Arduino
- Difficulty understanding virtual LPIs in GICv3
- IRQ interrupt obtaining abnormal possibilities
- MKL02Z32xxx4 (FRDM-KL02Z Board) Timer overflow interrupt not firing
- Interrupt handling with push buttons in ARMv7
- Ultrasonic range finder HC-SR04 using one timer
- Does the Direct Memory Access (DMA) interfere with the execution of user program execution?
- How to write the external interrupt callback function of Linux kernel v3.10?
- Interaction with a thread from ISR using C++ Standard Library on ESP32
- Global variable value doesn't change in ISR in C
- The module first installed the alarm when it started
- ATTiny1606 Timer TCA0 interrupt not triggering
- RT linux isr routine
Related Questions in GPIO
- Accessing GPIO via MMIO in Android App on Raspberry Pi 4
- Unable to read value from gpio set as input
- Turning on an LED using Assembly on raspbianOS (Raspberry Pi 3 Model B)
- Driving Fintek F75113 GPIO
- IRQ interrupt obtaining abnormal possibilities
- Error compiling dts (Device Tree source) file for dtb
- asyncio only running first gpiozero coroutine
- Rf module getting signals when i use ssh, but not when i send it from the transmitter
- VLC - python and GPIO - random fonction
- Use raspberry pi 4 GPIO with node js
- How to add a button handler to GPIO pin through a push button
- Can't access GPIO on Python from Docker container on Raspberry Pi 5
- Are FPGA GPIOs capable enough to read bits at a high rate (26Mbps)? If not, what is a possible way?
- Terminal errors when running my project code, which uses GPIO
- How to set up GPIO event listeners on a Raspberry Pi using Rust
Related Questions in WIRINGPI
- Why I get Raspberry Pi MCP3008 C++ error?
- wiringpi cross-compiling error undefine reference to `pthread_join@GLIBC_2.34'
- Could not find GPIO edge file on OrangePi Lite
- How to send data via SPI between Raspberry Pi and Arduino
- Control Multiple Stepper Motors with Raspberry Pi 3?
- wiringPiISR function is not working with nanopi neo
- /usr/bin/ld: cannot find -llcd: No such file or directory
- Raspberry pi - reading I2C sensor works, but reading is wrong
- How to export a compiled C++ project as executable for Raspberry Pi 3 (ARM, Raspberry Pi OS 32 bit)
- wiringPi.h library not found, getting a build error
- How to use wiringpi?
- RaspberryPi GPIO assembly program digitalRead returning HIGH without any physical button press
- How do I write a 32-bit ARM ASM program to activate a loop using input from a wiringPi?
- RPi Wiringpi fails to read i2c correctly
- not all PWMs are generated in Pi4 wiringPI language C
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?