Help with a project

Hello there !! ,

I have worked a arduino workshop before we I controlled a light bulb using with relay and arduino board . I would like to do the same to a extension cord connected to




my fan but set like a timer for 2 -3 hrs . I have forgotten a the things I did in the workshop.If somone could help with the code and with assembly it would be great!

I have a esp8266 and 5V relay (I think)

Edit: I am so sorry not to specify things I have made changes to the nessecary things and thanks a lot to the people who replied

Thanks
Sims

Forum is not a free give away shop. The intention is to support members that want to learn and grow in programming.

1 Like

Welcome.

So you have a fan (unknown voltage and current) powered by something and controlled by a mystery Arduino board through a unknown driver.

How will all this unspecified hardware be powered?

So you see that there is some information that you need to gather before you start (not even counting the blynk thing).

First get the stall current and rated voltage for the fan. Then you can find an appropriate driver. Shown is a typical MOSFET driver for a DC powered fan motor.

image

An AC powered fan would use a different driver, like a relay (mechanical or solid state).

You seem to have ignored the request that you read the how to get the best from the forum thread. Now would be a good time to read it. It will save time later.

What will you use for the timing? Delay(millis())? An RTC? That Blynk thing?..

1 Like

This should be pretty easy to do. First, there's no image attached, and it's important to know something about the fan such as if it's AC powered, or DC. Either way a relay is appropriate for such a long time interval, but if it's for 120VAC it would be safer for you to use a prebuilt switching module for AC power like this one: Controllable Four Outlet Power Relay Module version 2 [(Power Switch Tail Alternative)] : ID 2935 : Adafruit Industries, Unique & fun DIY electronics and kits.

So what do you need to learn? First, how to do a very basic arduino program to setup an output pin and then how to turn it on and off. From that, it's pretty simple to advance to turning it on for 2 hours then automatically back off.

Best of luck.

2 Likes

Not a problem try this link, no Arduino is needed. Percentage Timers | Eagle Signal

Sir, I was just asking for help , If you are unable to don't want to provide help its alright.I can ask other members of forum for help

Thanks so much for your reply , I wanted to do this is a external extension cord so I can do it for any appliances . So this is not possible but thanks again

Sorry for not posting pics , I have updated the post and I am sending all pics below



Thanks so much

Very sorry for not specifying things but I have edited my post . I would not use blynk . Sorry for not reading the post

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