HELP!!!

I have a problem using the ttl camera with Arduino, I keep getting the following error when trying to upload the code.

In file included from C:\Users\aa6888th\Desktop\Arduino\arduino-camera-wifi-master\camera_test\camera_test.ino:16:0:

\EmpFS2\Home\aa6888th\Arduino\libraries\Adafruit-VC0706-Serial-Camera-Library-master/Adafruit_VC0706.h:66:7: error: redefinition of ‘class Adafruit_VC0706’

class Adafruit_VC0706 {

^

In file included from C:\Users\aa6888th\Desktop\Arduino\arduino-camera-wifi-master\camera_test\camera_test.ino:7:0:

\EmpFS2\Home\aa6888th\Arduino\libraries\Adafruit-VC0706-Serial-Camera-Library-master/Adafruit_VC0706.h:66:7: error: previous definition of ‘class Adafruit_VC0706’

class Adafruit_VC0706 {

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////

Below is my Code

#include <Adafruit_CC3000.h>
#include <Adafruit_CC3000_Server.h>
#include <ccspi.h>

#include <RTClib.h>

#include <Adafruit_VC0706.h>

/***************************************************
This is a sketch to test the camera module

Written by Marco Schwartz for Open Home Automation.
****************************************************/

// Include camera libraries
#include <Adafruit_VC0706.h>
#include <SoftwareSerial.h>

// Software serial & camera instance
SoftwareSerial cameraconnection = SoftwareSerial(A0, A1);
Adafruit_VC0706 cam = Adafruit_VC0706(&cameraconnection);

void setup() {

Serial.begin(115200);
Serial.println(“Camera test”);

// Try to locate the camera
if (cam.begin()) {
Serial.println(“Camera found:”);
} else {
Serial.println(“Camera not found !”);
return;
}

// Set picture size
cam.setImageSize(VC0706_640x480);

// Wait 3 seconds before taking a picture
Serial.println(“Picture in 3 seconds …”);
delay(3000);

if (! cam.takePicture())
Serial.println(“Failed to snap!”);
else
Serial.println(“Picture taken!”);
}

void loop() {
}

////////////////////////////////////////////////////////////////////////////////////////////////

This is what I am trying to do.

https://openhomeautomation.net/wireless-camera/

///////////////////////////////////////////////////////////////////////////////////////////////

This is the Camera I am using

https://www.amazon.com/Spinel-Serial-Compatible-Arduino-Solutions/dp/B00UZJABYG/ref=sr_1_6?ie=UTF8&qid=1494894867&sr=8-6&keywords=ttl+camera

///////////////////////////////////////////////////////////////////////////////////////////////

The issue is that you did “#include <Adafruit_VC0706.h>” twice.
This is actually bad code on Adafruit’s part – there is apparently no duplicate checking.

Just remove one and you should be good to go!

P.S. For future posts, put your code in code tags :wink:

"How to use this forum" number 6
6. Make a meaningful subject line
And number 7
7. If you are posting code or error messages, use "code" tags

Go back and read the entire sticky post and try again. :slight_smile: