Control Your 3 Speed Fan Using Remote 3 Steps!!! (arduino Base)

by Error_Account in Circuits > Arduino

263 Views, 2 Favorites, 0 Comments

Control Your 3 Speed Fan Using Remote 3 Steps!!! (arduino Base)

uploads2ftmp2faa5537f4-fc73-45ab-ad0b-b83bd2df8d372ffigure1ir-remote-sender-receiver-copy_HuGgsG0cx8.jpg
index.jpg
D12-GZ_BL-(Custom).jpg

Warning!!! This project require you to work with main voltage if you have no idea how to deal with, you should dont mass with it at all even if you know how to work with it you need to becareful main voltage can caue harm or even death!!!

This project mainly created by my own lazzyness to turn on my fan and its switch is also kinna broken because it hard to press so i got an idea that i will use ir remote and its receiver sensor that i scarp from some old car stereo combine with arduino pro mini (or any arduino that have enought gpio pins should work) so i can turn it on or off while i am lying down.

Understand How It Work! and Code

Screenshot 2021-04-29 144536.png

First of all this setup use infrared light what not visible to human eye you mostly fond it from car stereo or tv or if you dont have one you can buy one for cheap. Because it use light to transmit and receive data if you too far away or point it worng way it wont work.

about software:

code Link_Here

In picture you can see 3 circle that is what you can change the code so it match the remote that you have because not all remote are the same so just use decode code Link_Here and upload it to your arduino then open serial mornitor and press button you like to use for control your device and copy it to main code.

Those circle in picture are order like this

1.turn off

2.first speed

3.second speed

4.third speed

Creat Some Circuit

Here is circuit diagram it looks abit massy because it do it in hurry Link_Here

Hightly recomended buy relay module that have opto isolator so in event of relay failed it wont fried your microcontroler to crisp also use fuse in the in put if your power input.

Notice that i use diy relay virsion because im have too much spare relay but if you use 5v relay module you doant have to use relay circuit and 12V power source just use 5v one and get rid of 7805 regulator.You can conect your relay module to gpio pin 11 10 9 (first second and third speed).

Btw if you hate beep sound of buzzer you dont have to put it in your circuit it just add it so it sound like ac LOL.

Basic Funtion Explaned

You might notice that my circuit contain some switch but that is just in case you lose your remote so you can press button instand if you dont feel like you will ever lose it (you will lose it do you?)just ignore it and dont put it in your circuit.

All switch and remote button are work as normal fan switch work where you press one speed and another speed that used to press in will release and if you press off button it will release what ever button it used to press it.

Feel free to modifly or give me some feed back i apreciate it all.

Once again becareful dealing with main voltage.