SainSmart USB Eight Channel Relay Board for Automation - 12 V
Score By Feature
OveReview Final Score
Product Description
Questions & Answers
The same issue occurred when I tried to use Matlab. Next, I used APIs to write my own mtex function. The issue has been resolved. There is a problem with the drivers available through the Web.
There is a sample tool you can download from them that controls it via a GUI. There is no command line tool that I am aware of. In my experience, a basic programmer should be able to make you a command line tool since I was able to integrate their commands into my own platform.
My understanding of your question is a bit hazy. Relays are found on eight of this card. Three screw clamp terminals exist on each relay, one which is normally open, one which is normally closed and the third which is the common terminal. It is therefore possible to wire our device(s) to any or all of the relays in either normally open or normally closed position, as we wish. I hope this helped you understand.
Normally, you would need a computer to use it. A timer or state programmable feature is not available on this unit. You control it with a computer button, and it's more or less like a light switch.
Selected User Reviews For SainSmart USB Eight Channel Relay Board for Automation - 12 V
You can help by looking at some code in python. Despite the need for a driver, the device was recognized by my computer without any issues. Using Python 3 as my scripting language. I tested it with 7 and it should work as follows I have imported serially
I have then imported controller=serial. COM10 means serial("COM10", timeout=1, write_timeout=1)*time. Print(Controller if is_open).
There is a great little board out there. It is a clone of the Denkovi board and it does work with early versions of their software (later versions work with Normally, I would have given this board 5 stars, but Sainsmart's website documentation is really lousy and wasted many hours of my life. None of their examples worked with the software I am using. The workaround that worked for me was as follows, but it may differ from yours There is a need for the board to receive the decimal value for the 8-hole The bit binary number is 32 bits. A relay is represented by each bit organized as LSB, where the number of bits is the state of the relay (0 is off, 1 is By using this code, for example, relays 8, 4 and 1 will be turned on. The others would turn off as well. This byte, 137, is asked to be given a decimal value by the relay board.
His review is here. Another reviewer reported that the Hex FF turned on all the relays, and the Hex 00 turned them off, but the values for the That was a nice hint, since the binary value of FF is 11111111, the decimal value of 255. The digit 00 is the same as the digit Hence, if you send the value 6, it may appear random that relays 2 and 3 turn on and the others do not - for example, if you send 10 you get the value 6. You sent 00001010 in binary. However, it's not clear what it means in binary. My hope is that it will help others save some of the.
To use this device with my FlexRadio 6500, I bought it prior to switching peripheral devices. Basically, you can plug the USB bit cable into the 6500 and the device will automatically begin to work. my manual antenna switch box to utilize this, and now my FlexRadio controls the antenna selection automatically based upon the band I'm using. Since it appears to be using a real FTDI USB to Serial converter, finding it in other applications should not be an issue. If a knock was detected, the flex would not have recognized it I'm not online.
Users of this don't need to have experience with USB programming in order to use it for most applications. You must be familiar with the basics of serial interfacing. As a standard serial port, this will be recognized by your computer.
You have to translate the switches to binary ( 10000001 for example would be the first and last relay on and the others off) in order for this to actually work. Next, you need to translate that binary back into In the following code, we are converting and sending a building in VB 2017 if temp is greater than 1 If the value is "0" then If Next Return Dec End Function
Sub buildbinary()
bincode = "" If Switch1 is False then, Bincode = bincode and dec In other words, "0"
Else, bincode = bincode & If Switch1 = False Then swap 2
If Bincode = Bincode & If Switch2 = False Then swap 2 In other words, "0"
Else, bincode = bincode & If Switch3 = False, then bincode = bincode &
If '1' End If, then
In other words, "0"
Else, bincode = bincode & When A = FALSE then Use the Bincode = bincode & If A = FALSE, then Use The Bincode & In other words, "0"
Else, bincode = bincode & Is Switch5 False Then
bincode = bincode End If
If Switch5 = False Then
else In other words, "0"
Else, bincode = bincode & Insert "1" here, then if Switch6 is False then if Bincode = Bincode and the end If statement. In other words, "0"
Else, bincode = bincode & If "1" is false, then End If
If Bincode = Bincode &ndash If Switch7 is true, then End If In other words, "0"
Else, bincode = bincode & In case Switch8 = False, then
bincode = bincode and
End If In other words, "0"
Else, bincode = bincode & Compose COM port name as It's set to open SerialPort1 and is called Open(). Then write the data to SerialPort1 using the following code Write(data, 1, 1)
It might help if you read this.
Apparently, it's possible to get it working on a Mac with Catalina (and possibly Mojave), but not on a Mac running Mac OS X because Mac OS X doesn't allow you to I get the error after sending 0xFF to the Windows executable, but the "send 0xFF, channel, state" approach does not If you want to use it with Linux, you can Libraries such as libusb are also available. The coils of the relays are operated by a 12V source, which poses a significant problem Although this is good in some situations, if you have a load that produces significant transients (e. If you use two relays), then you may fry one or both of the relay drivers or From the USB side, the device is still recognized by the computer, but it does not act like it should (nor do the tally LEDs light up). Even the terminals on the relay don't tell you which one is which).