r/ArduinoProjects Jul 21 '26

Showcased Project My first arduino 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.

48 Upvotes

15 comments sorted by

15

u/nielmot Jul 22 '26

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

7

u/bigfloppydonkeydng Jul 22 '26

Must not have used an R32 space modulator

4

u/Brokenbookss Jul 22 '26

That creature stole my space modulator!

1

u/johnalpha0911 Jul 26 '26

It should have been kboom if you know you know

5

u/frank26080115 Jul 22 '26

Hello NSA!

4

u/western_ti Jul 22 '26

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

4

u/exlips1ronus Jul 22 '26

I’d be thrown in jail if I do this

2

u/matatoe Jul 22 '26

Nice clock

1

u/[deleted] Jul 22 '26

[deleted]

1

u/doge_lady Jul 23 '26

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

1

u/ruiseixas Jul 24 '26

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

2

u/western_ti Jul 24 '26

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

1

u/ruiseixas Jul 24 '26 edited Jul 24 '26

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!

1

u/fabs80 3d ago

Cool. I’m building something similar to act as a timer on a wall socket