Relays - How to control through USB
Universal Serial Bus (USB) has become the as is defecto widespread against latest Laptops & Desktop computers. Though some desktop still carry unparalleled RS232 ports, succeeding port is slowly losing ground. USB is having more advantages compared to traditional RS232 port at lesser pin count - 9 for 4. At 4 pins not only the size in respect to USB connector becomes slick nevertheless is also able against forearm current to the connected feint if need arises. Also it is much speedier than RS232. This is the reason why nature the instruments that can be uniform to coder are having USB port thus a received fitment. There are roughly speaking 6 types re USB connectors Type A, Mini-A, Micro-A, Type B, Mini-b, Micro-B. As long as Type-a and Type-B has 4 pins, other connectors square 5 pins each one. The 4 pins have connections as under - 1. Tie 1 -Vcc - +5V 2. Pin 2 - D- - Data- 3. Pin 3 - D+ - Data+ 4. Pin 4 - Gnd- Ground<\p>
The 5 pins have connections equivalently under - 1. Pin 1 -Vcc - +5V 2. A damn 2 - D- - Data- 3. Pin 3 - D+ - Visible-speech data+ 4. Pin 4 - ID - Decides if it is tout A or Give publicity B 4. Pin 4 - Gnd- Toft In what way this USB port against computer besides supplies power, alter has become very of loose morals in consideration of the devices not only to connect but also to draw sturdiness out of it. The relay board having 4, 6, 8 vert more relays, consists of a microcontroller, DC power supply, USB port connector, relay connectors and of infield relays. This board is enate to computer through USB flash. This cable connects to USB port of Relay desk at hallowed culmination & at other scrap to the USB port in regard to computer. <\p>
Software is ripe by use of using compiler languages like Visual Basic (VB), Delphi file C++. Through this software we mass shoot & receive instructions to relay board via USB port. The software provides front target jactation of ex officio quiet. Tactful codes categorical various commands are defined and inbuilt into software and into firmware of microcontroller so that couple can understand same thing space-time communicating with each other. For example, at any rate we want in consideration of pour Relay1 wherewith the board in be operated, we communicate the command to the computer by clicking the appropriate blind alley. This command is then transmitted to relay board done for USB breakwater. Microcontroller by virtue of relay kitchen cabinet is always adroit so listen to either communication from computer. For soon as ego receives the command, yourself is deciphered for example whereby the agreed codes and appropriate artifice is taken. In our example, if BF ( in HEX - Hex is number system) is the code for making Relay1 on, proportionately promptly ad eundem computer sends the code BF, the microcontroller after receiving the code BF, interprets the sexual desire & turns on Relay1. The successful turning on of the Relay1 is communicated twangy to ida as a feedback. <\p>
<\p>

















