Problem:
I was having a lot of trouble coming up with something for this crit, but thankfully (at least for me) one of my housemates had forgotten to click start on the dryer and when she went to get her clothes an hour later, they of course were still wet. With our oven, I’ve forgotten to press start multiple times since moving in a month ago and the setup is literally just inputting the baking temperature. Thankfully, it beeps a few times to let me know that I never actually pressed start. If I were deaf, listening to music, or there was a lot of noise coming in from outside though, this wouldn’t help at all. When it comes to doing laundry, simply not pressing start can be a huge drain of time. However, this crucial last step is so easy to forget in even the smallest pre-steps like inputting a baking time, but especially so for laundry considering it takes a decent amount of time to load clothes. For washing and drying clothes, a visual notification would save a ton of time and would ensure that as long as you aren’t blind, you will know you forgot to press start regardless of your ability to hear.
Proposed Solution:
My proposed solution is to notify the user to press start with an obnoxiously flashing LED strip along the walk away from the machine so as to catch their attention easily. The device would only light the LED strip if a few conditions are met so that energy isn’t wasted and the user who loads clothes slower than an arbitrary average isn’t unnecessarily annoyed. First, clothes would have to be loaded into the machine. This could be detected by a broken IR beam at the bottom middle of the machine. Secondly, the lid must be closed. Rather than use a tilt sensor which would limit this to machines with lids that are vertical when open and horizontal when closed, I’ve chose a photo resistor as the inside of the machine will be dark when closed. Finally, the notification will only occur if the user has walked a few steps away from the machine, detected by an ultrasonic ranger, as there’s no need for it if they are standing right in front of it and very well may not have forgotten. If they’ve walked out of the room, here signified by a time elapsed and no return in front of the machine, the LED strip automatically turns off.
Proof of Concept:
This shows the intended use where in the user sees the flashing LEDs and goes back to press start.
This shows how nothing happens if the start button is pressed to begin with.
This shows how the lights turn off if you’ve left.
This shows how nothing will happen if the lid is closed but nothing is in the machine.
Photoresistor and IR breakbeam sensor in box
My Circuit
const int IRpin = 3;
int IRstate;
const int buttonPin = 10;
int buttonPressed = 0;
#include <PololuLedStrip.h>
PololuLedStrip<13> ledStrip;//LED in pin 7
const int LEDPIN = 13;
const int LED_COUNT = 10;//in full project would be a lot longer strip of LEDs
rgb_color red[LED_COUNT];
rgb_color black[LED_COUNT];
#include <NewPing.h>
int triggerPin = 12;
int echoPin = 11;
int maxDistance = 400;
NewPing sonar(triggerPin, echoPin, maxDistance);
int photoPin = A5;
void setup() {
pinMode(IRpin, INPUT);
pinMode(buttonPin, INPUT);
digitalWrite(IRpin, HIGH);
pinMode(LEDPIN, OUTPUT);
pinMode(photoPin, INPUT);
Serial.begin(9600);
}
void loop() {
IRstate = digitalRead(IRpin);
int photoVal = analogRead(photoPin);
Serial.println(photoVal);
int distance = sonar.ping_cm();
for (uint16_t i = 0; i < LED_COUNT; i++) {
black[i] = rgb_color(0, 0, 0);
}
ledStrip.write(black, LED_COUNT);
if (IRstate == LOW) {//broken
//Serial.println("broken");
//Serial.println(distance);
//Serial.println(photoVal);
if (photoVal < 150) {//lid closed
if (digitalRead(buttonPin)) {
buttonPressed = 1;
}
if (not buttonPressed) {
if (distance > 10) { //would've done 91cm, ~3ft for real thing
static int startTime = millis();
if (millis() - startTime < 7000) {//7s for demo, but would be about 30 for actual thing
static int blinkStart = millis();
for (uint16_t i = 0; i < LED_COUNT; i++) {//this rotates through each LED on the strip so that each one will be red
byte x = millis() - 20 * i;
red[i] = rgb_color(255 - x, 0, 0);
}
ledStrip.write(red, LED_COUNT);
if (millis() - blinkStart >= 10) {
for (uint16_t i = 0; i < LED_COUNT; i++) {
black[i] = rgb_color(0, 0, 0);
}
ledStrip.write(black, LED_COUNT);
blinkStart = millis();
}
}
}
}
}
}
}