You need to make sure you have 'cut' the positive AC wire and not the neutral return wire - otherwise when it's wired up the relay assembly is 'always' live & you could get a nasty shock from it - maybe even die. Maybe place the whole thing inside a large tube of heatsink to avoid that.
@rrinquen2 жыл бұрын
I think I understand the video. It seems what I want, a way to (in effect, with a bit of added relay circuitry) ring a doorbell by having the computer send a momentary closure through the USB port. But I want Windows (Outlook, actually) to run it, automatically, with no manual intervention. Can the commands be sent by a Windows program, or can the command line be run automatically by Windows 10?
@faithlutheranchurchblackdu16782 жыл бұрын
Yes. Find running system commands from VBA in outlook.
@15KHz Жыл бұрын
Hi, I'd like to know how to make this work with Linux Distributions. As a first step I should confirm which Serial PORT is the one that is assigned to the USB Card, isn't iit. If it's as I said then I just have to send those hexadecimal data to the port to open or close, isn't it? Thanks for your help Greets from Chile, South America (Currently in Spring, October 2023)
@ajarivas72 Жыл бұрын
Hello 👋. I want to make it work on Linux too.
@yipsalanimich3215 жыл бұрын
You should make sure that you only switch the HOT conductor. The HOT conductor is the tiny blade at the plug side conductor. If you switch the neutral, yes it will work, but when the light is OFF it will be HOT and may cause electrocution. There are some electricians that do not understand the concept of HOT and NEUTRAL, but I can tell you for sure it matters.
@robojax5 жыл бұрын
Your assumption is valid when working with OLD tagston bulbs. New LED lights will now allow the the other wire when OFF to be LIVE (or hot).
@yipsalanimich3215 жыл бұрын
@@robojax When dealing with 120vac as in your footage. One side is HOT. If you switch the neutral, the light will still be hot regardless if you have an LED, halogen, fan toaster or any other device. So HOT as in "holy crap I got bit by electrical shock" not HOT as in "oh crap that light is too hot to touch"
@noesosa65202 жыл бұрын
I tried this video I even bought the relay and im sure I typed everything correct but I am not getting the relay light to turn on
@robojax2 жыл бұрын
if we assume you did everything correctly, then the code (register address) you need is different. contact the seller or store and get the code which is address for register in device.
@Stigorama2 жыл бұрын
This was very helpful for a project i am working on, so thank you very much! The only issue i have encountered is that the relay sometimes ignores on or off commands and only responds after repeated attempts. I’m thinking this is a hardware issue, but then it happened on two brand new switches. I’m frankly at a loss
@hockeyguy8202 жыл бұрын
I've had two of these relays go flaky like you describe, and then in a couple of weeks ignore all on or off commands no matter how often you repeat them. I gave up on those boards and am now trying the USB HID type boards that have a USB B connector on the board.
@mishatagavor2 жыл бұрын
@@hockeyguy820 how's it going with the HID trial?
@hockeyguy8202 жыл бұрын
@@mishatagavor : Solid so far. I recommend HID based boards.
@mishatagavor2 жыл бұрын
@@hockeyguy820 got a link to the ones you buy? so hard to sift through the cheap chinese stuff
@hockeyguy8202 жыл бұрын
@@mishatagavor : Look for ones with a USB B port. On eBay I bought "SODIAL (R) 5V USB Relay Module 1 Channel Programmable Computer Controller for O3".
@rickacton754010 ай бұрын
is there a unique identifier like InstanceId or DeviceId for the board that can be used to retrieve the COM port in code? like a powershell command to use the same board identifier to query what COM port it is connected to, through code? then you wouldnt have to re-program the COM port number if the computer turns off etc
@robojax10 ай бұрын
you try to read the com port and print all specs. See and compare it with other devices and find what is unique about it. I am sure there is specs that makes this unique so yo can identify it. On Microsoft website search for COM port properties.
@rickacton754010 ай бұрын
@@robojax ok thank you
@oldengineer464 Жыл бұрын
You shouldn't "tin" (add solder) to wires that go to screw terminals. Solder is soft and gradually squashes leaving the connexion a bit loose.
@robojax Жыл бұрын
may be you are right but every device that I look shows to have added solder on the path where higher current passes through. But I understand your concern and you may be right.
@brettandnathan3 жыл бұрын
Hello, great video. You mention you would include a driver but I cannot find it? My 4 port relay usb appears as a HID and not com port so I cannot interact with it. Can you help at all?
@robojax3 жыл бұрын
Hello, I just added the link to the CH341 USB driver.
@brettandnathan3 жыл бұрын
@@robojax thanks for adding the link. Sadly it still doesn’t create a usb serial port. Still sees it as a HID device.
@robojax3 жыл бұрын
Then it is has different chip like prolific or cp2104
@robojax3 жыл бұрын
Autocorrect has changed the chip to children 👶😂
@brettandnathan3 жыл бұрын
@@robojax haha its ok, still no further forward :( nothing seems to work
@runcycleskixc11 ай бұрын
The unit still seems available on Amazon as of Nov 2023, also in 2-, 4-, and 8-channel versions.
@robojax11 ай бұрын
please share the links.
@brianrasmussen93736 жыл бұрын
Thank You for this informative tutorial. It was just what I was looking for! Thanks!
@robojax6 жыл бұрын
You are welcome.
@saidalizadeh51436 жыл бұрын
Hi, thx for very usefull tutorial. I'm wondering about on and off commands strings. Where are they defined to be A0 01 00 A1 and A0 01 01 A2. Is it somehow standard commands for relays and product specific? I saw another tutorial for a similar product, where the commands were on= AFFF0101DF and off=AFFF0202DF. Are these commands maybe defined by the USB chip?
@robojax6 жыл бұрын
You are welcome. The command has been set in hardware by the manufacturer.
@voiceoftruth1O16 жыл бұрын
Everyday new tutorial. It's amazing. thanks
@robojax6 жыл бұрын
You are welcome.
@happyhartono20124 жыл бұрын
I have the simillar product, but with 2 channels. Do you know the code to switch each channel on and off? Or can you show us how you got the hexadecimal value to switch the relay in this video on and off?
@robojax4 жыл бұрын
I got the values from the seller store page. search AliExpress or eBay or Banggood , you may find the details.
@linkevin73972 жыл бұрын
if I want to Control the USB Relay in matlab is it feasible?
@johngadbois95614 жыл бұрын
Excellent demo...very helpful!
@robojax4 жыл бұрын
Glad it was helpful!
@ajarivas7211 ай бұрын
@@robojax Very helpful. This opens a new world of opportunities for me.
@gimhara13 жыл бұрын
Hi I have Tried your code with the same relay. But the bulb wont light relay test Bulb wont light up. (the 2nd red bulb). I used the code A0 01 01 A2 in SSCOM3.2. Can you help me please?
@danielherrerosfraile48274 жыл бұрын
Hello, thank you for this tutorial. I have the same USB Relay and works like your video. I have a question. The default status when you connecte the USB Reley to USB, is "closed". When you put the command 0xA0,0x01,0x00,0xA1 , then the USB-Relay is open. My question is, Its possible to do for the USB-Relay will open when the USB- Relay is connected to PC?. the same question with other words, Its possible to put the default staus to "open" instead of "closed" ?
@robojax4 жыл бұрын
You are welcome. Not possible. it is made like that. Unless you modify the module physically change the components.
@danielherrerosfraile48274 жыл бұрын
@@robojax thank you for you answer. I have putted a "bridge" in the relay and works correctly.
@LMVRCRacing4 жыл бұрын
@@danielherrerosfraile4827 can you tell me what you bridged to make this happen? I have ordered one and need it to do what you described but I haven't received it yet, so I haven't been able to study the board design.
@danielherrerosfraile48274 жыл бұрын
@@LMVRCRacing It was very easy, please see the imagen that I capture for you now. In my case for example use the USB TV connection, becasue wehn the TV is power on, the USB has energy and when the TV is power OF, the USB TV is desactivated: postimg.cc/JGYhcRf9
@danielherrerosfraile48274 жыл бұрын
The bridge is the white wire
@L3gion3r2 жыл бұрын
I am bad with tech. Can this relay control any types of switches? For example, I have a box that has a tactile switch. I would like to solder 2 leads from the switch to this Relay, so that I could control that switch from my computer. Is this possible?
@robojax2 жыл бұрын
Relay is just a switch and yes it will work . But you have to understand what a switch is.
@solarsynapse4 жыл бұрын
I am wanting something much simpler. Can it be made to close the relay with power to the usb port and open the relay with no power to the usb port? Thanks!
@robojax4 жыл бұрын
Here is video showing how to use relay module kzbin.info/www/bejne/a2m7iIl6o6dqidU and it just needs 5V at input. so you can use it without Arduino. So you can turn the relay from USB. See this page to learn how to get voltage from USB www.electroschematics.com/usb-how-things-work/
@stephenvoss38986 жыл бұрын
Hi, will this work with a batch file (.BAT) rather than a .PS1 file
@robojax6 жыл бұрын
if you know how to write the code, sure it will.
@sothakem83215 жыл бұрын
Is it possible turn on the rely in a timer ?, like turn it on after 5 minutes.
@robojax5 жыл бұрын
Possible. Do an online search for "powerShell time difference" or something like that.
@stanstrong46552 жыл бұрын
How is this relay at switching microphone signals - two in, one output?
@robojax2 жыл бұрын
I did not understand two in one out. to durn ON/OFF you just need to find the power wire or main wire. Cut it and you will have two tips, connect those tips to the relay. Make sure to find a wire if you disconnect it, it should disable the microphone.
@stanstrong46552 жыл бұрын
@@robojax Thanks for the reply! Some relays have two contacts that the third is switched between. SPDT. I found out that the relay good for switching higher current loads are not good for switching low power signals like mic inputs. I want to switch between two mics coming in to one output to the sound board using VBA code. Great video. Good demonstration.
@jaimestuardo46555 жыл бұрын
Where did you purchase that USB Relay?
@robojax5 жыл бұрын
You can get it from Amazon, eBay or AliExpress just search for "usb relay" and you will find it.
@hillebrandstreet18823 жыл бұрын
Is their a way to send HEX command via windows Command line to wifi Relay with out USB
@robojax3 жыл бұрын
You may look at this video kzbin.info/www/bejne/Z6u7nYltq9KAg8k and perhaps instead of touching/clicking on the browser, use command line.
@architgupta90096 жыл бұрын
my usb relay is being detected as human interface device , it's port is not showing in communication port even after installing the drivers.I Can only switch off or on the light by the software provided by company so how can i make it work from powershell script if it is not showing in Comm ports ? I ordered the usb single channel relay from Robu.in
@Dreadlocks2315 жыл бұрын
i also would like to know this
@delcuze4 жыл бұрын
I'm in the same case.. if you did find a solution please let me know. Google doesn't help.
@delcuze4 жыл бұрын
where did you find the driver ?
@najibarvia3 жыл бұрын
I just want to turn on and off monitor whenever depending my pc is turn on/off. PC is schedule to turn on and off based on time of the day. no need to press or control anything. how it be done?
@robojax3 жыл бұрын
that is very easy. search for task scheduling using powershell and you will get the command
@balazssonnevend45446 жыл бұрын
I had to change the ExecutionPolicy with this command as well: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@tomasstanislavsky82854 жыл бұрын
I have problem with not digitally signed. This work for me. Thanks.
@randalpetryshyn70725 жыл бұрын
Very Useful tutorial! Thank you. Can you show how your method can be used on a four channel ICSE012A ?
@robojax5 жыл бұрын
the method is the same. Each channel will have a pre-set code and manufacturer will provide the code. I will make video if I got a 4 channel module.
@muhammadosama33585 жыл бұрын
@@robojax is it any different for 8 channel relay module?
@stephenvoss38986 жыл бұрын
Hi, where can I find a USB driver for this unit that is compatible with Windows Server 2008?
@michaelninh24105 жыл бұрын
can you do exactly the same thing using Excel VBA? thanks
@robojax5 жыл бұрын
I am not sure if Excel can execute shell scripting. If it can execute the script, then yes.
@andrewg.41875 жыл бұрын
@@robojax Yes, Excel VBA can run Shell commands
@girdharikhoth73174 жыл бұрын
How operate in python by face recognition software if match to database then relay on and time delay off automatically for dc motors
@robojax4 жыл бұрын
Wow this is very interesting. Face recognition, Database, Motor Control. Raspberry Pi would be the best starting point.
@balthromaw63055 жыл бұрын
Fallowed line for line, under Windows 10 Enterprise. FAILS the program downloaded CAN control the relay (all 4 of them) since mine is a USB to 4 Port Relay which A0 = 1 A1= 2 and so on. But the script and setup in powershell does absolutely nothing
@saidleonardoucedaparedes60953 жыл бұрын
When I connect the USB relay to my computer it recognizes it as HID and not COM. How do I solve it?
@robojax3 жыл бұрын
find out what chip it has and install the driver. contact the seller.
@saidleonardoucedaparedes60953 жыл бұрын
@@robojax ¿Do you have the driver? I have the same as you
@L3gion3r2 жыл бұрын
same issue. no COM. What was the issue?
@happyhartono20126 жыл бұрын
Is there anyway to detect the state whether the device is ON or OFF?
@robojax6 жыл бұрын
No. Unless you create another variable, when sending command, store the state. then you can read it.
@StrsAmbrg2 жыл бұрын
Where did you get that 32-bits code to ON/OFF?
@robojax2 жыл бұрын
For the product page. Just search AliExpress for the product and you will find my store selling it. Check each and scroll down , I am sure you will find a few shown the code. Another way would be to use Bing or google image search
@themanisback99992 жыл бұрын
Where can I buy the module?
@robojax2 жыл бұрын
Just search for “usb relay module” on AliExpress . You will find so many then make sure buy one which shows the turn on/off codes
@sonny19776 жыл бұрын
very helpful tutorial, thank you
@robojax6 жыл бұрын
You are welcome.
@deepakyadav-kc3sg5 жыл бұрын
Sir, i'm beginner i want to sent AT command to GSM module which are connected with my PC by USB port by USB to serial converter, it is easy but i want to sent Command by ESP32 via PC. Can you give provide some code or solution? Is it possible that ESP32 send Command to PC & PC will fwd that command to GSM module?
@robojax5 жыл бұрын
I have not worked this with wifi. I am not sure.
@deepakyadav-kc3sg5 жыл бұрын
@@robojax Thanks sir for your reply
@rickdeckard10752 жыл бұрын
how do you identify (in code) the relevant com port?
@robojax2 жыл бұрын
Just google or Bing: powerShell usb porty
@hiddenfromyourview Жыл бұрын
Here's what I did: $usbComInfo = (Get-WmiObject -Class CIM_LogicalDevice | Where-object {$_.Description -match "USB-Serial CH340"}).Caption If ($NULL -NE $usbComInfo) { $port = (($usbComInfo -Split "COM")[1]).split(')')[0] $comPort = -join("COM",$port) ##...and now that we have the COMx port, we can just plug that last variable in to the USB com object: $robojax = new-Object System.IO.Ports.SerialPort $comPort,9600,None,8,one ## Place the rest of the code to turn it on or off here. }
@edwardjimenez48956 жыл бұрын
IC Station Product that page is for sale in USA or China ?
@robojax6 жыл бұрын
In China but they ship
@_xquadrix_90224 жыл бұрын
Can you say that the light turns on when you start the pc?
@robojax4 жыл бұрын
no. only when i receives the code from terminal, it will turn ON.
@andrewg.41875 жыл бұрын
Very helpful ... thank you very much!
@robojax5 жыл бұрын
You are welcome. For me turning appliances via computer have always been something interesting. When I wrote this code and got it ready I thought many people will like it. But it seems few people appreciate this. I am glad you found it useful.
@andrewg.41875 жыл бұрын
@@robojax It was a lot more helpful than some other similar videos. In fact I've now developed it as far as being able to turn the relay on & off by clicking on buttons on an Excel spreadsheet and getting a VBA macro to run the ps1 files.
@robojax5 жыл бұрын
That is great. Macros are very powerful tools to use.
@andrewg.41874 жыл бұрын
@@robojax Hi, Is it possible to detect the state of a relay (ie On or Off) ?
@leeclark57606 жыл бұрын
How do you install drivers for Windows 10? Where do you find them?
@robojax6 жыл бұрын
I believe my test is done on windows 10. You don't need driver. Try to update the driver using "internet search" or "via windows update" and it should work.
@balazssonnevend45446 жыл бұрын
I needed a driver for Win 10 64 bit. This driver worked OK for me: sparks.gogo.co.nz/ch340.html
@Oliver-bw6no3 жыл бұрын
thank you alot, that helped me alot!
@robojax3 жыл бұрын
Glad to hear that!
@edwardjimenez48956 жыл бұрын
good night bros I have seen in your videos that I have used several models of relay I have a project and I need to know if I can find it in amazon and I found this model ** DZS Elec 5V-30V 1 channel Wilde Voltage 0-24s Adjustable delay Relay card internal / external trip with timer Delay delay driving Circuit switch with USB to micro USB power line I am from the Dominican Republic if I buy it in amazon, they will give me the delivery in 5 days I want your suggestion about this relay if it serves me connecting it directly to my pc to open a door with an electric lock from my pc using the code that you left in the description of the video with this model DZS Elec 5V-30V 1 channel Wilde is for sale in amazon. thanks, I hope your answer
@robojax6 жыл бұрын
The door lock needs a switch to open, then you can use it. Send command from your PC and the relay will connect the switch. Here is my latest video showing your to control relay via USB with any Arduino. kzbin.info/www/bejne/fquvdJ6wjZqkadk
@edwardjimenez48956 жыл бұрын
If the lock has its switch to open, it will only have to connect the relay to the wires Send the command from your PC and the relay will connect the switch. Of that marera I will not have to buy any Arduino only the relay ??
@robojax6 жыл бұрын
That's right. you don't need Arduino. This device has the decoder.
@edwardjimenez48956 жыл бұрын
Thank you for your contributions that you gave me when the relay arrives, if I am going to need your help if I do not manage to put it to work
@scrapirontown8863 жыл бұрын
thanks a lot.very useful ^^
@robojax3 жыл бұрын
You are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
@chamodiwathsala59414 жыл бұрын
Sir how I give command to 16 channle usb relay module pls help. Sir
@robojax4 жыл бұрын
you have to find the value for all 16 channel. wherever you bought it, they should provide it and use the method I've shown here.
@abdietabrizi17236 жыл бұрын
Hi, could you please tell us how this can be done on an Android. Thanks.
@robojax6 жыл бұрын
I have a video to control AC bulb with Android kzbin.info/www/bejne/Y3ace2x7rcmNaJI
@abdietabrizi17236 жыл бұрын
Thank you very much. By the way, how can I send power on command to the USB relay using a C++ program? I appreciate your time.
@tomcoxe82004 жыл бұрын
Do you know where I can find a list of commands for the Ch340? I specifically want a toggle command, or a way to read the state of the relay.
@robojax4 жыл бұрын
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊.
@tomcoxe82004 жыл бұрын
@@robojax Just subscribed! thanks for your help!
@edwardjimenez48956 жыл бұрын
good night bros I got the relay DZS Elec 5V-30V 1 channel Wilde voltage 0-24s Adjustable delay Relay card Internal / external trip with timer Driving delay delay Circuit breaker with USB to micro USB power line I was aciendo what you are with the administrator of dispositiboy the same ice with SScom and it does not work like in the video and I do not work the reley aver if you can help me put it to work please by TeamViewe
@robojax6 жыл бұрын
Hi, your relay module doesn't need or use command line> it seems it might have USB to power it up. I have got another video on relay with timer: kzbin.info/www/bejne/iJu6iGekl7qsn9E please send me the link for the product you have purchased.
@professeurinfo8193 Жыл бұрын
script of powershelle to ead any device connected to the pc with usb port
@robojax Жыл бұрын
See sea you this video
@ace77094 жыл бұрын
I got Exception calling "Open" with "0" argument(s)"Access to the port 'COM9" is denied
@robojax4 жыл бұрын
please use the provided example from file. Then customize it. it will work. follow carefully the instruction.
@ace77094 жыл бұрын
@@robojax I will try again thanks for the reply
@siddutoravi76084 жыл бұрын
Hi i wnat this module
@robojax4 жыл бұрын
you can get it from eBay or AliExpress and perhaps Amazon. Just search for "usb relay"
@balthromaw63055 жыл бұрын
if anyone knows how to Link iSpy to a USB to Relay controller and have it trigger relays please post back
@muhammadosama33585 жыл бұрын
+1 Thank you very much!
@robojax5 жыл бұрын
You are welcome.
@mahenderp30992 жыл бұрын
Tq sir
@mathiasvanaken74736 жыл бұрын
Product not found...
@robojax6 жыл бұрын
I checked all links and non of them is dead. Which link you faced problem with?
@mathiasvanaken74736 жыл бұрын
Robojax The icstation.com-link doesn't work for me. But in the meanwhile I managed to find the product on Gearbest and ordered it there. Your video convinced me. I want to programme a school bell and your video convinced me that this solution is going to do the trick :)
@ICStation20136 жыл бұрын
Thanks for your awesome video project about our product. www.icstation.com/lcus-relay-module-ch340-intelligent-control-switch-relay-module-p-12488.html
@tomcoxe82004 жыл бұрын
Do you know where I can find a list of commands for the Ch340? I specifically want a toggle command, or a way to read the state of the relay.
@robojax4 жыл бұрын
You haven't subscribed to my channel. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊
@tomcoxe82004 жыл бұрын
@@robojax I did subscribe five days ago. Do you know more commands for this this device or are you trolling?
@tomcoxe82004 жыл бұрын
Do you know where I can find a list of commands for the Ch340? I specifically want a toggle command, or a way to read the state of the relay.
@robojax4 жыл бұрын
The commands are not in the CH340. it has been embedded in the controller. Each manufacturer will have different command.
@tomcoxe82004 жыл бұрын
@@robojax Thank you. OK, so do you know a toggle command for this specific usb relay? Or a way to detect the state?