Mit KI Ähnliches finden
Druckprofil(0)
Modelldatei(0)
Veröffentlicht:2026-03-29 14:39:04
0
0
WORK IN PROGRESS !
The Mad Alert Bot (MAB) is an innovative timer robot designed to remind users to take regular breaks during work. MAB sends hourly alerts to encourage healthy work habits.
🖥 Open Source: MAB is a 100% open-source project, allowing the community to contribute, modify, and improve the robot.
MAB is designed to be both functional and aesthetic, bringing a touch of modernity and originality to any workspace. Through its regular alerts, it helps maintain good work hygiene and prevents fatigue from long work sessions without breaks.
Code for Buzzer and LED :
const int ledPin = 16; // 16 corresponds to GPIO 16 char DIO_buzzer = 12; // 12 corresponds to GPIO 12 void setup() { pinMode(ledPin, OUTPUT); } void loop(){ for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){ analogWrite(ledPin, dutyCycle); delay(20); } tone(DIO_buzzer, 250, 100); tone(DIO_buzzer, 500, 300); tone(DIO_buzzer, 375, 100); tone(DIO_buzzer, 125, 100); for(int dutyCycle = 255; dutyCycle >= 0; dutyCycle--){ analogWrite(ledPin, dutyCycle); delay(20); } for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){ analogWrite(ledPin, dutyCycle); delay(20); } for(int dutyCycle = 255; dutyCycle >= 0; dutyCycle--){ analogWrite(ledPin, dutyCycle); delay(20); } for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){ analogWrite(ledPin, dutyCycle); delay(20); } tone(DIO_buzzer, 500, 300); tone(DIO_buzzer, 325, 300); tone(DIO_buzzer, 650, 100); for(int dutyCycle = 255; dutyCycle >= 0; dutyCycle--){ analogWrite(ledPin, dutyCycle); delay(20); } delay(360000); }
