| Author |
Message |
pfaisalbe
Joined: 22 Jul 2009 Posts: 3 Location: United Kingdom
|
03 Nov 2009 15:39 MICROCONTROLLER |
|
|
|
|
Hi
I am a postgraduate student and a beginner in micro controller. I have done Intel 8085 programming during undergraduate course. It was 10 years back.
Now I need to control relays via PC which means PC will send a command to an electronic circuit to energize relay coil and PC will send other command to deenergize the relay coil.
Electronic circuit and relay is straight forward. I can do that.
My problem is how to communicate electronic circuit using PC.?
I guess micro controller together with PC can do that. Is there any alternate solution ?
If it can be done with Micro controller , I need to get familiar with Micro controller first. Can you suggest me where to start with micro controller?
Regards
Faisal
|
|
| Back to top |
|
 |
Naveed Ahmed
Joined: 31 Aug 2008 Posts: 22 Location: Pakistan
|
03 Nov 2009 16:28 Re: MICROCONTROLLER to control relays |
|
|
|
|
Dear Faisal
You should use microcontroller to control relays and switch your device on/off.
1) Use Microcontroller's Serial port and connect it with PCs COM(serial port).
2) Send commands from Hyperterminal or any terminal software in PC to switch on/off relays. But you must have to program microcontroller for that.
3) If you are beginner with microcontrollers, then you should use 8051 microcontroller. 89c51 or 89c52. Then be perfect in this controller, then shift to the AVRs.
|
|
| Back to top |
|
 |
Google AdSense

|
03 Nov 2009 16:28 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
elrayes
Joined: 03 Jun 2008 Posts: 164 Helped: 8 Location: Egypt
|
03 Nov 2009 16:58 MICROCONTROLLER to control relays |
|
|
|
|
another solution to use PC parallel port directly to control your relays without microcontroller in the middle, but remember to use buffers like 74244,74245,74373 to isolate parallel port and increase your fanout current, you can program it using C/C++/VB and even in matlab and labview.
if you use C/C++/VB under windows 2k, XP or higher then remember to use a low level access software like "User port" to open the ports for low level access.
good luck
Last edited by elrayes on 04 Nov 2009 9:44; edited 1 time in total |
|
| Back to top |
|
 |
glenjoy
Joined: 01 Jan 2004 Posts: 1028 Helped: 47 Location: Philippines
|
03 Nov 2009 23:04 MICROCONTROLLER to control relays |
|
|
|
|
| Use a microcontroller via serial port, you problem just might be is the absence of serial ports in PCs now.
|
|
| Back to top |
|
 |