RUclips'a İngilizce yazıp videolar izliyordum bir Türk videosu olduğunu sonradan fark ettim. Böyle konularda Türk kaynakları bulmak ne kadar da gurur verici, başarılarının devamını dilerim.
emeğine sağlık. Aslında projelerin hepsi izleyenlere basit gelebilir ama yapım aşamasında karşılaşılan zorluklar, hatalar, kodlar hepsi bir tecrübe. Devamının gelmesi dileğiyle.
I've seen many youtuber saying those sensor fail because of corrosion. I'd like to see you use a capacitive sensor.😂👍🏻 I've got a problem with tomatos which are thirsty little buggers in summer. This would be great if it works well.
Thanks. I have been thinking about this for a while to water plants stored indoors during the icy winter. But worried about component failure. I want to find a solution to make the system fail safe . For example, if the moisture sensor fails, or if the solenoid valve fails or leaks, or the computing components fails, I need a fail safe solution to drain the water without flooding the house. Also to limit the water loss in such case. The effect of water pressure on some dodgy valves is a concern -- a pressure reducer is needed too?
@@eemanmalik3231 I did not implement. But RUclips has many examples. Solenoid is no different from any of the other things like the LED example -- it is just an ON/OFF thing as far as I know.
Good job) I had a question - can the valve be opened partially? I"m trying to work on a project where I need to control water flow rate gradually, but i'm not sure if a solenoid valve would be a solution. In any case, I would appreciate any comment. Thank you)
@@salihzekiusta Thank you for so quick reply! Really appreciate it!) Yes, I was trying to use a 12 V DC pump which I was controlling by a MOSFET. When set high, the motor can be controlled quite ok (duty cycles about 70-100%), when lower - the torque of the motor drops too low, and it may even stop. This limits my ability to set very low water flows, unfortunately. For this reason I was thinking to approach the problem from the other end - set the pump at max, but control the valve.
@@salihzekiusta I'm not sure if that is true. There seem to be different types of solenoid valves. Yes, they are either always closed or opened, but with a spring mechanism they could at least theoretically be only partially opened by sending less electricity to the electromagnet opening the valve (with the reistance of the spring). ruclips.net/video/BbmocfETTFo/видео.html
Hi, I would like to kindly ask : if I want to connect to the faucet and have the solenoid to switch just when moisture value is between let's say >60 and
lostpulsar I’m not sure about measuring water quantity for each plant, but I think you can measure total daily water consumption with a water level sensor in the water tank.
I use 12V for Arduino input voltage. Recommended input voltage for Arduino is from 5V to 12V, bit.ly/37lsJGO . Besides, I use separate 5V for the relay module to isolate Arduino from the relay.
Se podría añadir una mejora a tu proyecto. Hacer una página web con los resultados de los sensores y mediante un router dedicado a ello, poder leer los resultados con un teléfono o una tablet
Hi, water level sensor can be used to control water level in a tank. If you wanna use another pipe to fill water tank, it’s suitable. Otherwise, it’s not necessary for an automated irrigation system.
Please reply, sir. Which software do you use for schematic simulation on a computer? I used TinkerCad. But in TinkerCad, many components are missing. such as a solenoid.
Increasing moisture level leads to a decreasing resistance in soil moisture sensors. So, when the soil is humid, a lower output signal is seen, and when the soil is dry, a higher output signal is seen. A moisture sensor reads the water content as an analog signal. These signals are converted to digital signals by a 10-bit analog-to-digital converter (ADC) in Arduino. The 10-bit ADC has logic levels of 2^10=1024. So, Arduino can assign or read a value from 0 to 1023. You can map these values from 0 to 100 as shown in the code. And then, you can change max and min thresholds as you desire.
Hocam çok güzel proje elinize sağlık bende ateş tespiti ve su püskürtme için düşünüyorum ama kodlar uygun mu sizce ve uzaktan kumandaya basınca tetiklesin istiyorum ne yapmalıyım veya eklemeliyim
Thanks for a great video! I see the power supply you linked has a 1 to 4 split. What did you do with the 4th power jack? Can you simply cut it clean off? Could you just leave it there unused? thanks again!
Hello Sir, I plan to use this relay to connect from 5V arduino to 12V DC Pump (4-7A). It is written that the DC adaptor to power the pump is 12V 10A. is it a robust solution to use this relay in a closed enclosure in the farm? or should I upgrade the relay spec? Thank You Very much Sir !
I use 12V for the solenoid valve (the red wire coming from 12V power supply goes into the relay channel 1). A separate 5V is used to enable the relay module’s digital circuit.
Sir I'm doing a power failure detection project and I have a doubt, what if I don't use a battery (using mains supply ) without using aurdino.. if there is a power failure, how can I make the solenoid work? How can I connect a capacitor in this set up? And, how can I store the values in memory at the time of powercut?
Hi.. A lead-acid battery can be a good choice for a power supply. Without using a battery I don’t know how you can power this kind of small project. Secondly, to store sensor values simultaneously, you can use a cloud such as ThingSpeak.
bro from where i can get this code and one more thing can you provide a code in which we can set the values of moisture according to ur need so if the moisture met our needs then water pump automatically get off
A solenoid valve requires 12V dc voltage. In order to control high voltages with an Arduino, we need to use relays. A relay basically means a switch. It is located between 12V (or say a higher voltage) and the device (a solenoid in this project). You can control this switch with Arduino to active and deactivate the circuit.
I am using the solenoid valve in hydroponic system, like if pH is >7 means that solution is basic and adds nutrient in solution . but my question is that how can i understand that now ph is stable off the solenoid valve. I donot find a problem to solve this issue. Will you help me?
diğer solenoidi relay modülün channel 2’sine bağlayıp, IN(2)’yi de Arduino’nun bir pinine, örneğin (3), bağlayabilirsin.. bu durumda Arduino IDE’de yeni bir döngü oluşturman gerekir. Google search yaparak daha ayrıntılı bilgiye ulaşabilirsin 👍
Technically solenoid valves turn on and off electronically, but there should be a little pressure to make fluid flow. For this purpose, don’t forget to open up your reservoir’s top to use atm pressure
Hi can i ask you one question. My 4 channel relay just have dc+ and dc-. How can i connect the jd-vcc and vcc like in your video? I hope u will answer me 🙏🏾
The code is already in the video, and also one of the viewers has already written it on a comment. As you know, it’s better to make your own document. Best!
Because it’s not a big deal to write it down to your own device, it’s short. But you can also find it in the pinned comment if you wanna copy and paste
I connect correctly like you but firstly it can open and close the solenoid valve, but now i test again it doesn't open or close the solenoid valve even though led on relay is light on, but solenoid valve does not open, how to do? anybody can give suggestion in solving this problem?
I wrote down the entire thing (I do now know how to code so expect typos)
const int relayEnable = 2;
const int sensorPin = A0;
const int thresholdMax = 800;
const int thresholdMin = 10;
void setup()
{
pinMode(relayEnable, OUTPUT);
pinMode(sensorPin, INPUT);
Serial.begin(9600);
Serial.println("Soil Moisture Level: ");
delay(1000);
}
void loop()
{
int sensorValue = analogRead(sensorPin);
sensorValue = map(sensorValue, thresholdMax, thresholdMin, 0, 100);
Serial.print("Moisture: ");
Serial.print(sensorValue);
Serial.println("%");
if (sensorValue < 0)
{
digitalWrite(relayEnable, LOW);
Serial.println("Relay ON");
}
else
{
digitalWrite(relayEnable, HIGH);
Serial.println("Relay OFF");
}
delay(1000);
}
I used the code u posted for my graduation project after some adjustments, it compiled perfectly, thanks for writing it bro
const int relayEnable = 2;
const int sensorPin = A0;
const int thresholdMax = 800;
const int thresholdMin = 10;
void setup()
{
pinMode(relayEnable, OUTPUT);
pinMode(sensorPin, INPUT);
Serial.begin(9600);
Serial.println("Soil Moisture Level: ");
delay(1000);
}
void loop()
{
int sensorValue = analogRead(sensorPin);
sensorValue = map(sensorValue, thresholdMax, thresholdMin, 0, 100);
Serial.print("Moisture: ");
Serial.print(sensorValue);
Serial.println("%");
if (sensorValue < 0)
{
digitalWrite(relayEnable, LOW);
Serial.println("Relay ON");
}
else
{
digitalWrite(relayEnable, HIGH);
Serial.println("Relay OFF");
}
delay(1000);
}
Bro can u write it for multiple sensors
@@kbvrkbvr1025 how many?
RUclips'a İngilizce yazıp videolar izliyordum bir Türk videosu olduğunu sonradan fark ettim. Böyle konularda Türk kaynakları bulmak ne kadar da gurur verici, başarılarının devamını dilerim.
emeğine sağlık. Aslında projelerin hepsi izleyenlere basit gelebilir ama yapım aşamasında karşılaşılan zorluklar, hatalar, kodlar hepsi bir tecrübe. Devamının gelmesi dileğiyle.
Congratulations Salih, keep going continue to do good jobs
I've seen many youtuber saying those sensor fail because of corrosion.
I'd like to see you use a capacitive sensor.😂👍🏻
I've got a problem with tomatos which are thirsty little buggers in summer.
This would be great if it works well.
Thanks. I have been thinking about this for a while to water plants stored indoors during the icy winter. But worried about component failure. I want to find a solution to make the system fail safe . For example, if the moisture sensor fails, or if the solenoid valve fails or leaks, or the computing components fails, I need a fail safe solution to drain the water without flooding the house. Also to limit the water loss in such case. The effect of water pressure on some dodgy valves is a concern -- a pressure reducer is needed too?
How you use solenoid valve If any code available at you?
@@eemanmalik3231 I did not implement. But RUclips has many examples. Solenoid is no different from any of the other things like the LED example -- it is just an ON/OFF thing as far as I know.
@@cliffmathew yes I know it just work on like switch on and off
But I want to implement the threshold setting to manage the level of pH and water.
@@cliffmathew thanku so much for your reply.
@@eemanmalik3231 Cool! All the best for your project.
Tebrikler, faydalı bir proje olmuş
Nice diy project bro. Keep working!
I want to do the same thing but have the solenoid triggered by a temperature sensor. Thanks for sharing.
Good job)
I had a question - can the valve be opened partially? I"m trying to work on a project where I need to control water flow rate gradually, but i'm not sure if a solenoid valve would be a solution. In any case, I would appreciate any comment. Thank you)
Solenoid valves just work as ON and OFF. To control water flow, you can use a cheap, low-power DC or BLDC driven water pump.
@@salihzekiusta Thank you for so quick reply! Really appreciate it!)
Yes, I was trying to use a 12 V DC pump which I was controlling by a MOSFET. When set high, the motor can be controlled quite ok (duty cycles about 70-100%), when lower - the torque of the motor drops too low, and it may even stop. This limits my ability to set very low water flows, unfortunately. For this reason I was thinking to approach the problem from the other end - set the pump at max, but control the valve.
@@salihzekiusta I'm not sure if that is true. There seem to be different types of solenoid valves. Yes, they are either always closed or opened, but with a spring mechanism they could at least theoretically be only partially opened by sending less electricity to the electromagnet opening the valve (with the reistance of the spring).
ruclips.net/video/BbmocfETTFo/видео.html
may I ask what kind of diode is use on this video?
Great project 👏👏 very helpful
Must I buy a 4 channel relay module or can I use the 2 channel ones
2-channel relay module works as well
@@salihzekiusta How about 1 channel relay module?
Adani safira Likewise it would work
@@salihzekiusta thanks for replying! Just to clarify its a 12v or a 5v relay module. Can I use a 12v relay too?
Adani safira it’s a 5V relay module. You can also use a 12V one.
The solenoid valve usually requires 3psi of water pressure which is roughly 7ft of water. How are you able to operate it with that small water tank?
please see that the lid of the water tank is open at the end of the video. air pressure + water pressure together are able to compensate that 3psi.
Adjusted code.. (compiles well on arduino IDE)
const int relayEnable = 2;
const int sensorPin = A0;
const int thresholdMax = 800;
const int thresholdMin = 10;
void setup()
{
pinMode(relayEnable, OUTPUT);
pinMode(sensorPin, INPUT);
Serial.begin(9600);
Serial.println("Soil Moisture Level: ");
delay(1000);
}
void loop()
{
int sensorValue = analogRead(sensorPin);
sensorValue = map(sensorValue, thresholdMax, thresholdMin, 0, 100);
Serial.print("Moisture: ");
Serial.print(sensorValue);
Serial.println("%");
if (sensorValue < 0)
{
digitalWrite(relayEnable, LOW);
Serial.println("Relay ON");
}
else
{
digitalWrite(relayEnable, HIGH);
Serial.println("Relay OFF");
}
delay(1000);
}
Hi, I would like to kindly ask : if I want to connect to the faucet and have the solenoid to switch just when moisture value is between let's say >60 and
Hi! You can simply change the max and min thresholds in the code.
@@salihzekiusta Thank you very much! Just another question:is it possible to measure the quantity of water each plant receives daily? Thank you!
lostpulsar I’m not sure about measuring water quantity for each plant, but I think you can measure total daily water consumption with a water level sensor in the water tank.
hi I'm planning to integrate esp8266 nodemcu for this where do i power it?
Why are you using the 5v supply module? Is it not overload the Arduino board? Thanks, great job
I use 12V for Arduino input voltage. Recommended input voltage for Arduino is from 5V to 12V, bit.ly/37lsJGO . Besides, I use separate 5V for the relay module to isolate Arduino from the relay.
Creo que lo mejor es usar una fuente para Arduino y otra distinta pata el solenoide y aisladas una de la otra por el relé.
Se podría añadir una mejora a tu proyecto. Hacer una página web con los resultados de los sensores y mediante un router dedicado a ello, poder leer los resultados con un teléfono o una tablet
Hi! Can i use water level sensor instead of soil moisture sensor? If so, what will it change in the code
Hi, water level sensor can be used to control water level in a tank. If you wanna use another pipe to fill water tank, it’s suitable. Otherwise, it’s not necessary for an automated irrigation system.
Please reply, sir. Which software do you use for schematic simulation on a computer? I used TinkerCad. But in TinkerCad, many components are missing. such as a solenoid.
@@RezaulHasan-g7b I used “Fritzing” for this project. You can find many elements by simply google searching produced by users.
Did you make any documention on this?
if so, can you please send it?
Great work, thanks for sharing
Teşekkür ederim . emeğine sağlık. Acaba diyot 1N5819 modeli mi. hangisini kullanıcaz
Diyotun görevi solenoidden gelebilecek olası ters voltajı engellemek, dolayısıyla herhangi bir diyot modeli olabilir.
Can you share solenoid valve library to proteus?
Fab project man
Great job! however, how do I set the code to pump the water when it is below 20 and stop when it is 70? I would appreciate any comments. Thank you
Increasing moisture level leads to a decreasing resistance in soil moisture sensors. So, when the soil is humid, a lower output signal is seen, and when the soil is dry, a higher output signal is seen. A moisture sensor reads the water content as an analog signal. These signals are converted to digital signals by a 10-bit analog-to-digital converter (ADC) in Arduino. The 10-bit ADC has logic levels of 2^10=1024. So, Arduino can assign or read a value from 0 to 1023. You can map these values from 0 to 100 as shown in the code. And then, you can change max and min thresholds as you desire.
@@salihzekiusta Great! Thanks a lot, I really appreciate that.
Hocam çok güzel proje elinize sağlık bende ateş tespiti ve su püskürtme için düşünüyorum ama kodlar uygun mu sizce ve uzaktan kumandaya basınca tetiklesin istiyorum ne yapmalıyım veya eklemeliyim
Thanks for a great video! I see the power supply you linked has a 1 to 4 split. What did you do with the 4th power jack? Can you simply cut it clean off? Could you just leave it there unused? thanks again!
As you said, I simply cut it, or you can leave it there in case of using it for another project.
@@salihzekiusta can you please help me in my Arduino project
Can I use multiple drip water valve to one ardrino
Any tips sir if automatic sprinkler will use sir reply asap please
👏👏👏 kullanılabilir ve başarılı
How to use an ultrasonic swnsor in place of the sensor u used
hello can i know what you used to design the schematic?
hi! it’s called Fritzing
Thanks a lot
@@salihzekiusta Please can you share a link to the where you got the 4 channel realy for fritzing? i only found a 16 channel relay
@@SheriCoco timgolisch.wordpress.com/2015/09/12/fritzing-4-channel-relay-part/
What mode of relay is used here? Normally open or normally closed?
Normally open was used. Pls follow the schematic at 2:25
@@salihzekiustaok, thank you.
Hocam selenoid valf ile yangın söndürme gazı puskurtmek istiyoruz nasıl bi kod kullanabiliriz veya nereden ulaşabiliriz
On-off çalıştığı için kodu standart zaten, şu videodaki kodu kullanabilirsiniz: ruclips.net/video/ioSYlxHlYdI/видео.html
@@salihzekiusta teşekkür ederim :)
Keep on great work
Hello Sir, I plan to use this relay to connect from 5V arduino to 12V DC Pump (4-7A). It is written that the DC adaptor to power the pump is 12V 10A. is it a robust solution to use this relay in a closed enclosure in the farm? or should I upgrade the relay spec? Thank You Very much Sir !
is the 12V dc solenoid valve (1/2'' NPT) NC (normally closed) or NO (normally open)?
It is “NC”
@@salihzekiusta Thank you! can i get the methodology of this in pdf?
@@salihzekiusta Thank you! can i get the methodology of this in pdf?
Merhaba Salih bey. Kodlamalari nereye kaytettiniz?
Merhaba! Videonun içindeki kodu bilgisayarınızda Arduino IDE ile derleyip usb kablosu ile Arduino’nun içine yüklemelisiniz.
Where did you make the schematic diagram
“Fritzing”
@@salihzekiusta can you suggest other free. Except Tinkercad
@@salihzekiusta can you suggest some free app/site?
@@johnreighrosarito7325 you can also use “tinkercad” for free. there is also “proteus” for simulation and design purposes.
@@salihzekiusta in tinkercad there is no power supply module.
We can also used a simple dc pump instead of solenoid valve??
Sure, you can use a low-voltage submersible dc pump or so
@@salihzekiusta thanks for reply
How can you use 5v power supply to 12v valve selenoid? Is that because of the dioda?
I use 12V for the solenoid valve (the red wire coming from 12V power supply goes into the relay channel 1). A separate 5V is used to enable the relay module’s digital circuit.
@@salihzekiusta thanks alot! I just missed the red wire in the bottom lol
can i ask what's the purpose of 5V power supply module?
A 5V is used to enable the relay module's digital circuit. It also isolates Arduino from the relay module.
Sir I'm doing a power failure detection project and I have a doubt, what if I don't use a battery (using mains supply ) without using aurdino.. if there is a power failure, how can I make the solenoid work? How can I connect a capacitor in this set up? And, how can I store the values in memory at the time of powercut?
Hi.. A lead-acid battery can be a good choice for a power supply. Without using a battery I don’t know how you can power this kind of small project. Secondly, to store sensor values simultaneously, you can use a cloud such as ThingSpeak.
@@salihzekiusta Thank you Sir
Hi, Did i missed where the code is...cant seem to find it. thx
Hi, please see the pinned comment or at 3:55
bro from where i can get this code and one more thing can you provide a code in which we can set the values of moisture according to ur need so if the moisture met our needs then water pump automatically get off
You can copy the pinned comment. For your purpose, you should change “if statements” in the code. Search it on Google to learn more about it. Best!
@@salihzekiusta where is the comment mention it
Could you please mail me the code @ Sheikhusmanstar@gmal.com?
Can you share me the code too
That's awesome!
May I know what kind of diode is used?
Any type can work. Specifically you can use 1N4001
Hello! I'm new in this why do u need relays for ? Actually what is their function in this project ?
A solenoid valve requires 12V dc voltage. In order to control high voltages with an Arduino, we need to use relays. A relay basically means a switch. It is located between 12V (or say a higher voltage) and the device (a solenoid in this project). You can control this switch with Arduino to active and deactivate the circuit.
Hai thanks for the video, can we use more the one.. Sensors..?
You can use more than one sensor, but in this case a control algorithm is needed and you'd change the code.
I am using the solenoid valve in hydroponic system, like if pH is >7 means that solution is basic and adds nutrient in solution . but my question is that how can i understand that now ph is stable off the solenoid valve. I donot find a problem to solve this issue. Will you help me?
I couldn’t quite understand the question but if you want to measure the pH level, you can use a pH sensor.
@@salihzekiusta I said that how to stabilize pH
merhabalar. farklı bir proje için 2 adet solenoid valf kullanacak olsam, bağlantıyı nasıl yapmam gerekir acaba ?
diğer solenoidi relay modülün channel 2’sine bağlayıp, IN(2)’yi de Arduino’nun bir pinine, örneğin (3), bağlayabilirsin.. bu durumda Arduino IDE’de yeni bir döngü oluşturman gerekir. Google search yaparak daha ayrıntılı bilgiye ulaşabilirsin 👍
teşekkür ederim
what diode did you used?
You can use any type, for example 1N4001
what is the name of the software of the simulation please
The selenoid valve have polarity?
No it doesn’t
you created the schematic whit which site please
It is called “Fritzing”
@@salihzekiusta thanks bro
In this way you are giving arduino 5 volt of input, that will become 3.9 volt
Right?
the valve doesnt need pressure to open?
Technically solenoid valves turn on and off electronically, but there should be a little pressure to make fluid flow. For this purpose, don’t forget to open up your reservoir’s top to use atm pressure
How the schematic if use 2 selenoids?
Hi sir, why my water came out from solenoid is low?
Why did you connect arduino to a 12v charger?
You should give 5V~12V to Arduino if you don’t connect it to a PC.
That helps a lot:))
Hi can i ask you one question. My 4 channel relay just have dc+ and dc-. How can i connect the jd-vcc and vcc like in your video? I hope u will answer me 🙏🏾
Hi! I’m sorry I’m not sure about that. You can google it or simply change your relay module :)))
hi.. i can this project, show me how can use sensir tds sir, tks
can you please share the code and the document you have written for this project
The code is already in the video, and also one of the viewers has already written it on a comment. As you know, it’s better to make your own document. Best!
Bunun haftada bir yarım saat çalışan versiyonu olsaydı keşke😕yazılım sıkıntı ya
Code included, evn mentioned in the title... Where ? 3mins 52secs screen shot ? LoL, cool thanks. Great entertainment
Because it’s not a big deal to write it down to your own device, it’s short. But you can also find it in the pinned comment if you wanna copy and paste
Where i can get the code for this project ??
at 3:55 or see the pinned comment
I connect correctly like you but firstly it can open and close the solenoid valve, but now i test again it doesn't open or close the solenoid valve even though led on relay is light on, but solenoid valve does not open, how to do? anybody can give suggestion in solving this problem?
one possible problem could be the lid of your water reservoir. don’t forget to open it up (atm pressure)
Size ulasabilecigim bir irtibat numarasi varmi acaba
Diode kaçlık kullanıyor?
Herhangi bir diyot modeli olabilir. Mesela 1N4001 (Vrrm = 50V) gibi.
24v ac solonide valve how to connect float switch with connector plase upload the detail
Hi Sadhiq, I couldn't quite understand your question. Do you want to use a hydraulic level sensor with Arduino?
I'm sorry i don't have electricity background before but why you need 4 channel relays if you just use one
Because it was the only one I had. One channel relay module will be enough for this project.
@@salihzekiusta thx alot bro 👍
@@salihzekiusta hello please share the codes.
@@bisdakhydroponics2732 code in the video at 3:55 and a viewer already typed it down in a comment
Sir can you help me rfid petrol pump
how can i find the whole code?
you can copy the pinned comment.
the dioda + -??
(+) means anode, (-) means cathode. for a proper wiring, please follow the schematic at 2:22
how about we just ust one relay.. not modul relay modul 4 channel.. bu just one
Reza Boy_o No matter, everything will be the same
how if use water pump?
the schematic would be similar, but you should slightly change the code
Hi can you please kindly upload the Code as well ?... thank you
Hi! Code is in the video at 3:55, also a viewer’s already typed it in a comment. You can copy from there.
can you help me with this sir? Can I get the codes for this?
see the pinned comment or 3:55 in the video
specification dioda?
any diode type can work.. check this out: amzn.to/2ltPLZe
Salik i need a code for solenoid Valve using Arduino
check out that guy: ruclips.net/video/ioSYlxHlYdI/видео.html
Hi can you send me the code please
Where is the code
at 3:55, also see the pinned comment
codings for this bro
see the pinned comment
Harika
plz code and shema plzzzzzzzz
This Roblox music is excruciating! You are doing the steps way to fast to even pause the video, with not alot of explaination. Just my two cents.
Thanks for your comment, I'll be considering next time.
what diode did you use?
any can work. specifically 1N4001 (Vrrm=50V)