Go to advanced search

by PCHSwS
Sun Apr 28, 2019 2:58 pm
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 62
Views: 13667

Re: Hardware camera sync pulses

The one major proviso is that the GPIO selected MUST be one of the directly connected GPIOs on the SoC, and that is not the default situation on a Pi3 (it connects to an I2C GPIO expander). All is not lost though, as on any Pi you can reconfigure the GPIO used for the camera LED via the dt-blob.bin...
by PCHSwS
Sat Apr 27, 2019 1:19 pm
Forum: Camera board
Topic: Modify raspivid to deliver sync on GPIO
Replies: 5
Views: 954

Re: Modify raspivid to deliver sync on GPIO

Absolutely! Thanks so much for pointing this out, I have completely missed that announcement and somehow this solution did not show up in the Google search results...

Thread can be closed :)
by PCHSwS
Sat Apr 27, 2019 9:39 am
Forum: Camera board
Topic: Modify raspivid to deliver sync on GPIO
Replies: 5
Views: 954

Re: Modify raspivid to deliver sync on GPIO

There is a relatively easy place to tap into the interrupt handler on the GPU and it may be possible to drive a GPIO from it. It's still not 100% precise as the interrupt still has to be scheduled - I know we have hit issues where the frame end and frame start interrupts end up being handled at the...
by PCHSwS
Sun Nov 09, 2014 6:25 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Yeah, I did, as the first time I called the GPIO setting at an earlier point of the code which was executed it worked, and if I set the pin high manually in between it was set LOW again at that point. I migrated the blink example of the library into the code and only modified the part where the GPIO...
by PCHSwS
Sun Nov 09, 2014 1:39 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Debugging sounds great, but I still might need a little hint: I find masses of instructions of how to compile one little program for usage with GDB - but I never find how to do so with such a whole project like userland...
by PCHSwS
Tue Nov 04, 2014 5:33 pm
Forum: Camera board
Topic: Modify raspivid to deliver sync on GPIO
Replies: 5
Views: 954

Modify raspivid to deliver sync on GPIO

Hey there, I'm trying to start a new thread here as in the first one, in the C-Section, apparently noone could or wanted to help me. Maybe someone here has enough knowledge to help me out. My intention is to modify the raspivid-tool a little: I want it to deliver a sync-signal on the GPIOs, which in...
by PCHSwS
Tue Nov 04, 2014 5:24 pm
Forum: C/C++
Topic: Integrade the bcm 2835 lib in another program
Replies: 4
Views: 1177

Re: Integrade the bcm 2835 lib in another program

Thank you for your tips, although I did not understand the documentation of make I managed to find out where to put it in the make instructions by browsing the files... :D
by PCHSwS
Sun Nov 02, 2014 9:23 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Hmm, nobody to help me there? :(
by PCHSwS
Fri Oct 24, 2014 10:29 am
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Maybe I put that a bit complicated yesterday. The main Problem is that if(buffer->flags & MMAL_BUFFER_HEADER_FLAG_FRAME_END) frame_start = -1; seems to be never reached, as neither my added GPIO-High-call is executed nor a printf displays any output at any time. But this is the most important part, ...
by PCHSwS
Thu Oct 23, 2014 8:28 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Ok, I got most of it to work now. The bcm lib is integrated an it can be used in the RaspiVid tool! Anyhow some problems remain, as part of the method where I wanted to integrate the sync seem not to work as expected :( I have integrated the switching in the following parts: (beginning in line https...
by PCHSwS
Thu Oct 23, 2014 3:45 pm
Forum: C/C++
Topic: Integrade the bcm 2835 lib in another program
Replies: 4
Views: 1177

Re: Integrade the bcm 2835 lib in another program

Ok, good to know. How do I do that when I only modify the userland?I can't simply compile it with gcc using -l bcm2835 :D (I don't know much about that complex programs, forgive my naivety...

Where do I have to integrate the linking and how?

Thank you for your answer and patience :)
by PCHSwS
Thu Oct 23, 2014 3:37 pm
Forum: C/C++
Topic: Integrade the bcm 2835 lib in another program
Replies: 4
Views: 1177

Integrade the bcm 2835 lib in another program

Hey guys, I want to modify the RaspiVid tool to give out a sync signal over the gpios. I planned to use this C lib: http://www.airspayce.com/mikem/bcm2835/index.html but my knowledge of C is apparently to basic(^^) to get this working. I installed the bcm library, git cloned the userland, modified t...
by PCHSwS
Mon Oct 20, 2014 8:47 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Aaaaargh! I copy and pasted some code in windows and the compiler now reads every blank as a black square and returns errors -.- I will have to rewrite it in linux :/
by PCHSwS
Mon Oct 20, 2014 7:34 pm
Forum: C/C++
Topic: download and build raspicam on my own
Replies: 8
Views: 2542

Re: download and build raspicam on my own

Go here https://github.com/raspberrypi/userland On the right hand side of the page is a box with HTTPS clone url writtne above it. CLick on the button to the right to copy the clone command to the clipboard In a terminal in a folder you might use for projects, type git clone then paste the rest of ...
by PCHSwS
Mon Oct 20, 2014 7:30 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Outdated post
by PCHSwS
Mon Oct 20, 2014 6:32 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Ok, if I got that right, the callback static void encoder_buffer_callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) { is entered for very single frame, and right after the line above I can set my GPIO low again. I'll try to implement that, if I should come across any problems I'll come back t...
by PCHSwS
Mon Oct 20, 2014 5:29 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Ok, I think I got it. In https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/raspicam/RaspiVid.c#L959 if(buffer->flags & MMAL_BUFFER_HEADER_FLAG_FRAME_END) frame_start = -1; [...]} I will have to do the work, I assume - So I could probably now simply set the GPIO to high...
by PCHSwS
Sun Oct 19, 2014 9:36 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

As I don't really get much of the code, I think I might need a bit more of advice. I think you are referring to the funktion https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/raspicam/RaspiVid.c#L899 - but my knowledge in C is way to little to understand what the code ...
by PCHSwS
Sun Oct 19, 2014 4:56 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Sorry for the late reply, chrome make trouble refreshing sites. I have now turned email notification on... A preview would be nice though, because I will have to adjust the image, which also answers your other question: I'm going to digitize 8mm-film with framewise synchronization, which is achieved...
by PCHSwS
Sat Oct 18, 2014 3:05 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Thank you very much for your answer. Currently I'm planning to use the raspivid fram the paspicam-tool as I stated in the initial post. (http://www.raspberrypi.org/documentation/usage/camera/raspicam/raspivid.md) (https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/raspi...
by PCHSwS
Sat Oct 18, 2014 2:40 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Re: Modify raspivid to deliver sync on GPIO

Hey guys, this just came up up again, so I wanted to ask wether there's really noone to help me there? :(

Best regards,
Yannick
by PCHSwS
Sat Mar 15, 2014 4:44 pm
Forum: C/C++
Topic: download and build raspicam on my own
Replies: 8
Views: 2542

Re: download and build raspicam on my own

Ok, so this means I cannot simply download just the raspicam code, without all the other code in the userland repository?

(I have no experience in using GitHub, so I have no clue how programs are organized and which possibilities to download and buils are available... ;) )
by PCHSwS
Fri Mar 14, 2014 7:41 pm
Forum: C/C++
Topic: download and build raspicam on my own
Replies: 8
Views: 2542

download and build raspicam on my own

Hi :) I'd like to download, modify, and then build the RaspiCam programs on my own. But I neither know how to download them efficiently from GitHub, nor which files I need, nor how I then build them. EDIT: I'm referring to https://github.com/raspberrypi/userland/tree/master/host_applications/linux/a...
by PCHSwS
Fri Mar 14, 2014 3:39 pm
Forum: C/C++
Topic: Modify raspivid to deliver sync on GPIO
Replies: 19
Views: 2739

Modify raspivid to deliver sync on GPIO

Hey guys :) First of all, excuse any writing or grammar mistakes, I'm german ;) Ok, so I'd like to modify the raspivid-tool a little: I want it to deliver a sync-signal on the GPIOs, which indicates every shot frame of the vid I'm taking. I'm thinking of an alternating signal, shooting at 25 fps, wi...

Go to advanced search