I can't load the code because it too big
the problem is that it won't even go the setup part....
this is the setup:
#include <Ethernet.h>
#include <SPI.h>
#include "Wire.h"
#define DS1307_ADDRESS 0x68
byte mac[] = {0x90, 0xA3, 0xDC, 0x0E, 0xD8, 0xE1 }; // MAC address of the device
IPAddress ip(10,0,0,45); // IP address
IPAddress gateway(10,0,0,1); // gateway of device
EthernetServer server(80); //server is using port 80
int EnPIR=3;//auto-manual switch
int ManualGREEN=4;//green go button
int ManualRED=5;//red - don't go button
int PIRdirection=6;//the digital input of the diretion switch
int rightPIR=7; //the digital input of right PIR
int leftPIR=8; //the digital input of left PIR
int MoveLED=9; //digital ourput LED
int Battary_value=1;//analog battery sensor
boolean PIRDirection = false;
int calibrationTime=10;// setup time
int y,x,i,d,m,OC,ML;
unsigned long updateTime;
int t=0;
int monthDay,month,year,hour,minute,second;
int LogMonthDay,LogMonth,LogYear,LogHour,LogMinute,LogSecond=1;
char Day[7][4] = {"SAT","SUN","MON","TUE","WED","THU","FRI"};
int weekDay,tempDay;
void setup ()
{
Serial.begin(9600);
Ethernet.begin(mac, ip);
server.begin();
Wire.begin();
pinMode(EnPIR,INPUT_PULLUP);
pinMode(ManualGREEN,INPUT_PULLUP);
pinMode(ManualRED,INPUT_PULLUP);
pinMode(PIRdirection,INPUT_PULLUP);
pinMode(rightPIR,INPUT);
pinMode(leftPIR,INPUT);
pinMode(MoveLED,OUTPUT);
delay(1000);
Serial.print("Please Wait - calibrating sensor ");
digitalWrite(MoveLED,HIGH);
for(int i = 0; i < calibrationTime; i++)
{
Serial.print("*");
delay(1000);
}
Serial.println(" done");
Serial.println("SENSOR IS NOW ACTIE");
Serial.print("Sensor IP is : ");
//Serial.println(ip);
//delay(50);
digitalWrite(MoveLED,LOW);
}//end of setup
I'm using Arduino Ethernet