house

Matthew Oh and 2 OthersEscher Briere
Mason Clish

house iteration 2

Matthew Oh and 2 OthersEscher Briere
Mason Clish
lasercut 2.3dm

house

3D cut file (new house)

oliver choi and Charles Juhas
3D file.3dm
3D house.dxf

file

Albert and Wayne

Davison Wayne and Aden Albert

Albert and Wayne

Sealing the Breach: Sap for Ship Sealing Safety

Project image 1/29/2025

Yizhe Ying and Jack LaRovere Abrams

Parameter Test Code

Davison Wayne and Aden Albert

const int moistureSensorPin = A0; // Change this to the pin for your sensor


void setup() {

  Serial.begin(9600); // Start serial communication

}


void loop() {

  int moistureValue = analogRead(moistureSensorPin); // Read the sensor value

  Serial.println(moistureValue); // Print the value to the Serial Monitor

  delay(500); // Small delay for readability

}

Full code test

Davison Wayne and Aden Albert

const int moistureSensorPin = A0;  // Signal pin of the moisture sensor

const int ledPin = 13;             // LED connected to pin 8

const int moistureThreshold = 1; // Adjust based on testing


void setup() {

  Serial.begin(9600);         // Start Serial Monitor

  pinMode(ledPin, OUTPUT);    // Set LED pin as output

  pinMode(moistureSensorPin, INPUT); // Set sensor pin as input

}


void loop() {

  int moistureValue = analogRead(moistureSensorPin); // Read sensor value

  Serial.print("Moisture Value: ");

  Serial.println(moistureValue); // Print sensor value for debugging

  

  // Check moisture level

  if (moistureValue < moistureThreshold) {

    digitalWrite(ledPin, HIGH); // Turn on LED if soil is dry

  } else {

    digitalWrite(ledPin, LOW);  // Turn off LED if soil is moist

  }


  delay(500); // Wait 0.5 seconds before the next reading

}

Arduino Test

Davison Wayne and Aden Albert

Vid

Charles Juhas and oliver choi
IMG_4749.MOV

Day 6 progress

Shiran Guo and Yichao Xie

#include <Servo.h>  // Include the Servo library


// Define the pin connected to the photoresistor

const int photoPin = A0;  // Photoresistor (Adafruit 161) connected to analog pin A0


// Define the pin for the servo motor

const int servoPin = 9;   // Servo motor connected to pin 9


// Define the threshold value to detect light

// Adjust this value based on the specific lighting conditions

int lightThreshold = 50;  // Example threshold


// Create a Servo object

Servo myServo;


// Variable to track light detection state

bool isLightDetected = false;  // Track if light level is currently above threshold


void setup() {

  // Start serial communication

  Serial.begin(9600);

  while (!Serial) {

    ; // Wait for the serial port to connect (necessary for native USB port boards)

  }


  // Attach the servo to pin 9

  myServo.attach(servoPin);


  // Initialize the servo to its resting position (0 degrees)

  myServo.write(0);  // Start at 0 degrees


  // Print a startup message

  Serial.println("Photoresistor (Adafruit 161) with Servo Example Initialized");

}


void loop() {

  // Read the analog value from the photoresistor (range 0 to 1023)

  int sensorValue = analogRead(photoPin);


  // Print the sensor value to the serial monitor

  Serial.print("Photoresistor Value: ");

  Serial.println(sensorValue);


  // Check if the sensor value exceeds the threshold (light detected)

  if (sensorValue > lightThreshold) {

    if (!isLightDetected) {

      // Light newly detected, move the servo to 0 degrees

      Serial.println("Light Detected");

      myServo.write(0);  // Move servo to 0 degrees

      isLightDetected = true; // Mark that light is detected

    }

  } else {

    // Light is below threshold

    if (isLightDetected) {

      Serial.println("Light Below Threshold");

      myServo.write(70);  // Move servo to 70 degrees

      isLightDetected = false; // Reset the detection state

    }

  }


  // Longer delay to observe changes more clearly (1 second)

  delay(1000);

}