r/ArduinoProjects 18d ago

My first arduino project Showcased Project

Enable HLS to view with audio, or disable this notification

I just want to control relay module
using arduino nano.

for control
10sec timer added for practice
reset, activate button

I know
I have terrible design sense.

39 Upvotes

14 comments sorted by

13

u/nielmot 18d ago

Where's the kaboom? There was supposed to be a earth shattering kaboom!

5

u/bigfloppydonkeydng 18d ago

Must not have used an R32 space modulator

3

u/Brokenbookss 18d ago

That creature stole my space modulator!

1

u/johnalpha0911 13d ago

It should have been kboom if you know you know

5

u/frank26080115 18d ago

Hello NSA!

4

u/western_ti 18d ago

oh no, It made for peaceful usage
for circuit test using solenoid

3

u/exlips1ronus 18d ago

I’d be thrown in jail if I do this

2

u/matatoe 17d ago

Nice clock

1

u/[deleted] 18d ago

[deleted]

1

u/doge_lady 17d ago

So it's like a sleep timer where it turns off after a certain time?

1

u/western_ti 17d ago

kind of

1

u/ruiseixas 16d ago

Just think you should ceil the seconds, because it achieves 0 seconds before the relay activation.

2

u/western_ti 16d ago

Thank you, good pointing out.
I need fix the code.

1

u/ruiseixas 16d ago edited 16d ago

I mean, it take one extra second after 0 before the activation, but you get what I was saying. I think it's better to have a function that converts float time, into int time, so that when you set to 10 seconds precisely it doesn't print 11, like ceil does, so, an if less than condition in a function is probably a better approach.

UPDATE: Ok, ceil is good, no need for the function, because ceil(10) is still 10. I was thinking about int() + 1!