Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

can i use serail port for.....

Status
Not open for further replies.

Altafhal

Member level 2
Joined
Feb 13, 2007
Messages
42
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Pakistan
Activity points
1,573
hi all
i want to control a bell from the serial port of pc. can someone help me how to use the serial port for controlling a bell?

thanks
 

Old Nick

Advanced Member level 1
Joined
Sep 14, 2007
Messages
480
Helped
68
Reputation
136
Reaction score
18
Trophy points
1,298
Activity points
4,243
I assume you have circuitry which is capable of driving the bell and you are just wanting to set a pin on the port high/low to turn the bell on/off. In which case simple C programming would be the easiest way. Just address the port with the bell controll bits.
 

vijaya_narayana

Full Member level 3
Joined
Jun 12, 2007
Messages
172
Helped
11
Reputation
22
Reaction score
1
Trophy points
1,298
Location
India
Activity points
2,158
just make a pin high to the relay which is connected to the bell and well just a c r VB program is enough to it just send a value to the micro controller by using different values i think u can control not only bell but many appliances just try it
 

cesare

Full Member level 3
Joined
Feb 21, 2002
Messages
175
Helped
9
Reputation
18
Reaction score
2
Trophy points
1,298
Activity points
1,226
You can connect the DTR signal of the PC com port to a transistor that drives a relais.

Then you can open or close the com port to toggle the DTR level.

Added after 1 minutes:

You can simply use the DTR signal to drive the interface.

Openin or closing the com port toggles the level of the DTR
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top