Skip to content
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

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

Open
ehong-tl opened this issue Oct 10, 2018 · 9 comments
Open

Comments

@ehong-tl
Copy link
Contributor

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, ret_val = ', 65316)

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

@ArduCAM
Copy link
Owner

ArduCAM commented Oct 10, 2018

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

@ehong-tl
Copy link
Contributor Author

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
Copy link
Owner

ArduCAM commented Oct 10, 2018

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
Copy link
Contributor Author

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
Copy link
Owner

ArduCAM commented Oct 11, 2018

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
Copy link
Contributor Author

ehong-tl commented Oct 11, 2018 via email

@ArduCAM
Copy link
Owner

ArduCAM commented Oct 11, 2018

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

@habib-Boloorchi
Copy link

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants