Rohan Barnwal
Published © GPL3+

IMac-Style IPhone Charging Stand With Sleep Reminder

Do you stay up late scrolling on your phone? I built a fun and practical solution: and iMac- style iPhone charging stand with a sleep remind

BeginnerFull instructions provided1 hour37
IMac-Style IPhone Charging Stand With Sleep Reminder

Things used in this project

Hardware components

UNO R4 WiFi
Arduino UNO R4 WiFi
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Buzzer
Buzzer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Connections

Code

Code

Arduino
#define BUZZER 11
#define SENSOR 7

void setup() {
  pinMode(BUZZER, OUTPUT);
  pinMode(SENSOR, INPUT);
  digitalWrite(BUZZER, LOW);
}

void loop() {
  int sensorValue = digitalRead(SENSOR);

  // Simulating bedtime reminder (10s delay for demo)
  delay(10000);

  if (sensorValue == LOW) {
    digitalWrite(BUZZER, HIGH);
    delay(200);
    digitalWrite(BUZZER, LOW);
    delay(200);
  } else {
    digitalWrite(BUZZER, LOW);
  }
}

Credits

Rohan Barnwal
37 projects • 35 followers
Rohan Barnwal - maker, hacker, tech enthusiast. I explore new tech & find innovative solutions. See my projects on hackster.io!

Comments