Is there a way to create timer on Arduino Uno without using pin 13 and LEDs?

Hello, Is there another way to create a timer of sorts for the Arduino Uno, besides using the pin 13 LED, or creating your own LED timer using another pin?

I ask because my Arduino Uno pin 13 is connected to an RFM69HCW Radio Transmitter that needs pin 13.

I need the timer because I am working on a greenhouse automation module that will turn a relay on for 10 minutes (to power a water pump for irrigation).

I don't want to use the delay() function because it will block the rest of my code. And I would rather avoid creating my own LED timer using a different pin because I am running out of pins.

Any ideas?

Thank you

Take a look at the BlinkWithoutDelay example and use any digital pin you like. It does not have to be pin 13

1 Like

You don't need an LED indicator for the Arduino to know how much time has passed. That's generally just to keep the human informed. The Arduino is capable of turning on a relay for 10 minutes without lighting up a light.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.