Arduino Camera Shield acts as Arduino Shield via 1Sheeld

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

Buy 1Sheeld

Allows Arduino board to capture certain moments using your smartphone’s camera.

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.

Note

For Android M(6) or greater, there are permissions to be granted before using the Data Logger 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(LITERAL);

 

RETURNS
None.

 

PARAMETERS
Takes a byte value holding one of the given literals above ON/OFF/AUTO.

 

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(LITERAL);

 

RETURNS
None.

 

PARAMETERS
Takes a byte value holding one of the given literals above ON/OFF/AUTO.

 

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