+91-7834999925       contact@tacthub.in

Arduino UNO based Bluetooth Camera

Introduction to Arduino Bluetooth Camera: Arduino Bluetooth Camera is aimed to use the Camera shield with an ultrasonic to detect whether a stranger has entered our house. Then we capture a photo of him automatically once he gets into the area of the ultrasonic wave by using HC-05 Bluetooth Module.


 

Components Required:-

1: Arduino UNO

It is like a brain of the robot, with the help of this board we can make different DIY projects like electronic, mechanical, automation etc projects.Arduino UNO works on C and C++ language called Arduino IDE. TechnicallyArduino UNO is an open source electronic based hardware and software platform, it is easy to use. ArduinoUNO boards are able to read digital and analogs inputs as well, sensors, a finger on buttons & turn it into an output - activate motors, turning on LEDs and many more.

 

2: HC-05 Bluetooth Module

Bluetooth module is used for short-distance wireless communication, which is divided into the Bluetooth module and Bluetooth voice module according to its application. Bluetooth module is a basic electronic circuit set of chip which is a integrated Bluetooth functions and which can be used in wireless network transmission.

 

3: TFT Shield

TFT Shield is designed for use with Arduino (UNO).TFT Touch Shield is a resistive touch screen, compatible with Arduino/Arduino Mega/SAMD21 etc platforms. It can be used as display device or sketch pad for various DIY projects.

 

4: OV7670 Camera Module

The OV7670 camera module is a low cost 0.3 mega pixel CMOS colour camera module, it can output 640x480 VGA resolution image at 30fps. The OV7670 camera module build in on board regulator only single 3.3V power needed and can be used in Arduino, STM32,Chipkit, ARM, DSP, FPGA etc.

 

5: Circuit diagram & connections

 

Software:

All the sketches are written in the Arduino IDE, therefore at the beginning it is necessary to install the Arduino IDE. After installing the Arduino IDE, you must program the Arduino UNO board.

6: Steps to follow

STEP1:

Connect the USB cable to the Arduino UNO board.

STEP2:

Run the Arduino IDE on the computer.

STEP3:

Select the corresponding port to which the Arduino UNO is connected.


7: Code

#include <YATFT.h>

#include <util/yacam.h>

#include <util/yacodec.h>

#include <util/yasrl.h>

#include "ov7670_regs.h"

JPEG_DECODE  jpeg_decode;

YATFT  tft(0);

INTRFC ifc;

CAM    cam;

CODEC  codec;

SRL    srl;

#define IMG_SizeX    320

#define IMG_SizeY    240

uint8_t   mode = 0;

uint8_t   last_mode = 0;

uint8_t   start_capt = 0;

uint16_t  err;

void setup()

{

   // initialize the serial port

   Serial.begin(115200);

   // initialize the display

   tft.begin();

   tft.SetColor(BRIGHTRED);

   tft.ClearDevice();

}

void loop()

{

   if (Serial.available())

   {

       uint8_t temp = Serial.read();

       switch (temp)

       { case 0x10: // Send single Photo

                mode = 1;

                start_capt = 1;

                if (last_mode != mode && last_mode != 2) {

                    tft.begin();

                    tft.SetRGB();              

                    cam.CamInit(&OV7670_QVGA[0][0]);

                    cam.CamVideoPreview(0, 0, 1, true);

                    codec.JPEGInit();

                    codec.JPEGSetRegs(IMG_SizeX, IMG_SizeY);

                    delay(1000);

                }


Price: 7000 INR

Buy Now