MoonCampaign by Hridaan (11 years)
Our Social Impact - We're transforming education globally with free robotics and math workshops in the US, UK,
Canada, and Australia.
Our workshops have helped 66,000 students alone in the US plus 14,000 students benefit from our four-week sessions.
Health band
Hridaan
Show and Tell
Show n Tell
Coming Soon
I created a project called the Health Band. It is a wearable device that reminds you to drink water and sleep on time. The notifications appear on an LCD screen, and a buzzer chirps every hour for 60 seconds. I used components like an LCD, push button, buzzer, and MicroPython. In my code, I set up the LCD pins, buzzer pin, button pin, and a counter. The while True loop keeps checking whether the button is pressed. If it is, the buzzer stops immediately; otherwise, it rings every hour. This project helped me learn debugging and timing in MicroPython.
My project is called the Health Band. It is a simple but useful wearable device designed to remind people to stay healthy by drinking water and taking rest at the right time. The band gives hourly reminders through both a buzzer and an LCD display. The screen shows helpful messages like “Drink Water,” while the buzzer chirps for 60 seconds. If someone wants to stop the sound, they can press the push button, which immediately turns off the buzzer.
To build this project, I used an LCD display, a push button, a buzzer, MicroPython, and other input–output pins connected through my microcontroller. In the code, I began by importing the necessary modules such as Pin, PWM, and sleep. Then I initialized the LCD pins and declared variables needed for the program. I also set up a counter to keep track of how many times the button is pressed.
The buzzer tone and its duration were defined in a separate function. The main logic runs in a while True loop, where the LCD repeatedly prints “Drink Water.” During each cycle, the code checks if the button value is 1. If the button is pressed, the program prints “Button Pressed” for debugging, stops the buzzer, clears the LCD, and resets the counter. If the button is not pressed, the buzzer rings for a set duration, and the LCD continues displaying the reminder.
If the buzzer completes 60 seconds without interruption, the system goes to sleep for 3,600 seconds—exactly one hour—before reminding again. This project helped me understand how loops, timers, and input detection work in MicroPython. It was fun building something useful that can help people stay healthy.
©️ Copyright, Moonpreneur Inc.
691 S Milpitas Blvd, STE 217 Milpitas CA 95035, USA
Likes
Rating
45 days left
Health band