-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with ArduCam_isFrameReady returning 0 on AR0134 #101
Comments
I have same problem i typed
and return
And Nothing happened How can i run the demo using Ar0134? |
Not working too |
@vipergts |
@glddiv I am running the camera on Inspiron 7559. I have tried to run it on LINUX and WINDOWS but both of them did not work for me. I have also tried using the GUI app for windows that you guys have developed and that did not work either. |
@MoBaT |
-> There is no error message just not working device num:1 and my hardware is AR0134 +USB Camera shield (UC391REV.D) and i check AR0134 in windows USB Test and i compare "AR0134_960p.cfg" and "AR0134_960p_Color_yml" And i also try in ROS but not working color mode 2 sometimes i`ve got the message Error capture image, rtn_val = 65318 |
@vipergts You seem to be using the External_trigger_demo or Arducam_Global_Shutter example. The Streaming_demo example does not generate an error without outputting an error message. Try re-plug the hardware and running the Streaming_demo example. |
Have you tried with USBTest.exe ?, at least you can verify that it is not a hardware problem. |
Yes, i tried with USBTest.exe in windows |
I`ve tried
but Only works in 3. USBTest.exe And i want to use it in ROS |
|
Hi, |
@lionfish0 Can you show me your hardware setup? And we also update the config files for the AR0134/AR0135 external trigger, can you try that? |
Hi, thanks. OK: I've tried the new config file AR0135_1280x964_ext_trigger_M.json. Also the trigger pin does seem to make it take photos + it works in the non-trigger version. Edit: Maybe there's a register I can check or something to help start to diagnose this? Edit 2: Just a few more details - I'm driving the trigger from a raspberry pi GPIO pin. *There's a separate board I've made to select which of four flashes are used a system for monitoring the battery voltage and a sensor to check if the flash has fired. |
OK, I've tried reading from 0x303C (which is frame-status, standby-status and framesync), using this line of code in the while loop in the external trigger example: each pair of numbers below is 16bit hex for frame-count, frame-status Does that help? Edit: The 2->0 looks like it's the standby status disappearing presumably as it deals with the new frame. But why isn't this actually working? How do I read the image? Or check it? |
OK - I've just tried something and it might be working, but I don't know for sure & I definitely don't understand why. I added the line: For clarity about the line I added:
|
I forgot to say I'm using a mono AR0135, maybe that's a difference? |
@lionfish0 |
Hi. The line of code is the same as is used in the code I'm using (the ArduCam_Ext_Trigger_Demo.py file). I'm less clear what you mean by "you need to send the trigger signal from the USB Board's Trigger pin". I'm currently sending the trigger signal to the trigger pin on the ArduCam. By "USB board" do you mean the USB shield? (I can't see a trigger pin on there) also I'm not sure what you mean by sending it "from" that board. |
@lionfish0
Is this trigger pin on the camera or on the USB camera shield? |
Ah! I am so sorry! Yeah, I was using the trigger on the camera. I didn't even spot the trigger on the USB camera shield. It works now. Fantastic. It's the UC-391 Rev D. Ugh, sorry - I didn't realise that it wasn't the camera trigger pin - what is that for? Anyway - thanks again so much for your help! |
@lionfish0 |
No worries - It was probably caused by me not looking carefully enough! Thanks for being so responsive and helpful, really appreciate it. |
Do I need to someting ( i.e. a button) to create an exernal trigger? Or the code is itself going to send a rising edge signal ? |
Yes!
You can use software triggering if you want (provided that the "USB camera shield" is in external trigger mode and the camera is not in the external trigger mode because the software trigger does not send a signal to the camera) |
Thanks for the reply. I was able to make software triggering work.
Is the above doable? |
There is a problem here, the software trigger only sends the trigger signal to the "USB camera shield", so SLAVES can't receive any trigger signal. |
I am going to create a pulse signal from arduino to trigger all 3 cameras together. |
SLAVES will not be triggered, only MASTER will be triggered. |
Has this behaviour changed in newer versions? Maybe something else is going on. Is there anything I should be doing to the shield to make this work? |
Hello, I appear to be having an identical problem as lionfish0 commented, any solution? Thank you |
Dear all, |
Hey!
I just recently purchased an AR0134 and am trying to run the test projects on your repo. When I run the example
Arducam_Global_Shutter
usingAR0134_960p_Mono.yml
, I get:But the line
ArduCam_isFrameReady(tempHandle)
returns0
all the time. I used a AC/DC meter to make sure I'm getting power to the board and am successfully getting power.What I have tried doing:
ArduCam_setMode()
toCONTINUOUS_MODE
and that did not work either.USE_SOFT_TRIGGER
turned on and off to no avail.What do you think is the issue of what I cannot get any data from the camera?
Thanks!
The text was updated successfully, but these errors were encountered: