DIY Smart Switch - Part 2 Motion Activated Relay

  Рет қаралды 88,648

byte sized engineering

byte sized engineering

Күн бұрын

Пікірлер: 134
@maheshbabu552
@maheshbabu552 4 жыл бұрын
All doubts solved in 1 video. Excellent!!
@48-inchlevel74
@48-inchlevel74 4 жыл бұрын
I loved the demo of EveryCircuit simulator at around 5 minutes.
@Aaku13
@Aaku13 6 жыл бұрын
Hey, love the video. Just some advice from someone who 3d prints a lot. You made your walls super thick. I probably would have done .5mm on each side maximum. This will save you tons of print time and filament.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Good to know, thanks! I'll have to experiment with wall thickness. I usually leave that on the default cura setting.
@utrutr6013
@utrutr6013 4 жыл бұрын
Music is kind of loud but great info and well presented. Great job 👍
@jacobkeller29
@jacobkeller29 5 жыл бұрын
I’m looking to do basically the same thing. I want to light up strips of leds hung under my kitchen cabinets, so they’ll light up the counter top when I walk into the kitchen. Would be excellent!
@mrnutsy1
@mrnutsy1 6 жыл бұрын
Like the design and information. Only issue is that the music is a little loud for the vocal levels on the video. 😬 Keep making the videos! Like what I’ve seen so far!
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
My apologies, I finished editing really late last night, and should have been more careful with the volume levels. Thanks for the feedback, and thanks for watching!
@therealb888
@therealb888 5 жыл бұрын
Much better than the first video, liked!
@ammaribrahim5756
@ammaribrahim5756 6 жыл бұрын
you're logical and awesome....
@m3rdpwr
@m3rdpwr 6 жыл бұрын
When you were testing the threshold of the relay, I was looking around my office to see where that clicking was coming from. hahaha
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
You're welcome ;-)
@maryannemacalinao8376
@maryannemacalinao8376 5 жыл бұрын
Thank you so much for a very informative video about using relay module
@paulmcgrath2000
@paulmcgrath2000 6 жыл бұрын
Very clear and informative, keep em coming.
@kelvinkersey5058
@kelvinkersey5058 6 жыл бұрын
Really really good and clear, thanks. (too much loud music). I'm working on switching a 12v valve using a normally closed relay to cut off the water from the water butt when the bucket is full. Next I want to make bird scarers to hang in the fruit trees. Any thoughts would be appreciated.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Those sound like great projects! See if you can document your process and share with others!
@chrisgicky2215
@chrisgicky2215 6 жыл бұрын
Thanks for taking the time to do all this
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for taking the time to watch and comment!
@itlife4555
@itlife4555 5 жыл бұрын
Very valuable knowledge for me to learn about relay.
@Sabre00
@Sabre00 6 жыл бұрын
Love the design but to make it more sustainable you can put a small AC to DC power supply inside the enclosure and have that use the mains power to power that the PIR and the relay (low side). You can put a main switch at the back for the AC to the power supply) and one at the front ( as you have it for the DC to the PIR and relay. That way you don't have the power supply on all the time if you are worried about power consumption.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
That's a great tip. I considered doing that, but wanted to keep it simple for anyone wanting to make one. Do you have any recommendations on an off the shelf transformer/regulator? In the past I've just bought really cheap USB wall chargers on ebay and ripped them open to steal their AC/DC power supply. I would like to find one that is project friendly.
@Sabre00
@Sabre00 6 жыл бұрын
A simple off the shelf phone charger AC to USB block. They are 5V @500mA or more which is more than enough to power the PIR and the relay. Usually the square blocks have a low profile circuit that can probably squeeze into your battery pack part without any print changes.
@ChristopherGraham13
@ChristopherGraham13 Жыл бұрын
This is something I want to see. I want to do an in wall light switch with one of those power supplies so that I don't have to change batteries. My wife keeps losing the timer for the holiday lights and I wanted to convert the plugs out there as well. For things like this plugs, switches, outlets, anything that I could tap into the mains and make it permanent I would like that option. I don't want to plug in my light switch.
@WKellyJW
@WKellyJW 6 жыл бұрын
Thank You for the Videos. I have already increased my knowledge in just a short time by watching your videos. I always wondered why someone would need a 3D printer, now I see how useful it is. I always used a roll of electrical tape to seal my projects. I am working on a rear window defroster in my truck since it did not come with one. I am going to try it using Conductive Copper Foil Tape 1 inch for the BUS and 3mm for the lines.I plan on using a NE555 DC 12V Delay Relay shield Timer Switch Adjustable Module to turn the power off after about 5 minutes. Do you have any advice
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for watching! Your defroster project sounds cool! Let me know how it goes.
@m3rdpwr
@m3rdpwr 6 жыл бұрын
Question, since you were using this to control A/C power, did you consider building a small power supply to fit in the case? (Or take an old USB charger out of it's wart case.) You could have utilized the A/C Power in the box and avoid the batteries. Just a thought.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
This is a great suggestion. I did consider both of those options. In the past I've ripped apart old cell phone chargers to get the 5V AC/DC power supply but this was a messy solution. Since this video I've found off the shelf 5V AC/DC power supplies that should work well for projects like this.
@svenbosma5704
@svenbosma5704 5 жыл бұрын
@@bytesizedengineering I am trying to get my light switch to work via wifi and then homekit. This project is kinda finished but one thing, i have an esp8266 hanging out of my light switch, powered by a phone charger plugged into an outlet. I want to get the esp8266 in the wall but i dont know if it is safe to use my ripped appart phone charger and solder the mains onto it. Is it safe for me to do it, can my house burn down and is this a good overall solution?
@SachinKumar-js8yd
@SachinKumar-js8yd 5 жыл бұрын
Great video.. Nice explanation. Keep making such videos. Subbed!!
@Mr_Gadge
@Mr_Gadge 6 жыл бұрын
Loved it thanks, but please, lose (or lower) the music! In some parts it's as loud as you. I don't need entertaining I need educating lol :) thanks again.
@leytonjay
@leytonjay 4 жыл бұрын
This is brilliant. I have a PIR I can use with a relay, but I also WiFi relay I want to use with my Google Home, any tips? Thank you.
@JeffKirkley
@JeffKirkley 6 жыл бұрын
Nicely done! Very impressive. Really liked the 3D printer and your approach of making this!
@michaelhenderson5098
@michaelhenderson5098 6 жыл бұрын
Enjoyed the video (except for the music). Now get out there and design the auto start for your dust collector. I could use one...or two. One for the miter saw, and one for the CNC. Both have shop vacs collecting the dust and chips. Currently I use a simple remote to start the shop vacs which isn't too cumbersome, but auto is better in my opinion! :-)
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for the feedback! I'm trying to find time to work on more of these projects. The shop vac auto switch is near the top of my list. I just got a new table saw that I want to add dust collection to. Stay tuned, and thanks for watching!
@varunsv5891
@varunsv5891 4 жыл бұрын
Absolutely Loved it!
@taufiqlee6144
@taufiqlee6144 6 жыл бұрын
Hi Zak, thanks for the video. However, I'm a bit confused on how the relay works. You mentioned that the relay will remain close when the voltage output from the sensor is below 3.9V. So my question, is that not the right outcome if what we are trying to do is whenever there is a motion detected, the sensor will output 3.4V and causes the relay to close hence completing the circuit and result in the light being switched on? Why do we still need the mosfet? Sorry for the lengthy questions
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Good question, I tried answering this with the graphs in the video starting at 4:00. You're exactly right, when the motion sensor detects motion, it outputs 3.4V which is low enough to turn on the relay. However when the motion sensor stops detecting motion, it outputs 0V, which is still low enough to turn on the relay. In this case the relay will always be turned on, and never turn off! The motion sensor will just keep sending either 0V or 3.4V which is never enough to turn off the relay. See video at 4:15. In order to turn off the relay, you need a signal above 3.9V. So you need a signal that switches from 0V to 6V for example. I need the relay to turn on when motion is detected and turn off when motion is not detected. The mosfet fixes both of these problems. It translates our 0V-3.4V signal to 0V-6V and inverts the logic. I hope this makes sense.
@whc2001
@whc2001 6 жыл бұрын
The relay is low-level triggered, which means every voltage below 3.9V(logic LOW for relay module) will make it turn on (close the relay). However the PIR sensor is high-level output of 3.3V, which means it will output 0V(basically GND, logic LOW level for the PIR module) when it's not triggered, and output 3.3V(logic high level for the PIR module) when it's triggered. As their logic level definition of HIGH and LOW is different(the PIR sensor is 3.3V logic while the relay module is 5V) and their enabled level is different(relay is LOW enabled and PIR is HIGH enabled), there must be some convertion. Sorry for the long and unprofessional answer and hope it can help you understand further.
@fairjusticeguy5648
@fairjusticeguy5648 3 жыл бұрын
Hi Zach, how do you run the wire to test the relay with the variable power supply and the oscilloscope. I have the Rigol Dp832 power supply and Rigol Ds1074z. The leg that is connected to the resistor and Vcc, is it the drain leg? and the leg to out is the source leg? Thanks
@keithryant5779
@keithryant5779 6 жыл бұрын
Very Nice!
@relaymatik5984
@relaymatik5984 5 жыл бұрын
You can use latch relay Like i did i install in bathroom if you enter in bathroom the light on and if you go out light turning off i set time in 3seconds its cool
@Lionheartgrudge
@Lionheartgrudge 6 жыл бұрын
Thanks for this awesome video. I have a really quick question, relay doesn't depends on the frequency, right? Or do they come with a frequency rating?
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
I'm assuming you're talking about the frequency of the AC current coming out of the wall (50Hz or 60 Hz)? No, they don't usually have a frequency rating.
@Lionheartgrudge
@Lionheartgrudge 6 жыл бұрын
Thanks. I figured. This video helped me so much. Keep up the good work.
@brightgarinson3099
@brightgarinson3099 4 жыл бұрын
6:15 Is that little piece your soldering a resister? And if so is it required?
@allcartooninhindi7640
@allcartooninhindi7640 6 жыл бұрын
I use is on my Almira to turn on the light when I open.
@adityaharlalka9173
@adityaharlalka9173 5 жыл бұрын
hats off to u ..i love with ur video
@amtpdb1
@amtpdb1 6 жыл бұрын
It would be best to cut the hot side of the extension cord wire as you would with any switch. Thanks for the video.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for the tip, I actually made sure I cut the hot side of the extension. The extension cord I used has ridges along the length of the neutral side to help with identification.
@francispoblete9660
@francispoblete9660 4 жыл бұрын
It would be nice to see this integrated into an internal clock of a vehicle to turn on a led emblem for a vehicle. When you drive your car at night, it would light up the led emblem on the front or back via relay.
@genesams993
@genesams993 6 жыл бұрын
Awesome vid!
@jalpapatel1510
@jalpapatel1510 6 жыл бұрын
Awesome video. :)
@gadflyberlin1
@gadflyberlin1 5 жыл бұрын
Thanks for the great videos! I am not sure if the previous responser is correct. The MOSFET to invert the logic might be what I need. I thought I could use the NC and NO to solve my light triggered relay. I have a relay to close the door buzzer for my building. The relay has an optical sensor taped to a screen of an old phone. Idea being: friends want into my building, I am not home, they call a number and the building, door is open. Door should be open as long as the screen on the phone is lit. Problem being, if the relay has no power, the normally open is closed, only with power is NO open....all fine.....phone call lights screen, door buzzer circuit closed all fine ...EXCEPT.... if my 5v supply to the relay dies (USB transformer...they do die) the circuit is closed and the buzzer will be buzzing permantently. Not good. Will likely put a sonoff relay AFTER the optical relay. there has to be a simpler way. Free accomodation in Palma de Mallorca if you can help me.
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
Sounds like a cool project! Good luck
@gadflyberlin1
@gadflyberlin1 5 жыл бұрын
@@bytesizedengineering since discovered IFTTT. Missed call from guest telephone number ID will trigger Sonoff in inching mode (3seconds). Only the caller ID from the guest will open the door, when I remove that number from the trigger, they no longer have access. I love the Sonoff 4ch and 12v SV switches since they allow inching mode and have NO/COM/NC relays as opposed to the standard Sonoff switch. Thanks for your inspiration.
@electrosync
@electrosync 4 жыл бұрын
2:19 Mmmmm, that slo mo action...
@romkaizeris
@romkaizeris 5 жыл бұрын
Hey, Zak, I'm thinking of creating SonOff type switch that would have a physical button (possibly touch type), motion (PIR) sensor and WiFi switch all together. What do You think of this challenge? :) BR, Romas.
@Ali_zee_x
@Ali_zee_x 6 жыл бұрын
Inspiring
@jacobkeller29
@jacobkeller29 5 жыл бұрын
Is that the Anet A8 3D printer? That’s what I’ve got. I’ve been learning fusion 360 by watching Lars Christensen. He gives live tutorials, and has lots of great videos in his library to learn from.
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
Yes, it's the Anet A8, I did a video about it as well. That's great that you're watching Lars for some Fusion tutorials! He's really helpful, I've watched lots of his videos. Good luck!
@spaceagemonkey8451
@spaceagemonkey8451 5 жыл бұрын
do you think if I use arduino to control the PIR sensor and hook it up to a light (connected to a relay) i would avoid having to go through all that complicated procedure of soldering other micro components to my sensor?
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
Yes an Arduino could absolutely be used to do the same thing. I wanted the challenge of not using an Arduino. I'm glad you're thinking about other ways to do this, that's always cool to hear!
@lucky6147
@lucky6147 4 жыл бұрын
Please make a DIY on RFID based garage door opener which opens or closes for only the given car
@bytesizedengineering
@bytesizedengineering 4 жыл бұрын
Wonderful suggestion. I will put that in my project idea list!
@0el0baku0
@0el0baku0 6 жыл бұрын
How much time does the AA batts will work? I was thinking to do a project like this for a walk-in closet lights
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
The batteries should last quite a while. The more time the relay spends turned on the more power is being used, and the sooner the batteries die. You could use a cell phone charger to plugged into the wall to provide power instead of the batteries. That's what I would do for a more permanent installation
@arrowstheorem1881
@arrowstheorem1881 5 жыл бұрын
Cool channel !
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
I'm glad you like it!
@grannyspeachtea7764
@grannyspeachtea7764 6 жыл бұрын
The logic part completely flew over my head. And that damn music in the background. Appreciate your effort. But could you explain better the Logic gate etc part of this for NooBs like me?
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Digital electronics use 2 different voltages, usually zero volts and 5 volts or whatever the battery or system voltage is. These two voltages are used to send on/off, high/low signals. Some devices are activated with a low signal and some are activated with a high signal. Sometimes a device produces a high signal when you need a low signal. In this case you need to invert the signal to make it low. That's what I needed to do to get the motion sensor to send the right logic level to the relay. Without this "inverter" the relay would do the opposite of what I wanted. Hope this explanation helps!
@azimalif266
@azimalif266 5 жыл бұрын
Isn't there a jumper on the pir sensor to switch between the on or off trigger?
@pzb4
@pzb4 6 жыл бұрын
interesting video. thanks. i'd like to hook this to a handicapped door switch to automatically open doors when someone walks toward it.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
That is a perfect use for these PIR motion sensors. Let me know if you implement this, I'd love to see it.
@pzb4
@pzb4 6 жыл бұрын
Can you tell me what is the little gold part you're soldering on at 5:59? is that in my official arduino kit or something I need to buy? i don't see anything like it in my kit. is the 9v battery adapter ok to use or should i get the AA battery adapter?
@veseloiu
@veseloiu 3 жыл бұрын
Actually, my understanding is that the relay turned ON with voltages ABOVE 3.9V, and it was OFF, with voltages between 0 V and 3.9V so the relay would be OFF all the time, NOT ON OR, where did I get it wrong? A relay with no power applied to it, (0V) is OFF. A relay with not enough power applied to it (3.3-3.4 V) i.e. below the voltage threshold is still OFF and a relay with enough power applied to it (i.e. above 3.9V will turn ON (For clarification, I am not confusing power with voltage but the threshold is in volts , as the relay does not use that much power anyway So, I think that your diagram at 4:19 and the subsequent comments that the relay will turn on with any voltage below 3.9 V is wrong. The relay will NOT turn on with any voltage below 3.9 V that is the relay coil attracting the blade. The relay will normally have three contacts, one is common and then one is NO (normally OPEN) and one is NC (normally CLOSED) When you power the relay with ABOVE 3.9 V, the relay will turn ON and the NO contact will become CLOSED /linked to Common and the NC contact will become OPEN (disconnected from the common)
@randomyoutuber4500
@randomyoutuber4500 3 ай бұрын
someone with electronics knowledge pls explain this... Why do we need a MOSFET and all those ? if we just amplify the signal to around 4V and use the 'NORMALLY OPEN' port with the common, switch will be closed when the signal gives a 4V & Switch will be opened while the signal gives below 4V. that way you don't have to deal with that reverse logic. I think there was a reason why you didn't do so. if someone knows it, pls explain...
@dougneel1193
@dougneel1193 4 жыл бұрын
Great Vid! Can you help with a RV control project of mine? Love to here your thoughts? Take care,
@nimraaslam6760
@nimraaslam6760 6 жыл бұрын
hi sir, i want to On and off power supply to arduino automatically using relay is that possible?
@cww.2051
@cww.2051 6 жыл бұрын
What amperage does this support again?😁
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for the trolling CW, I guess that's what friends are for!
@lostspace5811
@lostspace5811 5 жыл бұрын
Hey would it be easy to switch the light off when the sensor gets triggered?
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
I answered your question in my reply to your other comment on my other video. But here it is again: That sounds like a cool project! I see that you found my other video showing the PIR motion sensor. I would start with something like that and connect it to the normally closed terminal. Good luck!
@lostspace5811
@lostspace5811 5 жыл бұрын
@@bytesizedengineering thanks i looked up relay wiring and yeah i get the different wiring to normally c or o thanks. Glad it is easy :)
@therealb888
@therealb888 5 жыл бұрын
Link to the music tracks used in both your videos on this project please?
@itlife4555
@itlife4555 5 жыл бұрын
I still don't understand The electrical circuit between Relay and the sensor. I need to check again.
@protektosafe
@protektosafe 6 жыл бұрын
FWIW, we don't watch your videos to watch your soldering technique. I would recommend you double the speed at that point. If people really want to watch that part closely, they can slow the speed to half with the player. ------- A suggestion of course. I also suggest you break out some parts, such as 3D printing a cover. This will give you extra material at no extra cost. It also give more people a reason to come. You then get electronics, home improvement, & 3D printing.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for the feedback
@jacobkeller29
@jacobkeller29 5 жыл бұрын
Instead of using batteries to power the sensor couldn’t you use a wall wort that produces the necessary voltage. I think that’d be a more permanent solution
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
That's certainly a good option.
@donutactual8887
@donutactual8887 6 жыл бұрын
Can you show us how to connect to a raspberry pi zero from a distance using another raspberry pi. For example I want to control a raspberry pi zero from 5 miles away
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
I would connect them to the internet. You could run a web server (Samba) and have the other as a client.
@Lionheartgrudge
@Lionheartgrudge 6 жыл бұрын
I am trying to do the same. I am gonna use an IoT to control the switch manually and remotely. They are really cheap and there are tons of resources on how to use them.
@iamalantam
@iamalantam 6 жыл бұрын
hi your amazon affiliate link is not working can you provide list of items to purchase?
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
I'm sorry the links aren't working. I'll try to fix that ASAP.
@peter-e2q
@peter-e2q 5 жыл бұрын
Uses...? For me, to trigger something scary in my loft when a mouse pops in at night!
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
That's a great idea!
@RSuarez66
@RSuarez66 6 жыл бұрын
What mosfet did you use?
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
I think I used a 2N7000. Very common, should be easy to find on eBay in a pack of 10.
@lostspace5811
@lostspace5811 5 жыл бұрын
How long does it stay on?
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
Since there is no microcontroller (like an arduino) the only way to adjust the time is right on the PIR sensor. There is a potentiometer that controls the delay time.
@allinone555666
@allinone555666 5 жыл бұрын
what transistor you use npn or pnp?
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
I didn't use a bjt, instead I used an N channel mosfet.
@kiddybuddy1601
@kiddybuddy1601 3 жыл бұрын
I am a beginner. Any N channel MOSFET will work?
@vikramodedra4351
@vikramodedra4351 6 жыл бұрын
Nice work , would share 3d printer file, I don't have 3d printer so can order it
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
I normally would share the 3D stl file, but this was a really rough design. If I get around to polishing it up, I will share it with you.
@jay-tbl
@jay-tbl 5 жыл бұрын
Why don't relays activate when you put in voltage and deactivate when you have no voltage, not the other way around? Seems counterintuitive
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
The coil in the relay behaves exactly as you said. Most of the time these little relay modules use a transistor to drive that coil and depending on what type of transistor they use (NPN, PNP, N channel, P channel) the logic to turn on the transistor will be inverted.
@thomasedonovan
@thomasedonovan 6 жыл бұрын
Zak, get some safety glasses!
@drew2308
@drew2308 2 жыл бұрын
Considering using this to trigger a fog machine for 10 seconds once motion is seen.
@sharank
@sharank 3 жыл бұрын
Bit of constructive criticism, that rock music was very distracting and made it impossible to focus on the instructions
@eduardoquiroga1494
@eduardoquiroga1494 4 жыл бұрын
this whole time I thought was going to make something with a scream activator when i walk i to the room the lights turn on
@rmhutchins7
@rmhutchins7 6 жыл бұрын
SUGGESTION: Get rid of the annoying background noise (music ?)! You have too much information to offer -- don't make it hard to understand you.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for the suggestions. It's always hard to balance how much technical information to get into. Some viewers want a lot of technical info, while others get overwhelmed by any technical info. It's something I'm working on finding the right balance.
@aniszed3641
@aniszed3641 5 жыл бұрын
pleas sir can you send me circuit diagrame ? tnx
@bytesizedengineering
@bytesizedengineering 4 жыл бұрын
Sorry, I don't have one for you. I try to document everything I can on my website, but this one didn't make it on there.
@NeverStopSeeking
@NeverStopSeeking 6 жыл бұрын
Can not believe you do not know that relays like that one have a normally open and a normally close output! Would have eliminated the need to test and make the new circuit to use it!
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
Thanks for the feedback. I'm fully aware that relays have NO and NC terminals, in fact I mention them in part 1 of this series. There are two reasons why I can't use the NC terminal for this project. First, as I mention in the video the output of the motion sensor ranges from 0 to 3.4V DC. It doesn't have a high enough logic level to activate the relay, if I were to directly connect the motion sensor to the relay, it remains closed all the time even though motion is being detected. I have to have a signal that changes from 0 to some voltage over 3.9V. That's why I used a 2N7002 N channel mosfet to get an inverse 6V signal out of the 3.4V motion sensor output. The second reason I didn't want to use the NC terminal is the fact that this is battery powered. In order to turn off the lamp (the state it would be in 95% of the time), I would have to energize the coil which would run down the batteries much quicker. The coil would be draining the batteries most of the time just to keep the lamp off.
@trentwiewel2456
@trentwiewel2456 2 жыл бұрын
@@bytesizedengineering great design! for a while I was wondering why you didn’t just use a transistor to amplify the 3.4 volts to get the relay to switch from NO to closed. But that would of taken more components than your design that used just three. Thank you for sharing
@AShadeOfYou
@AShadeOfYou 6 жыл бұрын
Zac is there a private message here on YT? I couldn't find one and I wanted to ask you something.
@bytesizedengineering
@bytesizedengineering 6 жыл бұрын
I have a contact form on my website www.bytesizedelectronics.com/aboutcontact/ or you can email business inquiries to contact(at)bytesizedelectronics.com
@Olleroy
@Olleroy 5 жыл бұрын
and the code!!!
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
There is no code in this build
@AmmarTee
@AmmarTee 5 жыл бұрын
Music is too Loud...!! and Unnecessary .
@stevengray188
@stevengray188 5 жыл бұрын
I would have appreciated not having the distracting music as I find it difficult to concentrate on instructions while being brainwashed by music.All I can remember now is ding ding ding ding ect. I am a male who can only concentrate on one thing at a time . Great video other wise.
@bytesizedengineering
@bytesizedengineering 5 жыл бұрын
I'm still learning how to make/edit videos, thanks for your patience. If it's too bothersome, you don't have to watch the video.
@toldt
@toldt 5 жыл бұрын
I can't hear what you're saying because of the damn music. Get your priorities straight.
Passive infrared motion sensors: a two-bit camera powered by crystals
16:13
Technology Connections
Рет қаралды 778 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 29 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
How to make a DIY Smart Mirror
15:22
Wicked Random
Рет қаралды 360 М.
Using smart relays in your home
8:43
Home Automation Guy
Рет қаралды 171 М.
RFID Locks are way too easy to "Hack"! Let me show you!
11:41
GreatScott!
Рет қаралды 1,3 МЛН
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 424 М.
This Smart Home Sensor Blew My Mind! 🤯 mmWave
11:06
Smart Home Solver
Рет қаралды 1 МЛН
Home automation that's private and local?! (Home Assistant Yellow)
19:49
DIY Home Security - ON A BUDGET!
9:12
DIY Perks
Рет қаралды 5 МЛН
DIY Smart Switch - Part 1 how to use a relay
8:02
byte sized engineering
Рет қаралды 642 М.
Custom Cyberdeck For (Legal) Satellite Hacking
20:12
saveitforparts
Рет қаралды 1,3 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37