Great tutorial!!! Am trying to add another reed switch in the loop but am not sure how the code has to be changed so when both reed switches have a magnet it would turn on the light.
I have defined pins for the reed switch and pin for output (relay) and explained in code. Just define another pin for 2nd reed switch and another for the output. Watch the video 2 or 3 times I have not left anything unclear. You should be able to do it.
You still change the relay set-up from nc to no sir Youve said earlier that without changing relay set- up you will be able to turn on the light when reed switch being triggered by magnet? I think it is not possible, relay no/nc set-up still need to be changed.
Nice👍,... Sir what if. I have one reed switch to determine that the servo motor is already at the position of 90° and then it will go back to 0° posistion automatically in the time i wanted?. What codes i use? I already make the code to to arduino to control it by the IR remote to rotate to 90°... and now sir,. I want the servo automatic to go back to zero...i need your help Sir
hello, I have I tones of videos on servo. Search for servo on my channel. Here is how to find Specific RUclips Video in a channel bit.ly/findRUclipsVideo
what's the Current rating of these common Reed Switches? Can I use them directly between power source and light bulb without any Relay? In short how much Current can they bear?
Hello, you should have a car ready to work. then use the battery power of the car go throw the relay. in this video I've shown a bulb, you replace the bulb with your car and instead of connecting to AC connect it to the car battery. very simple.
Nice help sir. Sir i m facing a prob related with arduino uno, actually i want to connect arduino with l298n motor controller, 2 reed switch and a ldr sensor. But i m unable to connect with arduino. Plz help me.
You have to make your project work with the L298N motor controller first. Once it works and you were able to control the motor. Then make another project with reed switch. and make sure it works. then combine both. Share you code in this page codeshare.io/ and once you posted the code, we I can make comment or edit it for you to make it work.
Please reply here. I understand you want to do the following: working with two reed switches n a motor controller. My project is based on:------ ======================= If reed switch1 is true If reed switch 2 is false Then Motor will round clockwise Else Motor will round counter clockwise. ========================= So have do you have code for the motor controller? Please post your the code for your motor codeshare.io/ and then once you post it, that website will have a URL (website address) and post it here. Please use reply under this comment (please do not post new comment under the video) so your all your comments are together and easy to follow. Once you posted your code, I will fix it so it can work with the reed switch.
Robojax :- sir i m trying to write code but stuck on nested if statement. Acctually i want to check light sensitivity by ldr n if ldr returns 1 then check another condition which is if (reed1=1 && reed2=0) then motor controller plays a roll to move dc motor clockwise n if if (reed1=0 && reed2=1)then motor controller plays a roll to move dc motor counter clockwise . But i wrote a code using nested if statement but isnt working.
been on your website the adds on top of the screen stops you from reading or looking for anything really annoying hence I left, very interesting clip do cheers
can you take the screen shot and share it it? When visiting the page, just press "Print Screen" on your keyboard, then visit this website snipboard.io/ and press paste it (Ctrl+V) and this website will make a page for it automatically. Then share the link back so I look at it. I am sorry for that.
Sorry when I prepared the material for this video, I did not draw it because many components have not symbol in the drawing program. I will see if I can draw it. I will inform you once I did.
Message:Hi friend, can U help to me about reedswitch for Arduino. I whant to build wind anemometer. I have arduino nano, reedswitch yust like on this video . I tipe code for anemometer, but something is wrong, arduino cant red info from reedswitch. My code: #include #include LiquidCrystal_I2C lcd(0x27, 16, 2); extern volatile unsigned long timer0_millis; unsigned long new_value = 0; float RoundsSum=0; float PreviousReading=0; float CurrentReading; float RPM=0; float AirFlow=0; int MeasureTime=6000; void setup() { Wire.begin(); lcd.begin(16,2); lcd.backlight(); Serial.begin(9600); } void loop() { for (int i=0; millis()
You have to test your code without LCD and just display the information on Serial Monitor. Then use LCD. This way you have smaller code to find . I can't figure this out as this was the first time I heard the word "anemometer" and I have no access to the device.
Hey Great Video, I wonder if you have any tutorial for adding SMS on this action with GPS location? Thanks
Thank you. I have got the module with but never got a chance to make video. If I get time, I will try to make video on that.
Great tutorial!!! Am trying to add another reed switch in the loop but am not sure how the code has to be changed so when both reed switches have a magnet it would turn on the light.
I have defined pins for the reed switch and pin for output (relay) and explained in code. Just define another pin for 2nd reed switch and another for the output. Watch the video 2 or 3 times I have not left anything unclear. You should be able to do it.
@@robojax I got it i had to use the || expression to tell the code that when both of these are active then activate the lamp thank you.
permission to ask sir, if we want to make an object fall timer using a magnetic sensor, what is the program code like?
You still change the relay set-up from nc to no sir
Youve said earlier that without changing relay set- up you will be able to turn on the light when reed switch being triggered by magnet?
I think it is not possible, relay no/nc set-up still need to be changed.
Nice👍,... Sir what if. I have one reed switch to determine that the servo motor is already at the position of 90° and then it will go back to 0° posistion automatically in the time i wanted?. What codes i use? I already make the code to to arduino to control it by the IR remote to rotate to 90°... and now sir,. I want the servo automatic to go back to zero...i need your help Sir
hello, I have I tones of videos on servo. Search for servo on my channel. Here is how to find Specific RUclips Video in a channel bit.ly/findRUclipsVideo
nice , thank you . Did you put the relay in the null path ?
what is is UNLL path?
what's the Current rating of these common Reed Switches? Can I use them directly between power source and light bulb without any Relay? In short how much Current can they bear?
they use different types of reed switches. but it is at the level of 1-10mA and even won't turn ON and LED.
Hi sir could you please tell me how to make reed switch control car?
Hello, you should have a car ready to work. then use the battery power of the car go throw the relay. in this video I've shown a bulb, you replace the bulb with your car and instead of connecting to AC connect it to the car battery. very simple.
@@robojax NO sir i want you to knoe how to make a arduino based 4wd car using magnetic reed switch? so what would i need to make this project?
Nice help sir. Sir i m facing a prob related with arduino uno, actually i want to connect arduino with l298n motor controller, 2 reed switch and a ldr sensor. But i m unable to connect with arduino. Plz help me.
You have to make your project work with the L298N motor controller first. Once it works and you were able to control the motor. Then make another project with reed switch. and make sure it works. then combine both.
Share you code in this page codeshare.io/ and once you posted the code, we I can make comment or edit it for you to make it work.
Please reply here. I understand you want to do the following:
working with two reed switches n a motor controller. My project is based on:------
=======================
If reed switch1 is true
If reed switch 2 is false
Then
Motor will round clockwise
Else
Motor will round counter clockwise.
=========================
So have do you have code for the motor controller? Please post your the code for your motor codeshare.io/ and then once you post it, that website will have a URL (website address) and post it here.
Please use reply under this comment (please do not post new comment under the video) so your all your comments are together and easy to follow.
Once you posted your code, I will fix it so it can work with the reed switch.
Robojax -. Ok sir
Post code for motor control and I will help you.
Robojax :- sir i m trying to write code but stuck on nested if statement. Acctually i want to check light sensitivity by ldr n if ldr returns 1 then check another condition which is if (reed1=1 && reed2=0) then motor controller plays a roll to move dc motor clockwise n if if (reed1=0 && reed2=1)then motor controller plays a roll to move dc motor counter clockwise . But i wrote a code using nested if statement but isnt working.
i used the module relay with arduino and lcd 2*16 when the load connected to relay the lcd display strange symbols without load every thing well
Relay has nothing to do with the LCE1602. The error is somewhere else.
Hi can this be connected to UV-C light bulb? around 16W
it just turns ON and OFF a load. so load can be anything.
@@robojax I see, do you have a clear circuit diagram anywhere?
yes when you purchase my Arduino course from Udemy, all videos have circuit diagram bit.ly/rj-udemy
@@robojax instead of using the magnetic reed switch that you used, can i use the magnetic door sensor?
Can a very small magnet make the switch work?
small or large doesn't matter. Strength of magnet is important. You would have to try specific magnet.
been on your website the adds on top of the screen stops you from reading or looking for anything really annoying hence I left, very interesting clip do cheers
can you take the screen shot and share it it? When visiting the page, just press "Print Screen" on your keyboard, then visit this website snipboard.io/ and press paste it (Ctrl+V) and this website will make a page for it automatically. Then share the link back so I look at it. I am sorry for that.
The code is located in lesson # 18.
where?
how can i use 4 reed switch with one arduino for for doors?
just replicate and define 4 pins for input, 4 pins for output and 4 relays. on the same code. watch it more than one time so you learn.
Thank you brother. Your video helped me.
You are welcome. The best thank you for me is to subscribe to my channel. Thank you.
You explain really well🙂
I am glad you found it useful. I've got over 400 videos, check them out ruclips.net/user/robojaxTVvideos
do anyone know how to put this on water meter?
I don't think so.
Sorry sir but NC stand for *normally close* not a normally connected. And NO normally open it is currect.
Thank you
@@robojax don't mind sir
can u provide circuit diagram of all this
Sorry when I prepared the material for this video, I did not draw it because many components have not symbol in the drawing program. I will see if I can draw it. I will inform you once I did.
what if I want to use Reed sw as ip to PLC and at o/p i need to turn on bulb , as PLC operate on 24 v
Shokran . Thank you for the video :)
You are welcome.
Very good thank you
You are welcome.
goooooooooood job
Thank you.
Message:Hi friend, can U help to me about reedswitch for Arduino. I whant to build wind anemometer. I have arduino nano, reedswitch yust like on this video .
I tipe code for anemometer, but something is wrong, arduino cant red info from reedswitch.
My code:
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
extern volatile unsigned long timer0_millis;
unsigned long new_value = 0;
float RoundsSum=0;
float PreviousReading=0;
float CurrentReading;
float RPM=0;
float AirFlow=0;
int MeasureTime=6000;
void setup()
{
Wire.begin();
lcd.begin(16,2);
lcd.backlight();
Serial.begin(9600);
}
void loop()
{
for (int i=0; millis()
You have to test your code without LCD and just display the information on Serial Monitor. Then use LCD. This way you have smaller code to find . I can't figure this out as this was the first time I heard the word "anemometer" and I have no access to the device.