Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Control Relays need guidelines

Status
Not open for further replies.

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Hi friends;
I am new one in this field. I want to control 10 relays through serial or parallel or usb port. I read many articles but still confusing. I have a laptop with USB ports no D9 type serial port no parallel port in it.
Friends Kindly guide me what can i do and how i achive this task. I want to design the software in VB 2008.
Please help me in this issu.
Regards
 

john blue

Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Activity points
4,749
If you want to use serial then you need ftdi chips to convert from usb to serial. USB port can also be used for HID, Serial but for that you have to deal with software, eliminating the ftdi chip. :) In order to control the relays you need to control it using transistor to externally power it up :)
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Hi friends;
Is it possible to control 10 relays with serial port as u suggest?
how if u give me any link for how i complete this task i appriciate u and very thankfull.
Regards
 

djsfantasi

Advanced Member level 4
Joined
Mar 14, 2010
Messages
107
Helped
20
Reputation
40
Reaction score
19
Trophy points
1,308
Location
Boston MA
Activity points
1,931
Google "Serial Relay Controller" and you will receive many links that you should find useful. There are commercial products, kits with full schematics available, as well as articles on using a microcontroller and serial port to control relays...
 

eziggurat

Full Member level 6
Joined
Feb 15, 2002
Messages
324
Helped
30
Reputation
62
Reaction score
19
Trophy points
1,298
Activity points
2,929
For most of the cortex chipsets that are out, the usb stack is usually free. Why don't you buy a eval board like the STM3210B board. From there you can create your relay circuit and connect to the GPIO of the STM32. The USB stack for the STM32 is easy to follow and I use it quite often.
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Friends;
I download an example from net in which relays are controlled through serial port. But i confuse on following statement please describe it
'Set all outputs to High
MSComm1.Output = "A" + "H" + "0" + Chr$(13)
what parameters stands for can i change it to energized the relay one by one when i want?
Regards
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Friends can anyone send me any link where relays are controlled through vb2008. I have a hardware 8 relay board. I want just on and off from each invidual button on the form.
Regards
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Thanks For article i study it but now i am worried about the hardware. How i make the hardware myself toexecute it?
Reagrds
 

john blue

Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Activity points
4,749
Hardware is easier... you need to ue the software to help you. Hardwar its only few relays,microcontroller and the cable, but how to manipulate it greaty depends on the software :)
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
i download the code from the link and execute in vb 2008 seems good. but hardware parts and values not found in any file?
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Dear friends
Please help me i want to control 8 numbers relay through parallel port if serial i am unfimiliar with micro controller programming i want to use vb 2008 for that purpose.
regards
hamad
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Thanks;
I have this rar file and schmetic as well. But the problem is that the code in delphi language i want to use this hardware from VB 2008. But i do not know about the micro controller programming and as well as how i handle this hardware?
Sir i really worried about that.
Actually i want to control 10 relays and read signals 0 to 10 volt and 4 to 20 mA from serial or parallel or usb what u suggest. and help me.
I can make a PCB (hardware) as per ur or friends suggestion.
My email is sultanhamad_te@yahoo.com
Regards
 

javaboy

Junior Member level 1
Joined
Sep 15, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Please help me on my post.
Regards
 

saDesigner81

Junior Member level 2
Joined
Jun 15, 2009
Messages
21
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Location
UK
Activity points
1,383
Hi friends;
I am new one in this field. I want to control 10 relays through serial or parallel or usb port. I read many articles but still confusing. I have a laptop with USB ports no D9 type serial port no parallel port in it.
Friends Kindly guide me what can i do and how i achive this task. I want to design the software in VB 2008.
Please help me in this issu.
Regards
What you need is a Relay board which can be connected to a USB board. USB Relay controller by Protosmart appears as a Virtual COM port so it can be handled the same way as a generic Serial port. Also, they provide source code in Visual basic. Looks ideal for you requirements?
 

lockman_akim

Advanced Member level 1
Joined
Jul 12, 2010
Messages
467
Helped
76
Reputation
152
Reaction score
68
Trophy points
1,308
Location
Malaysia
Activity points
3,535
hye..check out this.. all your problm have been solve here.. hardware part, vb part and even program for microcontroller..
thelocxresearch.tk

for vb program you can download here, make sure u use vb 2008..
 

Attachments

  • Serial Communication.zip
    3.9 MB · Views: 7

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top