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
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.
An AC powered fan would use a different driver, like a relay (mechanical or solid state).
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.
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