A/D Converter Project Help
Archiver
Posts: 46,084
OK, Here is my problem.
I am doing an alarm system where 8 sensors are attached to the BS2. I need to test the voltage on all 8 sensors and as long as there is 0 volts on each pin, the BS2 continues to test the pins. If a sensor pin ejects, then 5 volts is read on that pin and the alarm sounds.
Do I need an A/D converter connected and which one do I use if I need one?
Does anyone have any examples of code to use or good instructions on how to set this up?
thanks. wtterrell@netzero.com
I am doing an alarm system where 8 sensors are attached to the BS2. I need to test the voltage on all 8 sensors and as long as there is 0 volts on each pin, the BS2 continues to test the pins. If a sensor pin ejects, then 5 volts is read on that pin and the alarm sounds.
Do I need an A/D converter connected and which one do I use if I need one?
Does anyone have any examples of code to use or good instructions on how to set this up?
thanks. wtterrell@netzero.com
Comments
Can't you just pull pins high and have the contact switches make the pin go low when the contact is closed?
---
Don Russell
---
Original Message
From: wtterrell
To: basicstamps@yahoogroups.com
Sent: Tuesday, March 27, 2001 10:05 PM
Subject: [noparse][[/noparse]basicstamps] A/D Converter Project Help
OK, Here is my problem.
I am doing an alarm system where 8 sensors are attached to the BS2. I need to test the voltage on all 8 sensors and as long as there is 0 volts on each pin, the BS2 continues to test the pins. If a sensor pin ejects, then 5 volts is read on that pin and the alarm sounds.
Do I need an A/D converter connected and which one do I use if I need one?
Does anyone have any examples of code to use or good instructions on how to set this up?
thanks. wtterrell@netzero.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
wtterrell@n... writes:
> OK, Here is my problem.
>
> I am doing an alarm system where 8 sensors are attached to the BS2. I need
> to test the voltage on all 8 sensors and as long as there is 0 volts on
each
> pin, the BS2 continues to test the pins....
If this is a burglar or other security alarm, you are better off using an
intermediate voltage with an end run resistor. In that configuation your
alarm will sound if the wire is cut or jumped.
The rest I'll leave to someone with more knowledge.
ports has 5 volts on it.
Loop:
IF IN1 = 1 THEN Exit
IF IN2 = 1 THEN Exit
'*** and so forth...
GOTO Loop
Exit:
'*** alarm stuff here
Original Message
I am doing an alarm system where 8 sensors are attached to the BS2. I need
to test the voltage on all 8 sensors and as long as there is 0 volts on each
pin, the BS2 continues to test the pins. If a sensor pin ejects, then 5
volts is read on that pin and the alarm sounds.
Do I need an A/D converter connected and which one do I use if I need one?
Does anyone have any examples of code to use or good instructions on how to
set this up?