summaryrefslogtreecommitdiff
path: root/circuit.txt
blob: 408f8ee8f2b96b01e0d3b87a4f7e38dc33d4b0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

                           +-------------------+
                           |                   |
                       +----)------------+     |
                       |   |             |     |
                       |   +-------+     |     |     +---------+----o  Digital output
                       |   |       |     |     |     |         |
+24V ac  o---\/\/\/\/--+   |       __    __    __    __        |
               10K     |   |      |  |  |  |  |  |  |  |       |
                       |   |   +--------------------------+    |
                       |   |   |   |     +--|(+)\    |    |    \
           Voltage     |   |   |   |        |    >---+   /     / Pull-up resistor
           Divider     |   |   |   +--------|(-)/       |      \     ~10K
                       |   |   |                         \     /
                       |   |   |   Comparator (NS M8830)  |    \
                       |   |   +--------------------------+    |
                       |   |      |__|  |__|  |__|  |__|       |
-24V ac  o-+-\/\/\/\/--+   |                         |         |
           |    1K         |                         +---------+----o  Digital +5V
           |               |
           +---------------+----------------------------------------o  Digital ground