Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [real-time]

The actual time during which a process or event occurs: "information updated in real time". This topic covers how to control the Raspberry Pi in real time, how to use software in real time, and any other use of the Raspberry Pi in which real time control is needed. Not to be confused with real-time clock.

0
votes
0answers
16 views

Configuring Raspberry Pi Face Detection and Espeak

I am working with a Raspberry Pi Face Detection program and Espeak to tell that Human Face Detected. I'm using Pi Camera for face detection. The face detection program works fine. But the problem is ...
-1
votes
0answers
45 views

live stream and image processing simultaneously possible?

I am using RPi cam web interface to stream my camera to an android (on mobile browser). But I have project which requires my Pi 3 to do a bit of light image processing. How can i achieve this i.e how ...
0
votes
1answer
60 views

How to know the buffer size of a Raspberry Pi 2 b?

I would like to know the size of my I/O buffer (defined as the queue where the packets arrive, e.g. from internet, and wait to be proccessed). How could I find this size? And if the buffer is too ...
-1
votes
0answers
20 views

Why does disk write time freeze and some programs won't run while other programs run and have the correct time?

On occasion, for a duration of about an hour, some programs will not start and disk write time freezes. During that time, cron does not start jobs and I cannot run some commands, such as top, from the ...
1
vote
0answers
29 views

Is perfectly uninterrupted alsa sound over USB possible?

I am playing a sine wave from a Rpi3 via pure userspace ALSA to the hw device of a USB sound card (using the official PCM example, no sound servers installed). But the wave never stays perfect, after ...
0
votes
0answers
55 views

RTC DS3231 gets old shutdown time on boot

I have a DS3231 RTC chip on my Raspberry Pi 3 B+, running Raspbian Stretch kernel 4.14.69-v7+. I have enabled I2C, and added dtoverlay=i2c-rtc,ds3231 to /boot/config.txt. I could read the original ...
1
vote
0answers
26 views

Script won't continue after command line

I am very new to Pi, Python, and this kind of programming, as a whole. I am building a data logger. Once completed, it will be deployed in areas with no internet connectivity. So I chose to create ...
2
votes
1answer
45 views

Execution interruption while holding a kernel spin lock

I want to toggle an GPIO pin with a certain accuracy. (i.e. latency about 1 us). I have a Raspberry Pi 3 model. Therefore I wrote a simple test kernel module. The toggling loop does basically this: ...
1
vote
0answers
99 views

Raspberry Pi3 should I use multi-threading, interrupts or callbacks?

Project Description I am interfacing industrial PLC's with the Raspberry Pi 3 in order to read the efficiency of the given line, and display live results. In essence I need to do the following things:...
1
vote
0answers
63 views

Display Real-time processed images in Raspberry Pi

I am working on real time image processing in raspberry Pi. Goal is to fetch and process 64x64 frame with 60 fps. I am using numpy to process these frames. And i want to display these processed images ...
1
vote
2answers
178 views

How to synchronize images from two raspberry pis

I have 2 Pi Zero Ws (wifi), each with a Pi camera connected to them. Both Pis/cams are running on battery power and deployed in the desert. There is no network or internet connection. The cams are ...
2
votes
1answer
418 views

HIgh resolution timer?

Is any high resolution timer available on a Raspberry Pi that can be used by an application (for micro-benchmarking, etc.) without having to write a kernel driver? The resolution I'm looking for is ...
1
vote
2answers
1k views

Continuesly monitor GPIO input change/events in Bash

On a Raspberry Pi you can set the GPIO pins as an output or an input. An output or an input can be either high or low. For example, to monitor the input state (high or low) of GPIO pin 26 you can ...
0
votes
0answers
108 views

RP3 and Video Camera - how to capture real time?

I'm working on a project involving Raspberry Pi and a small video camera. I got the camera to work but I don't know how to make it capture real time. I'm trying to make a real-time image classifier, ...
-1
votes
1answer
354 views

is rpi suitable for hard real time ECG signal processing? [closed]

I am working on moniroting system for medicacl care and I can't deside what to use , having that the processing includes denoising , segmentation feature extraction and machine learning another ...
1
vote
1answer
861 views

Trying to apply real time patch to kernel 4.9.76

Raspberry Pi 3 model B OS: Raspbian 9.3 stretch Kernel: armv7l Linux 4.9.76-v7+ CPU: ARMv7 rev 4 (v7l) @ 1.2GHz RAM: 1GB I'm trying to apply the real-time patch (it's highly desirable for my ...
3
votes
2answers
119 views

CPU speed changes by a multiply of 2 for short durations

I'm using a raspberry pi and I need really fast performance from my CPU for a certain process. To achieve that, I added isolcpus=3 to my kernel boot parameters, to isolate the core for this process ...
1
vote
0answers
141 views

Using Hardware pwm as event timer?

in modern PC based Linux Machines it is possible to use hpet and realtime processes to get a reasonable good realtime performance (+-10us response time) While Raspberry Pi Hardware does not have a ...
1
vote
0answers
2k views

How to achieve better Jitter for LinuxCNC on Raspberry PI?

Question Is it possible to achieve reasonable real-time with RaspberryPi (ideally jitter < 50us, or in the worse case 150us ) If yes, how to achieve those values, targeting LinuxCNC? After all ...
2
votes
1answer
2k views

Saving graphs using Matplotlib is very slow

I am trying to write a python Code snippet which creates 24 figures and 9 subplot and saves them in the directory. Its taking around 197 sec to create all the 24 figures and save them. This is ...
1
vote
1answer
300 views

Fastest wired data transfer protocol between RPi and Android Device

I'm looking to download images that i'm capturing on RPi to my Android Device using USB, or some wired interface that I don't know about. I'm trying to avoid using wifi, ethernet, or bluetooth. I've ...
1
vote
0answers
724 views

raspi+ADC realtime plotting

I recently succeeded in receiving ADC Data from ADS7851 through SPI communication. Now I'm working on plotting those voltage data and also fft of them. I've done some research, and found out that ...
0
votes
1answer
1k views

code to read live mic input audio frequency

My project is to create a kit to play recorded (music chords) audio file automatically changed with respect to frequency of live microphone input with a certain period.This will help the solo singers ...
1
vote
0answers
88 views

Setting maximum process pause time - need to read spi data with less time gaps

I am using a raspberry pi to grab data through a SPI port. Attached to the SPI port is a PIC, programmed so that it samples on an A/D at 12.8kHz, and stores the samples in a 256 long buffer. (to cope ...
0
votes
1answer
398 views

Stable Linux kernel version with RTPreempt Patch for Raspberry Pi3 ModelB

I am installing a real time preempt kernel for my Raspberry Pi3 ModelB. I installed the linux kernel version 4.4.50 and I patched this kernel with RT_Preempt patch-4.4.50-rt63. However, every time I ...
3
votes
1answer
4k views

Perform a task upon a voice command

I would like to do on-board speech processing (Matching of a pre-recorded voice sample [1/2 secs] with a continuously playing sound) with a Pi 3. The Pi should give a real-time response to the ...
0
votes
0answers
82 views

Build a Embedded System using Raspberry Pi 2 model B and Tontec 3.5 inch touch screen

I am building an embedded system using Raspberry Pi 2 Model B and Tontec 3.5 inch touch screen. I have found a link that guides us build a real time embedded system for Raspberry Pi 2 Model B. http:...
1
vote
2answers
3k views

PyAudio recording from multiple microphones

I am trying to detect peaks from two microphones at the same time with python and pyaudio and calculate the time difference between them. I'm using two Konig usb microphones (http://www....
7
votes
1answer
1k views

How to precisely capture the arrival time of an input edge?

On the Arduino / ATmega328p, the 16-bit Timer/PWM modules have a input capture unit that allows the precise time of arrival for an input edge to be recorded even if the processor is busy when the ...
0
votes
1answer
512 views

Raspberry Pi Kernel Compilation Problem

I am trying to cross compile a raspberry Pi kernel with RT Preempt patch. I am following this tutorial. I have downloaded the latest kernel sources rpi-4.9.13 and the corresponding rt patch patch-4.9....
-1
votes
2answers
1k views

What real-time operating systems are supported by the Raspberry pi 3 model B?

I have been looking around for multiple RTOS for the rpi3 but unfurtunately many of them are not (yet?) supported? Could anybody tell me which ones can be used on the rpi3 now?
6
votes
1answer
5k views

How to disable or shutdown NTP daemon?

I am running PI 3 as a standalone system. Therefore, it won't have internet connection and pi's date and time is manually set and Real Time Clock chip is used to keep the pi's date/time current. It ...
0
votes
2answers
85 views

Handling sensor data and reacting on ms timescales

I have two related questions. I'm happy to get advice or links to recommended reading as well. How many times per second can a Pi pull data over SPI Over SPI what sort of timescale can I query ...
1
vote
2answers
220 views

How do you force wiringPI library to use local time instead of UTC time?

I am running Pi 3 along with Real-Time Clock chip ds1302 and using wiringPI library to read and set date and time to and from ds1302 chip. After I set my Pi's system date and time to local date and ...
2
votes
1answer
102 views

What would cause pi's system date and time to drift while plugged into a power source and not on the Internet?

I have two Pi 3 running at the same time with my program being executed while both are plugged into a power source with current date and time and not connected to the Internet. Couple of days later I ...
0
votes
1answer
1k views

Increase webcam fps = Raspberry Pi processing speed increase?

I'm using a Raspberry Pi B+ board for color processing in real time and the current processing speed is extremely slow. While I don't need to show the processed image to a display, the speed of ...
3
votes
0answers
358 views

Camera OV5647 + 3.5 LCD as a real time view

I have a OV5647 camera and 3.5 GPIO LCD. I would like to connect both of them to have a real time view in my Raspberry Pi 3. I would like to also set by programming to turn on the camera after some ...
2
votes
2answers
3k views

Possible to display current time in pi camera recording?

Well I guess the title sums it up pretty good. I know I can do annotations but they're just strings which can't be altered or am I wrong? Is it possible to always have the time in the video recording? ...
0
votes
1answer
729 views

Real time adc for RPI

I'm thinking about a project with RPI. I need 4 or 6 analog inputs with sample rate between 500 and 1000 samples per second and 2 or 4 digital output as response of processing the input signals. ...
-1
votes
1answer
59 views

Why crontab choose to execute one of the command over other?

So, basically I am using wiringPI library and its sample code for ds1302 chip. It works great by the way - writing and reading to and from ds1302 chip is a breeze. I can initiate PI's date and time ...
1
vote
1answer
182 views

Why is DS1302 chip time be offset by 4 hours even though the system time is accurate for the Time Zone?

Finally, I am able to write to and read from DS1302 chip through Raspberry PI 2 Model B, but now I noticed that time is not accurate for my timezone. In fact, it is offset by 4 hours in 24 hour format....
0
votes
1answer
274 views

2D - 3D video conversion in Raspberry pi

We have a system that we can not change. Systems output is 2D video in DisplayPort format. Video is in 1080 p resolution and 120 Hz. We need to convert this 2D video to 3D in realtime. We will be able ...
11
votes
4answers
29k views

Does the Raspberry Pi 3 support RTOS?

I am new to the RTOS world. I am planning to use some RTOS on a Raspberry Pi 3 (may be FreeRTOS). Can anyone suggest which RTOS would be good for the beginners? Since they have not released a ...
0
votes
1answer
95 views

Update time again with terminal or Bash after bootup

I use my Pi as part of a home automation system, logging and carrying out events according to time. It is connected to a working internet connection, but let's say the power temporarily goes out and ...
4
votes
1answer
2k views

Using GPU to decode QRCODE

I'm using a raspberry pi compute module and my question is : Can we use the GPU to decode QRCODE ? I am using my own function inspired by the one from QRTOOLS and by doing so the timing is divided by ...
5
votes
2answers
1k views

RT patch is freezing

I have patched PREEMPT-RT for Raspbian Linux kernel. It works fine for normal operations (web browsing or short time programs) the following is the output of uname -a of my Rapsberry Pi 2 after ...
5
votes
2answers
378 views

Triggering two USB cameras connected with single Pi at the same time

Is it possible to trigger two Cameras connected by USB to a single RPi at the same time with 1 ms latency?
1
vote
0answers
136 views

Raspberry pi execution time calculated is different on the desktop terminal and command line?

Boot to desktop and boot to command line can be chosen using raspi-config. I decided to do a test to see whether my code will execute faster using the command line interface. How come the raspberry ...
1
vote
0answers
32 views

How to make servos not jitter without extra hardware [duplicate]

To control a servo, I'm using this. To summarize it: you use code like this: while True: GPIO.output(pin, GPIO.HIGH) time.sleep(0.0015) GPIO.output(pin, GPIO.LOW) time.sleep(0.0185) ...
0
votes
2answers
453 views

Can raspberry pi 2 take more than one input

This is basically a followup question to my previous questions (you don't need to read them to answer it). Primary question is, can a Raspberry Pi 2 take more than one inputs from different circuits ...