Build it step by step
0 of 7 doneSet the clock
Run RTClib's DS3231 example once.
Wire the clock and the screen
Both on A4 and A5.
Wire the buzzer and button
Buzzer to D8, button to D2 and GND.
Upload the sketch
The screen shows the time and Resting.
Hold the button two seconds
A beep, and the screen shows Day 1.
Change RINSE_HOURS to the current hour
To test the reminder.
Press the button briefly
The reminder stops.
How do you build a sprout jar rinse timer?
A small timer beeps and lights a lamp at set times each day to remind you to rinse the seeds in a sprouting jar, and counts the days since you started. It is a reminder only. Follow proper food hygiene for sprouts and do not rely on the device for food safety. You need Arduino Nano, DS3231 RTC module, Passive buzzer, Tactile push button 6 mm, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 60 minutes.
- Level
- Beginner
- Time
- About 60 min
- Parts
- 7
Parts list
- Development BoardsBuyArduino Nano × 1
- SensorsBuy
- Motors & ActuatorsBuyPassive buzzer × 1
- SwitchesBuy
- DisplaysBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| RTC SDA and SCL | Nano A4 and A5 | I2C data and clock |
| OLED SDA and SCL | Nano A4 and A5 | Shares the same I2C wires |
| RTC and OLED VCC and GND | Nano 5V and GND | Power |
| Passive buzzer + and - | Nano D8 and GND | Reminder beeps |
| Button | Nano D2 and GND | Press to stop a reminder, hold for two seconds to start a new batch |
Code
Sprouting seeds need rinsing and draining a few times a day, and the clock module makes sure the reminder comes at the same hours every day. The sketch beeps once every five seconds and shows RINSE NOW for up to ten minutes at 08:00, 14:00 and 20:00, and a short button press silences it. Hold the button for two seconds to start a new batch: the sketch then saves the start time in the Nano's EEPROM, so the day count survives a power cut, and the screen shows Day 1, Day 2 and so on. Change RINSE_HOURS for your own routine, and set the clock once with RTClib's example sketch. Install "RTClib", "Adafruit SSD1306" and "Adafruit GFX" from the Library Manager. The timer is only a reminder and cannot tell you whether sprouts are safe to eat. Follow proper food hygiene for sprouts: use clean jars and clean water, rinse well, keep them cool, and discard sprouts that smell or look slimy. People who are pregnant, elderly, very young or unwell are often advised to cook sprouts, so check local advice. Keep the electronics dry and away from the jar's water.
Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
// Libraries: RTClib, Adafruit SSD1306 and Adafruit GFX.
#include <Wire.h>
#include <EEPROM.h>
#include <RTClib.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
RTC_DS3231 rtc;
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
const uint8_t BTN = 2;
const uint8_t BUZZ = 8;
const uint8_t RINSE_HOURS[3] = {8, 14, 20}; // rinse at these hours, on the hour
const unsigned long REMIND_MS = 600000UL; // keep reminding for ten minutes
uint32_t startTime = 0;
bool reminding = false;
unsigned long remindSince = 0;
int lastHandled = -1; // hour of the last reminder
unsigned long holdStart = 0;
bool longDone = false;
unsigned long lastDraw = 0;
void draw(const DateTime &t) {
oled.clearDisplay();
oled.setTextColor(SSD1306_WHITE);
oled.setTextSize(1);
oled.setCursor(0, 0);
if (t.hour() < 10) oled.print('0');
oled.print(t.hour()); oled.print(':');
if (t.minute() < 10) oled.print('0');
oled.print(t.minute());
oled.setCursor(0, 14);
if (startTime == 0) oled.print(F("Hold button: new batch"));
else { oled.print(F("Day ")); oled.print((t.unixtime() - startTime) / 86400UL + 1); }
oled.setTextSize(2);
oled.setCursor(0, 36);
oled.print(reminding ? F("RINSE NOW") : F("Resting"));
oled.display();
}
void setup() {
pinMode(BTN, INPUT_PULLUP);
pinMode(BUZZ, OUTPUT);
Serial.begin(9600);
rtc.begin();
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
EEPROM.get(0, startTime);
if (startTime == 0xFFFFFFFFUL) startTime = 0; // nothing saved yet
}
void loop() {
DateTime t = rtc.now();
unsigned long now = millis();
bool rinseHour = false;
for (uint8_t i = 0; i < 3; i++) if (t.hour() == RINSE_HOURS[i]) rinseHour = true;
if (rinseHour && t.minute() < 10 && lastHandled != t.hour()) { // first ten minutes of a rinse hour
lastHandled = t.hour();
reminding = true;
remindSince = now;
}
if (!rinseHour) lastHandled = -1;
if (reminding) {
if ((now / 1000) % 5 == 0) tone(BUZZ, 1800, 150); // a short beep every five seconds
if (now - remindSince > REMIND_MS) reminding = false;
}
if (digitalRead(BTN) == LOW) {
if (holdStart == 0) holdStart = now;
if (reminding && now - holdStart > 50) { reminding = false; }
if (!longDone && now - holdStart > 2000) { // long press: start a new batch
startTime = t.unixtime();
EEPROM.put(0, startTime);
tone(BUZZ, 1000, 300);
longDone = true; // do not repeat while held
}
} else {
holdStart = 0;
longDone = false;
}
if (now - lastDraw > 1000) { lastDraw = now; draw(t); }
}Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Start of a rinse hour | Beeps and RINSE NOW |
| Short press | Reminder stops |
| Two-second hold | New batch, Day 1 |
| Next day | Day count goes up |
| Power cut | Day count remembered |
If it does not work
Time is wrong
Set the clock again with the RTClib example.
No reminder
Check RINSE_HOURS and that the clock is right.
Day count resets
Check the long press stored the start time.
Blank screen
Check the OLED wires and try address 0x3D.
No beep
Check you have a passive buzzer on D8.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the sprout jar rinse timer?
Arduino Nano, DS3231 RTC module, Passive buzzer, Tactile push button 6 mm, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the sprout jar rinse timer take to build?
About 60 minutes for a beginner maker, in 7 steps.
How do I know the sprout jar rinse timer works?
Start of a rinse hour: Beeps and RINSE NOW. Short press: Reminder stops. Two-second hold: New batch, Day 1.
Time is wrong: what should I check?
Set the clock again with the RTClib example.
No reminder: what should I check?
Check RINSE_HOURS and that the clock is right.
Day count resets: what should I check?
Check the long press stored the start time.
Blank screen: what should I check?
Check the OLED wires and try address 0x3D.
