Close
0%
0%

AT

We are helping people who have troubled memory clean. We are using ultrasonic senors and light to sense and tell a person where they cleaned

Similar projects worth following
Overview:
The point of the machine is when a person walks within a certain distance of it, Bright lights will flash and a buzzer will beep to let them know they are within range and done cleaning with that area.

We are using an Ultra-Sonic sensor to detect when somebody is with in 50cm. When somebody is within 50cm Traffic Light LED will turn on and a buzzer will beep to grab the cleaners attention and let them know they are done cleaning the section. The buzzers get louder based on the order to let the cleaner know how close they are to finishing. The Hazzah Feather board is what we are using to let the Ultra-Sonic sensor and Traffic Light LED to talk to each other. A bread board is used to make the wiring more simple and neat. The project will take about 6-7 weeks to build and in that time the applications we will be using are Tinkercad, Arduino, Youtube for tutorials and basecamp and hack-a-day to document and keep track of everything.

Frantic Allis.stl

Box Design

Standard Tesselated Geometry - 58.09 kB - 04/22/2025 at 21:41

Download

Rickety Mantis.pdf

Business Logo

Adobe Portable Document Format - 47.22 kB - 04/21/2025 at 22:22

Preview

View all 6 components

  • Weekly Log

    James04/16/2025 at 21:00 0 comments

    Week 1:

    -Met with people who need assistive technology

    -Decided on project

    -Got materials required for project

    -Started watching videos to learn how Arduino works

    -Started coding on Arduino

    -Started designing a cone on TinkerCad

    Week 2:

    -More designing a cone on TinkerCad

    -Figuring out wiring the LED, Hazzah Feather, and Ultrasonic sensor together

    -Arduino code got deleted, Forced to restart

    Week 3:

    -Restarted Arduino code

    -Finally got access to Hack-a-day

    -Finished Cone, Printing over the Weekend

    -Hack-a-day didn't save, Forced to restart

    Week 4:

    -Restarted Hack-a-day

    -Cone finished printing

    -Scrapped cone idea, started designing a box

    -Box finished, Printing

    -Arduino code finished

    -Wiring Problems, Bread Board needed soldering

    -Rewired two of the three breadboards

    -Box printed

    -Changed from Traffic Light LED to NeoPixel LED

    Week 5:

    -Delivery day discussion

    -Struggling coding Neo-Pixel LED

    -2 more boxes printing

    -Scrapped Neo-Pixel LED, back to Traffic Light LED

    Week 6:

    -Feather Board Stolen

    -Recovered Feather Board

    -Third and final box printed

    -Started coding buzzer on arduino

    -Finished coding buzzer

    Week 7:

    -Project COMPLETLEY finished

View project log

  • 1
    Setting Up Code

    Copy this Code into Arduino:

    // constants won't change
    const int TRIG_PIN = 14;  // Arduino pin connected to Ultrasonic Sensor's TRIG pin
    const int ECHO_PIN = 13;  // Arduino pin connected to Ultrasonic Sensor's ECHO pin
    const int LED_PIN  = 16;  // Arduino pin connected to LED's pin
    const int BUZZER_PIN = 2; const int MIN_DISTANCE = 10;  // Minimum distance for LED on (cm)
    const int MAX_DISTANCE = 50;  // Maximum distance for LED on (cm)

    long duration;
    float duration_us, distance_cm;

    void setup() {
      Serial.begin(9600);  // Initialize serial port
      pinMode(TRIG_PIN, OUTPUT);  // Set TRIG_PIN as output
      pinMode(ECHO_PIN, INPUT);   // Set ECHO_PIN as input
      pinMode(LED_PIN, OUTPUT);   // Set LED_PIN as output
      pinMode(BUZZER_PIN, OUTPUT); // Set BUZZER_PIN as output
    }

    void loop() {
      // Send a 10-microsecond pulse to TRIG pin to start the measurement
      digitalWrite(TRIG_PIN, HIGH);
      delayMicroseconds(10);
      digitalWrite(TRIG_PIN, LOW);

      // Measure the duration of the pulse received by ECHO pin
      duration_us = pulseIn(ECHO_PIN, HIGH);

      // Calculate the distance in cm (speed of sound is 0.034 cm/us)
      distance_cm = (duration_us * 0.034) / 2; // Divide by 2 because pulse travels to object and back

      // Check if the distance is within the defined range
      if (distance_cm >= MIN_DISTANCE && distance_cm <= MAX_DISTANCE) {
        digitalWrite(LED_PIN, HIGH);      // Turn on LED
        tone(BUZZER_PIN, 1000);           // Generate tone (1 kHz frequency for active buzzer)
      } else {
        digitalWrite(LED_PIN, LOW);       // Turn off LED
        noTone(BUZZER_PIN);               // Stop buzzer sound
      }

      // Print the distance to Serial Monitor
      Serial.print("Distance: ");
      Serial.print(distance_cm);
      Serial.println(" cm");

      delay(500);  // Wait for 500 ms before taking another measurement
    }

  • 2
    Create box to put machine in
  • 3
    Follow this tutorial to put all the parts together

View all 4 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates