Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Serial Port trigger

Status
Not open for further replies.

duf

New Member
Hi,
I need help with a idea as follows

I have a pager connected to a vibration sensor and when the pager vibrates the sensor will close sending a + 5v to pin 2 which should trigger the a comm event on the serial port which will start a VB program to make a phone call.

will the +5v cause the com event to trigger, is it safe to apply +5V to pin 2 in the first place.
any ideas on this would be of great help

Duf
 
RS232 port is designed for +/-25V.
Range +3..25V is considered '0' and -3...25V is considered '1'.
applying +5V would be considered zero.
VB can detect com events such as character received etc.
I don't think using data lines (pins 2 and 3) is good idea.
Even if you would apply negative voltage such as -5V, you would
have to pulse it to simulate transfer of one character and trigger event
for VB. I would bring signal to one of hardware handshaking inputs
on the com port.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top