Final Project
Kennel on a Roll
https://noamed1.wixsite.com/noam-edri
all the details above

Video Subtitle
ניסיון שלנו לפרוייקט גמר, בסוף הצלחנו לחבר את כל החלקים ביחד
השתמשנו בקוד ארדואינו
TOUCH SENSOR LED
Arduino Code
//const int red_led_pin = 13;
//const int poten_pin = A0;
int DogInside = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); // Start Serial.
pinMode(13, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int A = analogRead(A0);
Serial.println(A); // Display serial results in monitor
if (A < 800 ) {
DogInside = 1 - DogInside;
}
if (DogInside == 1 ){
digitalWrite(13, HIGH);
}
else {
digitalWrite(13, LOW);
}
}
exercise 3
In the third exercise, i printed geometrical forms to create movement and new connections.
exercise 2
In this exercise, we had to focus on parametrical geometric forms. I chose 3 forms of geometry and combined them together. It transformed as a big wall, half heart.

3D Printing
Exercise 1
Laser Cut
Exercise 1
The first exercise, i experimented the power of the dot cut.
Every space between two points will be 2mm.
To every square, the cut will be done in another power. (written below next to every square)
The speed will be the same : 30 mm\s.
If the speed is too slow and the power is too high, it will burn the wood (and any other material.
For any text, the spaces between every point needs to be smaller.


Exercise 2
I decided to make joints between the different parts of wood.
It develops afterwards to a kind of puzzle.
Dot cut
Space : 2mm
Speed : 30 mm\s
Power : 80
Exercise 3
In this exercise, I did 2 type of cutting.
The first one is the dot cut, which was to fold the Duplex paper. And the second one, is the cutting.


CNC
_edited.jpg)
.png)

ELECTRONICS
class 1
const int red_led_pin = 3; קבוע לד אדום מספר 3
const int yellow_led_pin = 8; קבוע לד צהוב מספר 8
const int green_led_pin = 13; קבוע לד ירוק מספר 13
void setup() {
// put your setup code here, to run once: קוד שמדליק רת הלדים
pinMode(red_led_pin, OUTPUT);
pinMode(yellow_led_pin, OUTPUT);
pinMode(green_led_pin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly: קוד שמריץ שוב ושוב את הלדים
digitalWrite(red_led_pin, HIGH);
delay(50);
digitalWrite(red_led_pin, LOW);
delay(80);
digitalWrite(yellow_led_pin, HIGH);
delay(75);
digitalWrite(yellow_led_pin, LOW);
delay(90);
digitalWrite(green_led_pin, HIGH);
delay(25);
digitalWrite(green_led_pin, LOW);
delay(150);
}

class 2
const int red_led_pin = 11;
const int yellow_led_pin = 12;
const int green_led_pin = 13;
const int poten_pin = A0;
int poten_value;
const int button_pin = 5;
void setup() {
// put your setup code here, to run once:
pinMode(red_led_pin, OUTPUT);
pinMode(yellow_led_pin, OUTPUT);
pinMode(green_led_pin, OUTPUT);
pinMode (button_pin, INPUT_PULLUP);
Serial.begin (9600);
}
void loop() {
// put your main code here, to run repeatedly:
while (digitalRead (button_pin)==1){
}
poten_value = analogRead (poten_pin);
Serial.println (poten_value);
if (poten_value<= 341) {
digitalWrite (green_led_pin, HIGH);
digitalWrite(red_led_pin, LOW);
digitalWrite (yellow_led_pin, HIGH);
}
else if (poten_value<= 682) {
digitalWrite (green_led_pin, LOW);
digitalWrite (red_led_pin, HIGH);
digitalWrite (yellow_led_pin, LOW);
}
else {
digitalWrite (green_led_pin, HIGH);
digitalWrite (red_led_pin, LOW);
digitalWrite (yellow_led_pin, HIGH);
}
}


class 3
const int red_led_pin = 11;
const int yellow_led_pin = 12;
const int green_led_pin = 13;
const int poten_pin = A0;
int poten_value;
const int button_pin = 5;
bool ani_madlik = false;
void setup() {
// put your setup code here, to run once:
pinMode(red_led_pin, OUTPUT);
pinMode(yellow_led_pin, OUTPUT);
pinMode(green_led_pin, OUTPUT);
pinMode (button_pin, INPUT_PULLUP);
Serial.begin (9600);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead (button_pin)==0){
ani_madlik = !ani_madlik;
}
poten_value = analogRead (poten_pin);
Serial.println (poten_value);
if (ani_madlik = true ) {
if (poten_value<= 341) {
digitalWrite (green_led_pin, HIGH);
digitalWrite(red_led_pin, LOW);
digitalWrite (yellow_led_pin, HIGH);
}
else if (poten_value<= 682) {
digitalWrite (green_led_pin, LOW);
digitalWrite (red_led_pin, HIGH);
digitalWrite (yellow_led_pin, LOW);
}
else {
digitalWrite (green_led_pin, LOW);
digitalWrite (red_led_pin, LOW);
digitalWrite (yellow_led_pin, HIGH);
}
}
else {
digitalWrite (green_led_pin, LOW);
digitalWrite (red_led_pin, LOW);
digitalWrite (yellow_led_pin, LOW);
}
}
_______________________________________________________________________________________________________________
const int Rpin = 9;
const int Gpin = 10;
const int Ypin = 11;
void setup() {
// put your setup code here, to run once:
pinMode (Rpin, OUTPUT);
pinMode (Gpin, OUTPUT);
pinMode (Ypin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for (int i =255; i>=0; i--){
analogWrite (Rpin, i);
analogWrite (Gpin, 0);
analogWrite (Ypin, 255-i);
Serial.println (i);
}
}


Water Sensor
Final Project
הפרויקט שלי מודד את הטמפרטורה של המים ובהתאם לכך, נורות הלד נדלקות.
const int analogInPin = A0;
const int yellow_led_pin = 3;
const int green_led_pin = 2;
const int red_led_pin = 4;
const int sensor = 5;
int sensorValue = 0;
void setup() {
// declare pin to be an output: אלה לדים להדליק
pinMode(yellow_led_pin,OUTPUT);
pinMode(green_led_pin,OUTPUT);
pinMode(red_led_pin,OUTPUT);
pinMode(sensor,OUTPUT);
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
sensorValue = analogRead(analogInPin);
Serial.print("sensor = ");
Serial.print(sensorValue);
Serial.print("\n");
delay(2);
if((sensorValue>=10)&&(sensorValue<=30)){ אם הטמפרטורה של המים פחות מ30 אז :
digitalWrite(yellow_led_pin,HIGH); להדליק את הלד האדום
digitalWrite(green_led_pin, LOW); לחבות את הלד הירוק
digitalWrite(red_led_pin, LOW);
delay(100); לחבות את הלד האדום
}
else if((sensorValue>=31)&&(sensorValue<=70)){ אם הטמפרטורה של המים בין 31 ל70 אז :
digitalWrite(yellow_led_pin,HIGH); להדליק לד צהוב
digitalWrite(green_led_pin,LOW); להדליק לד ירוק
digitalWrite(red_led_pin, LOW);
delay(100); להדליק לד אדום
}
else if((sensorValue>=71)&&(sensorValue<=500)){ אם הטמפרטורה של המים בין 71 ל500 אז :
digitalWrite(yellow_led_pin,HIGH); להדליק את הלד הצהוב
digitalWrite(green_led_pin,HIGH); להדליק את הלד הירוק
digitalWrite(red_led_pin, LOW); לחבות את הלד האדום
}
else{ השאר
digitalWrite(yellow_led_pin,LOW); לחבות
digitalWrite(green_led_pin,LOW); לחבות
digitalWrite(red_led_pin,LOW);לחבות
digitalWrite(5,LOW);לחבות
delay(100);
}
}







.png)

















