Camera Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Camera Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld

Allows you to take pictures when a certain event happens, use your Arduino board to trigger the camera in your smartphone, you can take photos in the dark as well with the flash light.

Special shields allow your Arduino board to use some capabilities your smartphone can do, like playing music, taking a picture, getting notifications, accessing the clock data and using the touch screen for various functions.
Learn more from the special shields tutorial.

Camera library allows your Arduino board to take pictures from your smartphone’s camera either rear camera or the front camera if exists.
Adding #define CUSTOM_SETTINGS along with #define INCLUDE_CAMERA_SHIELD is a key that will let you unlock the Camera shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.

Notes

There are permissions to be granted by Android M users before they can use the Camera shield please make sure to grant the permissions or else it may affect the application’s performance.”

 

void frontCapture (void)

Takes picture using the front camera.

SYNTAX

Camera.frontCapture( );

RETURNS

None.

PARAMETERS

None.

USAGE

Camera.frontCapture();

 

 

void rearCapture (void)

Takes picture using the back camera.

SYNTAX

Camera.rearCapture( );

RETURNS

None.

PARAMETERS

None.

USAGE

Camera.rearCapture();

 

void setFlash (byte)

Sets the flash ”if exists” of your smartphone while taking the picture.

Literals

OFF

ON 

AUTO

SYNTAX

Camera.setFlash( );

RETURNS

None.

PARAMETERS

byte value = literals wether ON/OFF/AUTO and always written in Uppercase.

USAGE

Camera.setFlash(ON);
or
Camera.setFlash(OFF);
or
Camera.setFlash(AUTO);

 

void setQuality (byte)

Sets the quality of the picture which will differ in some of its preferences like (Resolution-size..etc).

Literals

LOW_QUALITY

MED_QUALITY

HIGH_QUALITY

SYNTAX

Camera.setQuality( );

RETURNS

None.

PARAMETERS

Takes one of the above literals.

USAGE

Camera.setQuality(LOW_QUALITY);
or
Camera.setQuality(MED_QUALITY);
or
Camera.setQuality(HIGH_QUALITY);