ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
126 stars 69 forks source link

External trigger example gives error when trigger pin is pulled high #67

Open ehong-tl opened 5 years ago

ehong-tl commented 5 years ago

Hi,

I'm using MT9N001 camera with USB2 shield board.

I've trouble capturing image using external trigger image capture example in new SDK.

I keep getting alternating error as follows each time when I pulled the trigger pin high.

_Take picture. ('Take picture fail, ret_val = ', 65318) Take picture. ('Take picture fail, ret_val = ', 65316) Take picture. ('Take picture fail, ret_val = ', 65318) Take picture. ('Take picture fail, ret_val = ', 65316) Take picture. ('Take picture fail, ret_val = ', 65318) Take picture. ('Take picture fail, retval = ', 65316)

May I know what's going on here, and how to fix it?

ArduCAM commented 5 years ago

Would you please let me know your hardware setup? How do you send the trigger signals? Please send to support@arducam.com

ehong-tl commented 5 years ago

Hi,

I didn't change much in terms of hardware setup. I send the trigger signal by just connecting Vcc pin to Trigger pin with jumper wire to pull it high. img_20181010_134753

ArduCAM commented 5 years ago

It is safe to trigger this signal with pulse from Arduino like GPIO, the trigger input default should be logic low, and pull logic high for 10uS or so to trigger the capture.

ehong-tl commented 5 years ago

Hi, I've tried to send 10us pulse using Arduino to the camera, but there is no response, it 'doesn't even print out Take picture. line.

ArduCAM commented 5 years ago

I realized that your camera only has 8MByte frame buffer, it can't hold 9MP image sensor. We will build 32MByte frame buffer version later.

ehong-tl commented 5 years ago

So the current USB2 shield with 8 MB buffer does not support external trigger image capture?

From: Lee notifications@github.com Sent: Thursday, October 11, 2018 3:08 PM To: ArduCAM/ArduCAM_USB_Camera_Shield ArduCAM_USB_Camera_Shield@noreply.github.com Cc: Ong Eng Hui ehong@ntu.edu.sg; Author author@noreply.github.com Subject: Re: [ArduCAM/ArduCAM_USB_Camera_Shield] External trigger example gives error when trigger pin is pulled high (#67)

I realized that your camera only has 8MByte frame buffer, it can't hold 9MP image sensor. We will build 32MByte frame buffer version later.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/issues/67#issuecomment-428845164, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbEKsuKd8MCzHuU8-ae-fKAMSgWFM-vMks5uju5YgaJpZM4XUbHZ.


CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents. Towards a sustainable earth: Print only when necessary. Thank you.

ArduCAM commented 5 years ago

No, I think it supports external trigger, but the MT9N001 9MP camera has exceeded the maximum frame buffer of current camera shield.

habib-Boloorchi commented 5 years ago

Hey @ehong-tl would you please take a picture of how you connected your trigger to gpio? I apreciate it if you tell me whether you connected any wire to shield.

ehong-tl commented 5 years ago

Hi @habib-Boloorchi ,

I connect one of Arduino's digital pin to Trigger pin on the camera board (not the USB shield) and Arduino's ground pin to camera board's ground pin.