Skip to content

Commit

Permalink
Arduino finish
Browse files Browse the repository at this point in the history
  • Loading branch information
monibu1548 committed Sep 11, 2015
1 parent 810793c commit f070aeb
Show file tree
Hide file tree
Showing 88 changed files with 65 additions and 512 deletions.
Binary file added ArduinoActuator/._DHTlib
Binary file not shown.
27 changes: 24 additions & 3 deletions ArduinoActuator/ArduinoActuator.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// Pin 8 -> Light
// Pin 9 -> Projector ( Servo ) PWM


// Sensor Collect
// Pin 2 -> DHT11
// Pin 4 -> Motion
Expand All @@ -41,6 +40,11 @@ int lightPin = 8;
int airconPin = 12;
int projPin = 9;

// state
#define PROJON 1
#define PROJOFF 0
int projState;

int controlList[3] = {lightPin, airconPin, projPin};


Expand All @@ -58,6 +62,7 @@ void setup(){
Serial.begin(9600);
projServo.attach(projPin);
projServo.write(0);
projState = PROJOFF;
serialString = "";

pinMode(MotionPin, INPUT); // declare sensor as input
Expand Down Expand Up @@ -167,7 +172,7 @@ void loop(){

}

delay(1500);
delay(1000);
}

void OnLight(){
Expand All @@ -187,22 +192,38 @@ void OffAircon(){
digitalWrite(airconPin, LOW);
}
void OnProjector(){

// Check change state
if(projState == PROJON){
return;
}

// Control Servomoter
int pos;
for(pos = 0; pos <= 180; pos += 1) // goes from 0 degrees to 180 degrees
{ // in steps of 1 degree
projServo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}

projState = PROJON;
}
void OffProjector(){

// Check change state
if(projState == PROJOFF){
return;
}

int pos;
for(pos = 180; pos>=0; pos-=1) // goes from 180 degrees to 0 degrees
{
projServo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}

// Control Servomoter

projState = PROJOFF;
}

Binary file modified ArduinoActuator/DHTlib/._dht.cpp
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/._dht.h
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/._examples
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/._readme.txt
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht11_test
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht21_test
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht22_test
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht33_test
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht44_test
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht_test1
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/._dht_tuning
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht11_test/._dht11_test.ino
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht21_test/._dht21_test.ino
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht22_test/._dht22_test.ino
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht33_test/._dht33_test.ino
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht44_test/._dht44_test.ino
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht_test1/._dht_test1.ino
Binary file not shown.
Binary file modified ArduinoActuator/DHTlib/examples/dht_tuning/._dht_tuning.ino
Binary file not shown.
Binary file added RaspO2Ogateway/._.idea
Binary file not shown.
Binary file added RaspO2Ogateway/._RaspO2Ogateway.iml
Binary file not shown.
Binary file added RaspO2Ogateway/._lib
Binary file not shown.
Binary file added RaspO2Ogateway/._out
Binary file not shown.
Binary file added RaspO2Ogateway/._src
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._.name
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._compiler.xml
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._copyright
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._inspectionProfiles
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._misc.xml
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._modules.xml
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._uidesigner.xml
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._vcs.xml
Binary file not shown.
Binary file added RaspO2Ogateway/.idea/._workspace.xml
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
550 changes: 41 additions & 509 deletions RaspO2Ogateway/.idea/workspace.xml

Large diffs are not rendered by default.

Binary file added RaspO2Ogateway/out/._production
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified RaspO2Ogateway/out/production/RaspO2Ogateway/IotGateway.class
Binary file not shown.
Binary file not shown.
Binary file modified RaspO2Ogateway/out/production/RaspO2Ogateway/Protocol/Data.class
Binary file not shown.
Binary file added RaspO2Ogateway/src/._AppData
Binary file not shown.
Binary file added RaspO2Ogateway/src/._Arduino
Binary file not shown.
Binary file added RaspO2Ogateway/src/._HTTP
Binary file not shown.
Binary file added RaspO2Ogateway/src/._IotGateway.class
Binary file not shown.
Binary file added RaspO2Ogateway/src/._IotGateway.java
Binary file not shown.
Binary file added RaspO2Ogateway/src/._Protocol
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added RaspO2Ogateway/src/HTTP/._HTTPcontroller.java
Binary file not shown.
Binary file added RaspO2Ogateway/src/HTTP/._HTTPmanager.class
Binary file not shown.
Binary file added RaspO2Ogateway/src/HTTP/._HTTPmanager.java
Binary file not shown.
Binary file added RaspO2Ogateway/src/Protocol/._Data.class
Binary file not shown.
Binary file added RaspO2Ogateway/src/Protocol/._Data.java
Binary file not shown.
Binary file added WebMonitering/._CSS
Binary file not shown.
Binary file added WebMonitering/._JS
Binary file not shown.
Binary file added WebMonitering/._Res
Binary file not shown.
Binary file added WebMonitering/._index.html
Binary file not shown.
Binary file added WebMonitering/CSS/._style.css
Binary file not shown.
Binary file added WebMonitering/JS/._loadData.js
Binary file not shown.
Binary file added WebMonitering/Res/._BackGround.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._aincon_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._aircon_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._beam_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._beam_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._light_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._light_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._tempIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._usingIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WebMonitering/Res/._waterIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 배선도.key
Binary file not shown.

0 comments on commit f070aeb

Please sign in to comment.