Merge DIYglenn

This commit is contained in:
Gunnar Skjold
2019-02-14 07:48:46 +01:00
parent a954b838f3
commit 3cb433b27e
273 changed files with 84 additions and 11488 deletions

View File

@@ -0,0 +1,3 @@
*.kicad_pcb-bak
*.bak
*.bck

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 186 KiB

View File

@@ -0,0 +1,4 @@
%.png: %.svg
inkscape -f $^ --export-png=$@

View File

@@ -0,0 +1,63 @@
# Overview
This board can be used to simulate a M-Bus master device instead of
connecting to the real AMS unit, i.e. usable for test and development.
It takes a 5 V TTL level input (serial) signal and converts it
to a M-bus level signal. It supports both sending and receiving.
Inspired by [MBus_USB.pdf](https://github.com/rscada/libmbus/blob/master/hardware/MBus_USB.pdf)<sup>1</sup>,
although significantly improved by using zener diodes so that it is
flexible and can work with any external power source between
21 and 42 Volt. Most DC-DC boost/step-up converter
modules<sup>2</sup> should be fine for this.
![](MBus_Simulator.png?raw=true)
## BOM
* 1 x zener diode [13V](https://www.elfadistrelec.no/en/zener-diode-017aa-13-on-semiconductor-1n5350bg/p/17006687) (note below)
* 1 x zener diode [4.7V](https://www.elfadistrelec.no/en/zener-diode-do-35-500-mw-vishay-bzx55c4v7/p/30030851)
* 1 x [BD136 transistor](https://www.elfadistrelec.no/en/power-transistor-to-126-pnp-45-no-brand-bd136-16/p/17130046) (most pnp bjt will probably work (with 40+ operating voltage))
* 4 x [BC337 transistor](https://www.elfadistrelec.no/en/transistor-to-92-npn-45-800-ma-diotec-bc337-25bk/p/30012857) (probably any npn bjt will do (with 40+ operating voltage)
* 1 x resistor 82 ohm
* 1 x resistor 1k
* 1 x resistor 8.2k (you can use 10k if power supply is well above 21V)
* 5 x resistor 10k
* 1 x resistor 220k
* 4 x pin header 1x2
Note for the 13V zener. This board design depends on the zener to
operate below 1mA, e.g. like 1N5350 (figure 8) whereas a BZX55
(figure 9) will maybe not operate properly.
![](zener_ok.png?raw=true) ![](zener_not_ok.png?raw=true)
This limitation could be lifted by reducing the 8.2k resistor so that it
draws enough current.
## Schematic
![](MBus_Simulator.schematic.png?raw=true)
[SVG version](MBus_Simulator.schematic.svg?raw=true)
## PCB
![](MBus_Simulator.B.Cu.png?raw=true)
[SVG version](MBus_Simulator.B.Cu.svg?raw=true)
![](MBus_Simulator.F.Cu.png?raw=true)
[SVG version](MBus_Simulator.F.Cu.svg?raw=true)
## Version history
Rev A - Only transmit. Wrong design, does not work.
Rev B - Both transmit and receive. Should work (not tested yet).
-------------
<sup>1</sup>
See also https://electronics.stackexchange.com/questions/99388/designing-a-m-bus-master-up-to-10-slaves/ and https://electronics.stackexchange.com/a/214477/568.
<sup>2</sup>
Like for instance [this one](http://hobbycomponents.com/power/698-xl60009-dc-dc-step-up-boost-converter) for £3.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
(fp_lib_table
(lib (name AmsToMqttBridge)(type KiCad)(uri ../kicad-libs/kicad-footprints/AmsToMqttBridge.pretty)(options "")(descr ""))
)

View File

@@ -0,0 +1,292 @@
PCBNEW-LibModule-V1
$INDEX
LOGO
$EndINDEX
#
# LOGO
# pixmap w = 400, h = 400
#
$MODULE LOGO
Po 0 0 0 15 00000000 00000000 ~~
T0 0 1394 120 120 0 24 N I 21 "G***"
T1 0 -1394 120 120 0 24 N I 21 "LOGO"
DP 0 0 0 0 277 1 15
Dl -797 1181
Dl -783 1173
Dl -752 1154
Dl -708 1125
Dl -656 1091
Dl -604 1055
Dl -561 1027
Dl -531 1007
Dl -519 1000
Dl -512 1003
Dl -487 1015
Dl -452 1033
Dl -431 1044
Dl -398 1058
Dl -381 1061
Dl -379 1057
Dl -367 1032
Dl -348 989
Dl -323 932
Dl -294 865
Dl -264 793
Dl -233 720
Dl -204 650
Dl -179 587
Dl -158 535
Dl -144 500
Dl -139 485
Dl -141 481
Dl -157 465
Dl -186 444
Dl -248 393
Dl -310 317
Dl -347 230
Dl -360 133
Dl -349 43
Dl -314 -43
Dl -254 -120
Dl -181 -178
Dl -96 -214
Dl 0 -226
Dl 91 -216
Dl 179 -181
Dl 257 -122
Dl 290 -84
Dl 335 -6
Dl 360 78
Dl 363 100
Dl 359 192
Dl 332 280
Dl 283 359
Dl 216 424
Dl 207 430
Dl 176 454
Dl 155 470
Dl 138 483
Dl 256 766
Dl 275 811
Dl 307 889
Dl 335 955
Dl 358 1008
Dl 374 1044
Dl 381 1058
Dl 381 1059
Dl 392 1061
Dl 413 1053
Dl 453 1034
Dl 479 1020
Dl 509 1006
Dl 523 1000
Dl 534 1007
Dl 563 1025
Dl 605 1053
Dl 656 1088
Dl 704 1121
Dl 748 1150
Dl 780 1171
Dl 796 1179
Dl 798 1179
Dl 812 1171
Dl 838 1150
Dl 876 1114
Dl 931 1060
Dl 939 1051
Dl 984 1006
Dl 1020 968
Dl 1045 940
Dl 1054 928
Dl 1054 928
Dl 1046 913
Dl 1025 880
Dl 996 835
Dl 960 783
Dl 866 647
Dl 918 518
Dl 934 479
Dl 954 431
Dl 969 397
Dl 976 382
Dl 990 377
Dl 1025 369
Dl 1076 358
Dl 1137 347
Dl 1195 336
Dl 1247 326
Dl 1285 319
Dl 1302 316
Dl 1306 313
Dl 1310 305
Dl 1312 287
Dl 1313 255
Dl 1314 205
Dl 1314 133
Dl 1314 125
Dl 1313 56
Dl 1312 1
Dl 1310 -35
Dl 1308 -49
Dl 1308 -49
Dl 1291 -53
Dl 1254 -61
Dl 1202 -71
Dl 1140 -83
Dl 1136 -84
Dl 1074 -96
Dl 1021 -107
Dl 985 -115
Dl 970 -120
Dl 966 -124
Dl 954 -149
Dl 936 -187
Dl 915 -234
Dl 895 -283
Dl 878 -327
Dl 866 -360
Dl 862 -375
Dl 862 -375
Dl 872 -390
Dl 893 -422
Dl 923 -467
Dl 960 -520
Dl 962 -524
Dl 998 -576
Dl 1027 -621
Dl 1046 -653
Dl 1054 -667
Dl 1053 -668
Dl 1042 -683
Dl 1015 -713
Dl 977 -753
Dl 931 -800
Dl 916 -814
Dl 865 -864
Dl 829 -897
Dl 807 -914
Dl 797 -918
Dl 796 -918
Dl 780 -908
Dl 747 -886
Dl 702 -856
Dl 649 -820
Dl 645 -817
Dl 593 -781
Dl 549 -752
Dl 518 -731
Dl 504 -723
Dl 502 -723
Dl 480 -729
Dl 443 -742
Dl 397 -760
Dl 348 -780
Dl 304 -798
Dl 271 -813
Dl 256 -822
Dl 255 -823
Dl 250 -842
Dl 241 -881
Dl 229 -935
Dl 217 -1000
Dl 215 -1010
Dl 203 -1073
Dl 193 -1124
Dl 186 -1160
Dl 182 -1175
Dl 173 -1177
Dl 143 -1179
Dl 96 -1180
Dl 40 -1181
Dl -20 -1181
Dl -78 -1179
Dl -127 -1178
Dl -163 -1175
Dl -178 -1172
Dl -178 -1171
Dl -184 -1152
Dl -192 -1113
Dl -203 -1058
Dl -216 -994
Dl -218 -982
Dl -230 -920
Dl -240 -869
Dl -248 -833
Dl -252 -819
Dl -257 -816
Dl -283 -805
Dl -325 -788
Dl -377 -767
Dl -497 -718
Dl -645 -819
Dl -658 -828
Dl -711 -865
Dl -755 -894
Dl -785 -913
Dl -798 -920
Dl -799 -920
Dl -814 -907
Dl -843 -880
Dl -883 -841
Dl -929 -794
Dl -964 -760
Dl -1004 -719
Dl -1030 -691
Dl -1044 -673
Dl -1049 -662
Dl -1048 -655
Dl -1038 -640
Dl -1017 -607
Dl -986 -563
Dl -950 -510
Dl -921 -467
Dl -889 -417
Dl -868 -382
Dl -861 -365
Dl -863 -357
Dl -873 -329
Dl -890 -285
Dl -913 -233
Dl -964 -116
Dl -1040 -101
Dl -1087 -93
Dl -1152 -80
Dl -1214 -68
Dl -1311 -49
Dl -1314 307
Dl -1299 313
Dl -1285 317
Dl -1249 325
Dl -1198 335
Dl -1137 346
Dl -1086 356
Dl -1034 366
Dl -996 373
Dl -980 377
Dl -976 382
Dl -963 407
Dl -944 447
Dl -924 495
Dl -903 545
Dl -885 591
Dl -872 626
Dl -867 645
Dl -874 658
Dl -894 689
Dl -922 732
Dl -958 784
Dl -993 835
Dl -1023 880
Dl -1043 911
Dl -1052 926
Dl -1048 936
Dl -1027 961
Dl -988 1001
Dl -930 1058
Dl -921 1067
Dl -875 1112
Dl -836 1148
Dl -809 1172
Dl -797 1181
$EndMODULE LOGO
$EndLIBRARY

View File

@@ -0,0 +1,159 @@
EESchema-LIBRARY Version 2.3
#encoding utf-8
#
# BC547
#
DEF BC547 Q 0 0 Y N 1 F N
F0 "Q" 200 75 50 H V L CNN
F1 "BC547" 200 0 50 H V L CNN
F2 "TO_SOT_Packages_THT:TO-92_Molded_Narrow" 200 -75 50 H I L CIN
F3 "" 0 0 50 H I L CNN
ALIAS BC546 BC548 BC549 BC550 BC337 BC338
$FPLIST
TO?92*
$ENDFPLIST
DRAW
C 50 0 111 0 1 10 N
P 2 0 1 0 0 0 25 0 N
P 2 0 1 0 25 25 100 100 N
P 3 0 1 0 25 -25 100 -100 100 -100 N
P 3 0 1 20 25 75 25 -75 25 -75 N
P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F
X C 1 100 200 100 D 50 50 1 1 P
X B 2 -200 0 200 R 50 50 1 1 I
X E 3 100 -200 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# BD140
#
DEF BD140 Q 0 0 Y N 1 F N
F0 "Q" 200 75 50 H V L CNN
F1 "BD140" 200 0 50 H V L CNN
F2 "TO_SOT_Packages_THT:TO-126_Vertical" 200 -75 50 H I L CIN
F3 "" 0 0 50 H I L CNN
ALIAS BD136 BD138 BD234 BD236 BD238
$FPLIST
TO?126*
$ENDFPLIST
DRAW
C 50 0 111 0 1 12 N
P 2 0 1 0 0 0 25 0 N
P 2 0 1 0 100 -100 25 -25 N
P 2 0 1 0 100 100 25 25 N
P 3 0 1 20 25 75 25 -75 25 -75 F
P 5 0 1 0 55 -75 75 -55 35 -35 55 -75 55 -75 F
X E 1 100 -200 100 U 50 50 1 1 P
X C 2 100 200 100 D 50 50 1 1 P
X B 3 -200 0 200 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
# Conn_01x02
#
DEF Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Conn_01x02" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# D_Zener_Small_ALT
#
DEF D_Zener_Small_ALT D 0 10 N N 1 F N
F0 "D" 0 90 50 H V C CNN
F1 "D_Zener_Small_ALT" 0 -90 50 H V C CNN
F2 "" 0 0 50 V I C CNN
F3 "" 0 0 50 V I C CNN
$FPLIST
TO-???*
*SingleDiode
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 0 30 0 -30 0 N
P 3 0 1 0 -10 40 -30 40 -30 -40 N
P 4 0 1 0 30 40 -30 0 30 -40 30 40 F
X K 1 -100 0 70 R 50 50 1 1 P
X A 2 100 0 70 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# GND
#
DEF GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# Mounting_Hole
#
DEF Mounting_Hole MK 0 40 Y Y 1 F N
F0 "MK" 0 200 50 H V C CNN
F1 "Mounting_Hole" 0 125 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Mounting?Hole*
Hole*
$ENDFPLIST
DRAW
C 0 0 50 0 1 50 N
ENDDRAW
ENDDEF
#
# PWR_FLAG
#
DEF PWR_FLAG #FLG 0 0 N N 1 F P
F0 "#FLG" 0 75 50 H I C CNN
F1 "PWR_FLAG" 0 150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
X pwr 1 0 0 0 U 50 50 0 0 w
P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N
ENDDRAW
ENDDEF
#
# R
#
DEF R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
#End Library

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,319 @@
(export (version D)
(design
(source /usr/src/hlovdal/forks-github/AmsToMqttBridge/Electrical/Board_003/mbus_master.sch)
(date "ma. 26. feb. 2018 kl. 22.49 +0100")
(tool "Eeschema 4.0.7")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source mbus_master.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref J2)
(value Conn_01x02)
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
(libsource (lib conn) (part Conn_01x02))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C5520))
(comp (ref J1)
(value Conn_01x02)
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
(libsource (lib conn) (part Conn_01x02))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C56AB))
(comp (ref Q3)
(value BC337)
(footprint TO_SOT_Packages_THT:TO-92_Molded_Narrow)
(libsource (lib transistors) (part BC337))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C58F3))
(comp (ref R1)
(value 10k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C5956))
(comp (ref D1)
(value 13V)
(footprint Diodes_THT:D_5W_P12.70mm_Horizontal)
(libsource (lib device) (part D_Zener_Small_ALT))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C5A7F))
(comp (ref J3)
(value Conn_01x02)
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
(libsource (lib conn) (part Conn_01x02))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C5F4D))
(comp (ref Q4)
(value BD136)
(footprint TO_SOT_Packages_THT:TO-126_Vertical)
(libsource (lib transistors) (part BD136))
(sheetpath (names /) (tstamps /))
(tstamp 5A6C614C))
(comp (ref R6)
(value 220k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A70E602))
(comp (ref R2)
(value 8.2k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A92EF05))
(comp (ref Q1)
(value BC337)
(footprint TO_SOT_Packages_THT:TO-92_Molded_Narrow)
(libsource (lib transistors) (part BC337))
(sheetpath (names /) (tstamps /))
(tstamp 5A92F34B))
(comp (ref R4)
(value 10k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A92F359))
(comp (ref R3)
(value 10k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A92F5C3))
(comp (ref Q2)
(value BC337)
(footprint TO_SOT_Packages_THT:TO-92_Molded_Narrow)
(libsource (lib transistors) (part BC337))
(sheetpath (names /) (tstamps /))
(tstamp 5A92F825))
(comp (ref R5)
(value 10k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A92F832))
(comp (ref R7)
(value 82)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A931949))
(comp (ref Q5)
(value BC337)
(footprint TO_SOT_Packages_THT:TO-92_Molded_Narrow)
(libsource (lib transistors) (part BC337))
(sheetpath (names /) (tstamps /))
(tstamp 5A931D4A))
(comp (ref J4)
(value Conn_01x02)
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
(libsource (lib conn) (part Conn_01x02))
(sheetpath (names /) (tstamps /))
(tstamp 5A932150))
(comp (ref D2)
(value 4.7V)
(footprint Diodes_THT:D_A-405_P7.62mm_Horizontal)
(libsource (lib device) (part D_Zener_Small_ALT))
(sheetpath (names /) (tstamps /))
(tstamp 5A9323FA))
(comp (ref R9)
(value 1k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A9325DE))
(comp (ref R8)
(value 10k)
(footprint Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A9328A6))
(comp (ref MK3)
(value Mounting_Hole)
(footprint Mounting_Holes:MountingHole_4.3mm_M4_ISO14580)
(libsource (lib Mechanical) (part Mounting_Hole))
(sheetpath (names /) (tstamps /))
(tstamp 5A9353BE))
(comp (ref MK1)
(value Mounting_Hole)
(footprint Mounting_Holes:MountingHole_4.3mm_M4_ISO14580)
(libsource (lib Mechanical) (part Mounting_Hole))
(sheetpath (names /) (tstamps /))
(tstamp 5A935470))
(comp (ref MK2)
(value Mounting_Hole)
(footprint Mounting_Holes:MountingHole_4.3mm_M4_ISO14580)
(libsource (lib Mechanical) (part Mounting_Hole))
(sheetpath (names /) (tstamps /))
(tstamp 5A9354CC))
(comp (ref MK4)
(value Mounting_Hole)
(footprint Mounting_Holes:MountingHole_4.3mm_M4_ISO14580)
(libsource (lib Mechanical) (part Mounting_Hole))
(sheetpath (names /) (tstamps /))
(tstamp 5A935545)))
(libparts
(libpart (lib transistors) (part BC547)
(aliases
(alias BC546)
(alias BC548)
(alias BC549)
(alias BC550)
(alias BC337)
(alias BC338))
(description "45V Vce, 0.1A Ic, NPN, Small Signal Transistor, TO-92")
(docs http://www.fairchildsemi.com/ds/BC/BC547.pdf)
(footprints
(fp TO?92*))
(fields
(field (name Reference) Q)
(field (name Value) BC547)
(field (name Footprint) TO_SOT_Packages_THT:TO-92_Molded_Narrow))
(pins
(pin (num 1) (name C) (type passive))
(pin (num 2) (name B) (type input))
(pin (num 3) (name E) (type passive))))
(libpart (lib transistors) (part BD140)
(aliases
(alias BD136)
(alias BD138)
(alias BD234)
(alias BD236)
(alias BD238))
(description "Vce 80V, Ic 1.5A, Low Voltage Transistor, TO-126")
(docs http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00001225.pdf)
(footprints
(fp TO?126*))
(fields
(field (name Reference) Q)
(field (name Value) BD140)
(field (name Footprint) TO_SOT_Packages_THT:TO-126_Vertical))
(pins
(pin (num 1) (name E) (type passive))
(pin (num 2) (name C) (type passive))
(pin (num 3) (name B) (type input))))
(libpart (lib conn) (part Conn_01x02)
(description "Generic connector, single row, 01x02")
(docs ~)
(footprints
(fp Connector*:*_??x*mm*)
(fp Connector*:*1x??x*mm*)
(fp Pin?Header?Straight?1X*)
(fp Pin?Header?Angled?1X*)
(fp Socket?Strip?Straight?1X*)
(fp Socket?Strip?Angled?1X*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x02))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))))
(libpart (lib device) (part D_Zener_Small_ALT)
(description "Zener Diode, small symbol, alternativ symbol")
(docs https://en.wikipedia.org/wiki/Zener_diode)
(footprints
(fp TO-???*)
(fp *SingleDiode)
(fp *_Diode_*)
(fp *SingleDiode*)
(fp D_*))
(fields
(field (name Reference) D)
(field (name Value) D_Zener_Small_ALT))
(pins
(pin (num 1) (name K) (type passive))
(pin (num 2) (name A) (type passive))))
(libpart (lib Mechanical) (part Mounting_Hole)
(description "Mounting Hole without connection")
(footprints
(fp Mounting?Hole*)
(fp Hole*))
(fields
(field (name Reference) MK)
(field (name Value) Mounting_Hole)))
(libpart (lib device) (part R)
(description Resistor)
(footprints
(fp R_*)
(fp R_*))
(fields
(field (name Reference) R)
(field (name Value) R))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive)))))
(libraries
(library (logical device)
(uri /usr/share/kicad/library/device.lib))
(library (logical transistors)
(uri /usr/share/kicad/library/transistors.lib))
(library (logical conn)
(uri /usr/share/kicad/library/conn.lib))
(library (logical Mechanical)
(uri /usr/src/hlovdal/forks-github/AmsToMqttBridge/Electrical/kicad-libs/kicad-symbols/Mechanical.lib)))
(nets
(net (code 1) (name "Net-(Q1-Pad1)")
(node (ref R4) (pin 2))
(node (ref Q1) (pin 1))
(node (ref Q2) (pin 2)))
(net (code 2) (name "Net-(Q2-Pad1)")
(node (ref R5) (pin 2))
(node (ref Q2) (pin 1)))
(net (code 3) (name "Net-(Q1-Pad2)")
(node (ref Q1) (pin 2))
(node (ref R3) (pin 1)))
(net (code 4) (name GND)
(node (ref J1) (pin 1))
(node (ref Q5) (pin 3))
(node (ref J4) (pin 1))
(node (ref D2) (pin 2))
(node (ref Q3) (pin 3))
(node (ref R7) (pin 2))
(node (ref J2) (pin 1))
(node (ref Q1) (pin 3)))
(net (code 5) (name "Net-(D2-Pad1)")
(node (ref D2) (pin 1))
(node (ref Q5) (pin 1))
(node (ref R9) (pin 2))
(node (ref R8) (pin 2)))
(net (code 6) (name "Net-(J4-Pad2)")
(node (ref R9) (pin 1))
(node (ref J4) (pin 2)))
(net (code 7) (name "Net-(Q4-Pad2)")
(node (ref Q5) (pin 2))
(node (ref Q4) (pin 2))
(node (ref R7) (pin 1)))
(net (code 8) (name "Net-(J1-Pad2)")
(node (ref J1) (pin 2))
(node (ref R3) (pin 2))
(node (ref R1) (pin 2)))
(net (code 9) (name "Net-(Q3-Pad2)")
(node (ref R1) (pin 1))
(node (ref Q3) (pin 2)))
(net (code 10) (name "Net-(Q3-Pad1)")
(node (ref R2) (pin 2))
(node (ref Q3) (pin 1)))
(net (code 11) (name "Net-(D1-Pad2)")
(node (ref Q4) (pin 3))
(node (ref R2) (pin 1))
(node (ref Q2) (pin 3))
(node (ref D1) (pin 2)))
(net (code 12) (name /MBus-)
(node (ref J3) (pin 1))
(node (ref Q4) (pin 1))
(node (ref R6) (pin 2)))
(net (code 13) (name /EXT_PWR)
(node (ref R8) (pin 1))
(node (ref J3) (pin 2))
(node (ref D1) (pin 1))
(node (ref R6) (pin 1))
(node (ref R5) (pin 1))
(node (ref J2) (pin 2))
(node (ref R4) (pin 1)))))

View File

@@ -0,0 +1,64 @@
update=ma. 26. feb. 2018 kl. 17.58 +0100
version=1
last_client=kicad
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.500000000000
PcbTextSizeH=1.500000000000
PcbTextThickness=0.300000000000
ModuleTextSizeV=1.000000000000
ModuleTextSizeH=1.000000000000
ModuleTextSizeThickness=0.150000000000
SolderMaskClearance=0.000000000000
SolderMaskMinWidth=0.000000000000
DrawSegmentWidth=0.200000000000
BoardOutlineThickness=0.100000000000
ModuleOutlineThickness=0.150000000000
[cvpcb]
version=1
NetIExt=net
[general]
version=1
[eeschema]
version=1
LibDir=../kicad-libs/kicad-symbols
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=switches
LibName4=relays
LibName5=motors
LibName6=transistors
LibName7=conn
LibName8=linear
LibName9=regul
LibName10=74xx
LibName11=cmos4000
LibName12=adc-dac
LibName13=memory
LibName14=xilinx
LibName15=microcontrollers
LibName16=dsp
LibName17=microchip
LibName18=analog_switches
LibName19=motorola
LibName20=texas
LibName21=intel
LibName22=audio
LibName23=interface
LibName24=digital-audio
LibName25=philips
LibName26=display
LibName27=cypress
LibName28=siliconi
LibName29=opto
LibName30=atmel
LibName31=contrib
LibName32=valves
LibName33=Mechanical

View File

@@ -0,0 +1,561 @@
EESchema Schematic File Version 2
LIBS:power
LIBS:device
LIBS:switches
LIBS:relays
LIBS:motors
LIBS:transistors
LIBS:conn
LIBS:linear
LIBS:regul
LIBS:74xx
LIBS:cmos4000
LIBS:adc-dac
LIBS:memory
LIBS:xilinx
LIBS:microcontrollers
LIBS:dsp
LIBS:microchip
LIBS:analog_switches
LIBS:motorola
LIBS:texas
LIBS:intel
LIBS:audio
LIBS:interface
LIBS:digital-audio
LIBS:philips
LIBS:display
LIBS:cypress
LIBS:siliconi
LIBS:opto
LIBS:atmel
LIBS:contrib
LIBS:valves
LIBS:Mechanical
LIBS:mbus_master-cache
EELAYER 25 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Conn_01x02 J2
U 1 1 5A6C5520
P 1700 3300
F 0 "J2" H 1700 3400 50 0000 C CNN
F 1 "Conn_01x02" H 1700 3100 50 0000 C CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 1700 3300 50 0001 C CNN
F 3 "" H 1700 3300 50 0001 C CNN
1 1700 3300
-1 0 0 1
$EndComp
$Comp
L GND #PWR01
U 1 1 5A6C5572
P 2400 3400
F 0 "#PWR01" H 2400 3150 50 0001 C CNN
F 1 "GND" H 2400 3250 50 0000 C CNN
F 2 "" H 2400 3400 50 0001 C CNN
F 3 "" H 2400 3400 50 0001 C CNN
1 2400 3400
1 0 0 -1
$EndComp
$Comp
L PWR_FLAG #FLG02
U 1 1 5A6C558D
P 2050 3400
F 0 "#FLG02" H 2050 3475 50 0001 C CNN
F 1 "PWR_FLAG" H 2050 3550 50 0000 C CNN
F 2 "" H 2050 3400 50 0001 C CNN
F 3 "" H 2050 3400 50 0001 C CNN
1 2050 3400
-1 0 0 1
$EndComp
Wire Wire Line
1900 3200 9200 3200
Wire Wire Line
1900 3300 2400 3300
Wire Wire Line
2400 3300 2400 3400
Wire Wire Line
2050 3400 2050 3300
Connection ~ 2050 3300
$Comp
L PWR_FLAG #FLG03
U 1 1 5A6C5614
P 2050 3050
F 0 "#FLG03" H 2050 3125 50 0001 C CNN
F 1 "PWR_FLAG" H 2050 3200 50 0000 C CNN
F 2 "" H 2050 3050 50 0001 C CNN
F 3 "" H 2050 3050 50 0001 C CNN
1 2050 3050
1 0 0 -1
$EndComp
Wire Wire Line
2050 3050 2050 3200
Connection ~ 2050 3200
Text Label 2400 3200 1 60 ~ 0
EXT_PWR
Text Notes 850 3350 0 60 ~ 0
External power\n21-42V
$Comp
L Conn_01x02 J1
U 1 1 5A6C56AB
P 1950 5850
F 0 "J1" H 1950 5950 50 0000 C CNN
F 1 "Conn_01x02" H 1950 5650 50 0000 C CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 1950 5850 50 0001 C CNN
F 3 "" H 1950 5850 50 0001 C CNN
1 1950 5850
-1 0 0 1
$EndComp
Text Notes 950 5850 0 60 ~ 0
Input signal, TTL\nSendt to m-bus
$Comp
L GND #PWR04
U 1 1 5A6C5767
P 2300 5950
F 0 "#PWR04" H 2300 5700 50 0001 C CNN
F 1 "GND" H 2300 5800 50 0000 C CNN
F 2 "" H 2300 5950 50 0001 C CNN
F 3 "" H 2300 5950 50 0001 C CNN
1 2300 5950
1 0 0 -1
$EndComp
Wire Wire Line
2150 5850 2300 5850
Wire Wire Line
2300 5850 2300 5950
$Comp
L BC337 Q3
U 1 1 5A6C58F3
P 5150 5750
F 0 "Q3" H 5350 5825 50 0000 L CNN
F 1 "BC337" H 5350 5750 50 0000 L CNN
F 2 "TO_SOT_Packages_THT:TO-92_Molded_Narrow" H 5350 5675 50 0001 L CIN
F 3 "" H 5150 5750 50 0001 L CNN
1 5150 5750
1 0 0 -1
$EndComp
$Comp
L R R1
U 1 1 5A6C5956
P 4150 5750
F 0 "R1" V 4230 5750 50 0000 C CNN
F 1 "10k" V 4150 5750 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 4080 5750 50 0001 C CNN
F 3 "" H 4150 5750 50 0001 C CNN
1 4150 5750
0 1 1 0
$EndComp
Wire Wire Line
2150 5750 4000 5750
Wire Wire Line
4300 5750 4950 5750
$Comp
L GND #PWR05
U 1 1 5A6C59DD
P 5250 6150
F 0 "#PWR05" H 5250 5900 50 0001 C CNN
F 1 "GND" H 5250 6000 50 0000 C CNN
F 2 "" H 5250 6150 50 0001 C CNN
F 3 "" H 5250 6150 50 0001 C CNN
1 5250 6150
1 0 0 -1
$EndComp
Wire Wire Line
5250 5950 5250 6150
$Comp
L D_Zener_Small_ALT D1
U 1 1 5A6C5A7F
P 5250 3550
F 0 "D1" V 5250 3650 50 0000 C CNN
F 1 "13V" H 5250 3460 50 0000 C CNN
F 2 "Diodes_THT:D_5W_P12.70mm_Horizontal" V 5250 3550 50 0001 C CNN
F 3 "" V 5250 3550 50 0001 C CNN
1 5250 3550
0 1 1 0
$EndComp
Wire Wire Line
5250 3200 5250 3450
Wire Wire Line
4400 4350 5750 4350
$Comp
L Conn_01x02 J3
U 1 1 5A6C5F4D
P 7300 3450
F 0 "J3" H 7300 3550 50 0000 C CNN
F 1 "Conn_01x02" H 7300 3250 50 0000 C CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 7300 3450 50 0001 C CNN
F 3 "" H 7300 3450 50 0001 C CNN
1 7300 3450
1 0 0 1
$EndComp
Wire Wire Line
7100 3350 6750 3350
Wire Wire Line
6750 3350 6750 3200
Connection ~ 5250 3200
Text Label 6400 3200 0 60 ~ 0
MBus+
Text Label 6400 3750 0 60 ~ 0
MBus-
$Comp
L BD136 Q4
U 1 1 5A6C614C
P 5950 4350
F 0 "Q4" H 6150 4425 50 0000 L CNN
F 1 "BD136" H 6150 4350 50 0000 L CNN
F 2 "TO_SOT_Packages_THT:TO-126_Vertical" H 6150 4275 50 0001 L CIN
F 3 "" H 5950 4350 50 0001 L CNN
1 5950 4350
1 0 0 1
$EndComp
Wire Wire Line
6050 3200 6050 3350
Connection ~ 6050 3200
$Comp
L GND #PWR06
U 1 1 5A6C640E
P 6050 5900
F 0 "#PWR06" H 6050 5650 50 0001 C CNN
F 1 "GND" H 6050 5750 50 0000 C CNN
F 2 "" H 6050 5900 50 0001 C CNN
F 3 "" H 6050 5900 50 0001 C CNN
1 6050 5900
1 0 0 -1
$EndComp
Wire Wire Line
6050 3750 6750 3750
Wire Wire Line
6750 3750 6750 3450
Wire Wire Line
6750 3450 7100 3450
Connection ~ 6050 3750
Text Notes 7550 3450 0 60 ~ 0
M-bus output signal
Wire Wire Line
6050 3650 6050 4150
Text Notes 3000 1650 0 60 ~ 0
Schematic inspired by https://github.com/rscada/libmbus/blob/master/hardware/MBus_USB.pdf\nmentioned in https://electronics.stackexchange.com/a/214477/568.\n\nMade more robust by using a zener diodes so that the voltage drop is exact and that supply voltage does not matter.
Wire Notes Line
2900 1250 8750 1250
Wire Notes Line
8750 1250 8750 1800
Wire Notes Line
8750 1800 2900 1800
Wire Notes Line
2900 1800 2900 1250
$Comp
L R R6
U 1 1 5A70E602
P 6050 3500
F 0 "R6" H 6150 3500 50 0000 C CNN
F 1 "220k" V 6050 3500 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 5980 3500 50 0001 C CNN
F 3 "" H 6050 3500 50 0001 C CNN
1 6050 3500
1 0 0 -1
$EndComp
$Comp
L R R2
U 1 1 5A92EF05
P 5250 4900
F 0 "R2" V 5330 4900 50 0000 C CNN
F 1 "8.2k" V 5250 4900 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 5180 4900 50 0001 C CNN
F 3 "" H 5250 4900 50 0001 C CNN
1 5250 4900
1 0 0 -1
$EndComp
Wire Wire Line
5250 5050 5250 5550
Wire Wire Line
5250 3650 5250 4750
Connection ~ 5250 4350
$Comp
L BC337 Q1
U 1 1 5A92F34B
P 3500 4650
F 0 "Q1" H 3700 4725 50 0000 L CNN
F 1 "BC337" H 3700 4650 50 0000 L CNN
F 2 "TO_SOT_Packages_THT:TO-92_Molded_Narrow" H 3700 4575 50 0001 L CIN
F 3 "" H 3500 4650 50 0001 L CNN
1 3500 4650
1 0 0 -1
$EndComp
$Comp
L GND #PWR07
U 1 1 5A92F352
P 3600 5050
F 0 "#PWR07" H 3600 4800 50 0001 C CNN
F 1 "GND" H 3600 4900 50 0000 C CNN
F 2 "" H 3600 5050 50 0001 C CNN
F 3 "" H 3600 5050 50 0001 C CNN
1 3600 5050
1 0 0 -1
$EndComp
Wire Wire Line
3600 4850 3600 5050
$Comp
L R R4
U 1 1 5A92F359
P 3600 3500
F 0 "R4" V 3680 3500 50 0000 C CNN
F 1 "10k" V 3600 3500 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 3530 3500 50 0001 C CNN
F 3 "" H 3600 3500 50 0001 C CNN
1 3600 3500
1 0 0 -1
$EndComp
Wire Wire Line
3600 3650 3600 4450
$Comp
L R R3
U 1 1 5A92F5C3
P 3100 4650
F 0 "R3" V 3180 4650 50 0000 C CNN
F 1 "10k" V 3100 4650 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 3030 4650 50 0001 C CNN
F 3 "" H 3100 4650 50 0001 C CNN
1 3100 4650
0 1 1 0
$EndComp
Wire Wire Line
2700 5750 2700 4650
Wire Wire Line
2700 4650 2950 4650
Connection ~ 2700 5750
Wire Wire Line
3250 4650 3300 4650
Wire Wire Line
3600 3350 3600 3200
Connection ~ 3600 3200
$Comp
L BC337 Q2
U 1 1 5A92F825
P 4300 4000
F 0 "Q2" H 4500 4075 50 0000 L CNN
F 1 "BC337" H 4500 4000 50 0000 L CNN
F 2 "TO_SOT_Packages_THT:TO-92_Molded_Narrow" H 4500 3925 50 0001 L CIN
F 3 "" H 4300 4000 50 0001 L CNN
1 4300 4000
1 0 0 -1
$EndComp
$Comp
L R R5
U 1 1 5A92F832
P 4400 3500
F 0 "R5" V 4480 3500 50 0000 C CNN
F 1 "10k" V 4400 3500 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 4330 3500 50 0001 C CNN
F 3 "" H 4400 3500 50 0001 C CNN
1 4400 3500
1 0 0 -1
$EndComp
Wire Wire Line
4400 3650 4400 3800
Wire Wire Line
4400 3350 4400 3200
Connection ~ 4400 3200
Wire Wire Line
4100 4000 3600 4000
Connection ~ 3600 4000
Wire Wire Line
4400 4200 4400 4350
$Comp
L R R7
U 1 1 5A931949
P 6050 5450
F 0 "R7" H 6150 5450 50 0000 C CNN
F 1 "82" V 6050 5450 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 5980 5450 50 0001 C CNN
F 3 "" H 6050 5450 50 0001 C CNN
1 6050 5450
1 0 0 -1
$EndComp
Wire Wire Line
6050 5900 6050 5600
Wire Wire Line
6050 4550 6050 5300
$Comp
L BC337 Q5
U 1 1 5A931D4A
P 8350 5050
F 0 "Q5" H 8550 5125 50 0000 L CNN
F 1 "BC337" H 8550 5050 50 0000 L CNN
F 2 "TO_SOT_Packages_THT:TO-92_Molded_Narrow" H 8550 4975 50 0001 L CIN
F 3 "" H 8350 5050 50 0001 L CNN
1 8350 5050
1 0 0 -1
$EndComp
Wire Wire Line
8150 5050 6050 5050
Connection ~ 6050 5050
$Comp
L GND #PWR08
U 1 1 5A931EC5
P 8450 5500
F 0 "#PWR08" H 8450 5250 50 0001 C CNN
F 1 "GND" H 8450 5350 50 0000 C CNN
F 2 "" H 8450 5500 50 0001 C CNN
F 3 "" H 8450 5500 50 0001 C CNN
1 8450 5500
1 0 0 -1
$EndComp
Wire Wire Line
8450 5500 8450 5250
$Comp
L Conn_01x02 J4
U 1 1 5A932150
P 10100 5000
F 0 "J4" H 10100 5100 50 0000 C CNN
F 1 "Conn_01x02" H 10100 4800 50 0000 C CNN
F 2 "Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm" H 10100 5000 50 0001 C CNN
F 3 "" H 10100 5000 50 0001 C CNN
1 10100 5000
1 0 0 1
$EndComp
Text Notes 10300 5000 0 60 ~ 0
RxD output signal
$Comp
L GND #PWR09
U 1 1 5A932321
P 9900 5500
F 0 "#PWR09" H 9900 5250 50 0001 C CNN
F 1 "GND" H 9900 5350 50 0000 C CNN
F 2 "" H 9900 5500 50 0001 C CNN
F 3 "" H 9900 5500 50 0001 C CNN
1 9900 5500
1 0 0 -1
$EndComp
Wire Wire Line
9900 5500 9900 5000
$Comp
L D_Zener_Small_ALT D2
U 1 1 5A9323FA
P 9200 4900
F 0 "D2" V 9200 5000 50 0000 C CNN
F 1 "4.7V" H 9200 4810 50 0000 C CNN
F 2 "Diodes_THT:D_A-405_P7.62mm_Horizontal" V 9200 4900 50 0001 C CNN
F 3 "" V 9200 4900 50 0001 C CNN
1 9200 4900
0 1 1 0
$EndComp
$Comp
L GND #PWR010
U 1 1 5A9324F7
P 9200 5500
F 0 "#PWR010" H 9200 5250 50 0001 C CNN
F 1 "GND" H 9200 5350 50 0000 C CNN
F 2 "" H 9200 5500 50 0001 C CNN
F 3 "" H 9200 5500 50 0001 C CNN
1 9200 5500
1 0 0 -1
$EndComp
Wire Wire Line
9200 5000 9200 5500
$Comp
L R R9
U 1 1 5A9325DE
P 9700 4450
F 0 "R9" V 9800 4450 50 0000 C CNN
F 1 "1k" V 9700 4450 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 9630 4450 50 0001 C CNN
F 3 "" H 9700 4450 50 0001 C CNN
1 9700 4450
0 1 1 0
$EndComp
Wire Wire Line
9900 4900 9900 4450
Wire Wire Line
9900 4450 9850 4450
$Comp
L R R8
U 1 1 5A9328A6
P 9200 3900
F 0 "R8" H 9300 3900 50 0000 C CNN
F 1 "10k" V 9200 3900 50 0000 C CNN
F 2 "Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" V 9130 3900 50 0001 C CNN
F 3 "" H 9200 3900 50 0001 C CNN
1 9200 3900
1 0 0 -1
$EndComp
Wire Wire Line
9200 3200 9200 3750
Connection ~ 6750 3200
Wire Wire Line
9200 4050 9200 4800
Wire Wire Line
8450 4450 9550 4450
Connection ~ 9200 4450
Wire Wire Line
8450 4850 8450 4450
Wire Notes Line
5750 4850 8150 4850
Wire Notes Line
8150 4850 8150 3650
Wire Notes Line
8150 3650 11150 3650
Wire Notes Line
11150 3650 11150 6350
Wire Notes Line
11150 6350 5750 6350
Wire Notes Line
5750 6350 5750 4850
Text Notes 7050 6200 0 60 ~ 0
Receive circuit. RxD switches polarity at around 8mA through R7.
$Comp
L Mounting_Hole MK3
U 1 1 5A9353BE
P 10700 1100
F 0 "MK3" H 10700 1300 50 0000 C CNN
F 1 "Mounting_Hole" H 10700 1225 50 0000 C CNN
F 2 "Mounting_Holes:MountingHole_4.3mm_M4_ISO14580" H 10700 1100 50 0001 C CNN
F 3 "" H 10700 1100 50 0001 C CNN
1 10700 1100
1 0 0 -1
$EndComp
$Comp
L Mounting_Hole MK1
U 1 1 5A935470
P 10100 1100
F 0 "MK1" H 10100 1300 50 0000 C CNN
F 1 "Mounting_Hole" H 10100 1225 50 0000 C CNN
F 2 "Mounting_Holes:MountingHole_4.3mm_M4_ISO14580" H 10100 1100 50 0001 C CNN
F 3 "" H 10100 1100 50 0001 C CNN
1 10100 1100
1 0 0 -1
$EndComp
$Comp
L Mounting_Hole MK2
U 1 1 5A9354CC
P 10100 1500
F 0 "MK2" H 10100 1700 50 0000 C CNN
F 1 "Mounting_Hole" H 10100 1625 50 0000 C CNN
F 2 "Mounting_Holes:MountingHole_4.3mm_M4_ISO14580" H 10100 1500 50 0001 C CNN
F 3 "" H 10100 1500 50 0001 C CNN
1 10100 1500
1 0 0 -1
$EndComp
$Comp
L Mounting_Hole MK4
U 1 1 5A935545
P 10700 1500
F 0 "MK4" H 10700 1700 50 0000 C CNN
F 1 "Mounting_Hole" H 10700 1625 50 0000 C CNN
F 2 "Mounting_Holes:MountingHole_4.3mm_M4_ISO14580" H 10700 1500 50 0001 C CNN
F 3 "" H 10700 1500 50 0001 C CNN
1 10700 1500
1 0 0 -1
$EndComp
$EndSCHEMATC

View File

@@ -0,0 +1 @@
*.dat.ngspice

View File

@@ -0,0 +1,11 @@
This directory contains various simulation of the M-Bus part of [MBus_USB.pdf](../doc/MBus_USB.pdf?raw=true).
The simulattions are done with [qucs-s](https://ra3xdh.github.io/) using [ngspice](http://ngspice.sourceforge.net)
as simulation backend.
The first simulation is as close to the original as possible and gradulally changed to
remove receiving parts and using a zener diode to have a constant 12V voltage drop
regardless of the power supply. The final version works with any voltage in M-Bus range.
![](mbus_master_004.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@@ -0,0 +1,33 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-240,1470,800,1,0,0>
<Grid=10,10,0>
<DataSet=current_limit.qucs-s.dat>
<DataDisplay=current_limit.qucs-s.sch>
<OpenDisplay=1>
<Script=current_limit.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 122 254 1301 204 3 #c0c0c0 1 00 1 15 2 50 1 -0.00687712 0.02 0.0473777 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/current_limit:i(pr1)" #0000ff 0 3 0 0 0>
<"ngspice/current_limit:i(pr2)" #ff0000 0 3 0 0 0>
<"ngspice/current_limit:i(pr3)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 190 12 1193 212 3 #c0c0c0 1 00 1 0 20000 100000 1 -9975.82 50000 109998 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/current_limit:v(out)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,80 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-20,-224,1566,535,0.8722,0,0>
<Grid=10,10,1>
<DataSet=current_limit.qucs-s.dat>
<DataDisplay=current_limit.qucs-s.dpl>
<OpenDisplay=1>
<Script=current_limit.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<_BJT BC337AP_2 1 280 210 -96 -26 1 2 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<_BJT BC337AP_1 1 500 150 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 500 440 0 0 0 0>
<GND * 1 280 440 0 0 0 0>
<IProbe Pr1 1 500 270 -41 -26 0 3>
<IProbe Pr2 1 280 330 -41 -26 0 3>
<Lib D1 1 500 -90 -34 6 0 3 "Z-Diodes" 0 "1N759" 0>
<Vdc V1 1 80 -50 18 -26 0 1 "34 V" 1>
<GND * 1 80 20 0 0 0 0>
<.DC DC1 1 30 360 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW2 0 650 230 0 61 0 0 "DC1" 1 "lin" 1 "V1" 1 "20V" 1 "40V" 1 "21" 1 "false" 0>
<IProbe Pr3 1 230 -150 -26 16 0 0>
<R R4 1 500 370 15 -26 0 1 "39" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R3 1 360 210 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R2 1 280 30 15 -26 0 1 "6k8" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R1 1 500 40 15 -26 0 1 "0" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr4 1 370 150 -14 -55 1 2>
<.SW SW3 0 910 300 0 61 0 0 "DC1" 1 "lin" 1 "R5" 1 "100" 1 "10k" 1 "300" 1 "false" 0>
<.SW SW1 1 30 110 0 61 0 0 "DC1" 1 "lin" 1 "R4" 1 "30 Ohm" 1 "200 Ohm" 1 "35" 1 "false" 0>
<VProbe Pr5 1 590 -100 -16 28 0 3>
</Components>
<Wires>
<500 180 500 210 "" 0 0 0 "">
<500 400 500 440 "" 0 0 0 "">
<280 240 280 300 "" 0 0 0 "">
<280 360 280 440 "" 0 0 0 "">
<500 -60 500 -50 "" 0 0 0 "">
<80 -20 80 20 "" 0 0 0 "">
<80 -150 80 -80 "" 0 0 0 "">
<80 -150 200 -150 "" 0 0 0 "">
<500 -150 500 -130 "" 0 0 0 "">
<260 -150 500 -150 "" 0 0 0 "">
<390 210 500 210 "" 0 0 0 "">
<310 210 330 210 "" 0 0 0 "">
<280 150 280 180 "" 0 0 0 "">
<280 -20 500 -20 "" 0 0 0 "">
<280 -20 280 0 "" 0 0 0 "">
<280 60 280 150 "" 0 0 0 "">
<500 -20 500 10 "out" 530 -40 9 "">
<500 70 500 120 "" 0 0 0 "">
<280 150 340 150 "" 0 0 0 "">
<400 150 470 150 "" 0 0 0 "">
<500 210 500 240 "" 0 0 0 "">
<500 300 500 340 "" 0 0 0 "">
<570 -130 570 -110 "" 0 0 0 "">
<500 -130 500 -120 "" 0 0 0 "">
<500 -130 570 -130 "" 0 0 0 "">
<570 -90 570 -50 "" 0 0 0 "">
<500 -50 500 -20 "" 0 0 0 "">
<500 -50 570 -50 "" 0 0 0 "">
<500 -150 500 -150 "in" 530 -180 0 "">
</Wires>
<Diagrams>
<Rect 760 37 693 187 3 #c0c0c0 1 00 1 30 20 200 1 20 5 36.7105 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/current_limit:v(in)" #0000ff 0 3 0 0 0>
<"ngspice/current_limit:v(out)" #ff0000 0 3 0 0 0>
<"ngspice/current_limit:v(pr5)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 820 140 12 #000000 0 "With the zener diode, the output is constantly 12V below the input voltage.\nAnd with the current limiting circuit, the load is always 20mA.\n\nhttps://en.wikipedia.org/wiki/Current_limiting#Single_power-supply_circuits\nhttps://electronics.stackexchange.com/questions/39465/current-limiters-using-transistors-and-diodes\n">
</Paintings>

View File

@@ -0,0 +1,40 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,19,1716,740,1,0,0>
<Grid=10,10,0>
<DataSet=mbus_master.qucs.dat>
<DataDisplay=mbus_master.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master.qucs.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 160 322 554 252 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(txd)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(mbusminus)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(mbusplus)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 120 640 575 216 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -2 2 5.22583 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(npnbase)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(rx)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(baseq1)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 820 464 576 398 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -2.97992 5 32.9982 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(mbusminus)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(mbusplus)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(txd)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,90 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=140,-10,2645,877,0.81227,0,58>
<Grid=10,10,1>
<DataSet=mbus_master.qucs.dat>
<DataDisplay=mbus_master.qucs.dpl>
<OpenDisplay=1>
<Script=mbus_master.qucs.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 420 0 0 0 0>
<GND * 1 200 230 0 0 0 0>
<Vrect V2 1 200 370 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<_BJT BC337AP_1 1 460 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 460 440 0 0 0 0>
<GND * 1 600 440 0 0 0 0>
<R_SPICE R4 1 600 390 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 600 170 15 -26 0 1 "39k" 1 "" 0 "" 0 "" 0 "" 0>
<R R1 1 340 340 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R_SPICE R5 1 900 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BD136_138_140_1 1 900 270 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<GND * 1 900 440 0 0 0 0>
<GND * 1 700 440 0 0 0 0>
<_BJT BC337AP_2 1 800 340 18 -26 1 2 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R6 1 700 170 15 -26 0 1 "33k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R7 1 700 370 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<.DC DC1 1 190 500 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.TR TR1 1 200 580 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<Vdc V3 1 420 610 18 -26 0 1 "5 V" 1>
<GND * 1 420 680 0 0 0 0>
<R_SPICE R9 1 510 540 -26 -53 0 2 "1k" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 800 440 0 0 0 0>
<R_SPICE R3 1 900 390 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<NutmegEq NutmegEq1 1 670 610 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 600 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<200 400 200 420 "" 0 0 0 "">
<200 340 310 340 "TxD" 290 310 56 "">
<460 270 600 270 "" 0 0 0 "">
<460 270 460 310 "" 0 0 0 "">
<370 340 430 340 "baseq1" 380 290 22 "">
<460 370 460 440 "" 0 0 0 "">
<600 420 600 440 "" 0 0 0 "">
<600 90 600 140 "" 0 0 0 "">
<600 200 600 270 "" 0 0 0 "">
<600 270 600 360 "" 0 0 0 "">
<600 90 700 90 "" 0 0 0 "">
<900 90 900 140 "mbusplus" 990 100 10 "">
<900 200 900 240 "mbusminus" 980 200 4 "">
<600 270 870 270 "pnpbase" 799 241 160 "">
<900 300 900 340 "" 0 0 0 "">
<900 420 900 440 "" 0 0 0 "">
<700 200 700 290 "" 0 0 0 "">
<700 400 700 440 "" 0 0 0 "">
<900 340 900 360 "" 0 0 0 "">
<830 340 900 340 "npnbase" 810 380 30 "">
<800 290 800 310 "" 0 0 0 "">
<700 290 700 340 "rx" 720 310 8 "">
<700 290 800 290 "" 0 0 0 "">
<700 90 900 90 "" 0 0 0 "">
<700 90 700 140 "" 0 0 0 "">
<420 640 420 680 "" 0 0 0 "">
<420 540 420 580 "" 0 0 0 "">
<420 540 480 540 "" 0 0 0 "">
<540 540 670 540 "" 0 0 0 "">
<670 290 670 540 "" 0 0 0 "">
<670 290 700 290 "" 0 0 0 "">
<800 370 800 440 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1160 673 755 383 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -0.5 2 6 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(txd)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.mbusdiff" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1190 140 12 #000000 0 "Simulation of complete M-bus part of\nhttps://github.com/rscada/libmbus/raw/master/hardware/MBus_USB.pdf.\n">
</Paintings>

View File

@@ -0,0 +1,34 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-52,2255,800,1,0,52>
<Grid=10,10,0>
<DataSet=mbus_master_002.qucs-s.dat>
<DataDisplay=mbus_master_002.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 80 265 558 225 3 #c0c0c0 1 00 1 0 0.1 1 1 -0.1 0.2 1.1 1 -0.1 0.2 1.1 315 0 225 "" "" "">
<"ngspice/mbus_master_002:tran.v(mbusminus)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_002:tran.v(txd)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 740 443 755 383 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -1.28635 2 14.7499 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master_002:tran.vdrop" #ff00ff 0 3 0 0 0>
<Mkr 0.00100411 214 -214 3 0 0>
<"ngspice/mbus_master_002:tran.v(txd)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,66 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=140,-10,2645,927,0.81227,0,58>
<Grid=10,10,1>
<DataSet=mbus_master_002.qucs-s.dat>
<DataDisplay=mbus_master_002.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 420 0 0 0 0>
<GND * 1 200 230 0 0 0 0>
<Vrect V2 1 200 370 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<_BJT BC337AP_1 1 460 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 460 440 0 0 0 0>
<GND * 1 600 440 0 0 0 0>
<R_SPICE R4 1 600 390 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 600 170 15 -26 0 1 "39k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R5 1 900 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BD136_138_140_1 1 900 270 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<GND * 1 900 440 0 0 0 0>
<.DC DC1 1 190 500 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.TR TR1 1 200 580 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
<.SW SW1 1 460 570 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "34V" 1 "12V" 1 "111" 1 "false" 0>
<NutmegEq NutmegEq1 1 680 520 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1 "vdrop=v(mbusplus)-v(mbusdiff)" 1>
<R R1 1 340 340 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 600 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<200 400 200 420 "" 0 0 0 "">
<460 270 600 270 "" 0 0 0 "">
<460 270 460 310 "" 0 0 0 "">
<460 370 460 440 "" 0 0 0 "">
<600 420 600 440 "" 0 0 0 "">
<600 90 600 140 "" 0 0 0 "">
<600 200 600 270 "" 0 0 0 "">
<600 270 600 360 "" 0 0 0 "">
<600 90 900 90 "" 0 0 0 "">
<900 90 900 140 "mbusplus" 990 100 10 "">
<900 200 900 240 "mbusminus" 980 200 4 "">
<600 270 870 270 "pnpbase" 799 241 160 "">
<900 300 900 440 "" 0 0 0 "">
<370 340 430 340 "baseq1" 380 290 22 "">
<200 340 310 340 "TxD" 290 310 56 "">
</Wires>
<Diagrams>
<Rect 1080 590 820 310 3 #c0c0c0 1 00 1 12 2 34 1 8.30002 5 36.2 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_002:v(mbusplus)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_002:v(mbusminus)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1190 140 12 #000000 0 "Similar to mbus_master_001 but with RX removed.\n">
<Text 1240 660 12 #000000 0 "The problem with using resistor voltage dividers is that\nthe voltage drop depends on the supply voltage and is not\nconstant 12V like it should be.">
</Paintings>

View File

@@ -0,0 +1,32 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-67,-43,1685,800,1,67,43>
<Grid=10,10,0>
<DataSet=mbus_master_003.qucs-s.dat>
<DataDisplay=mbus_master_003.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 70 268 730 233 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -1.323 2 12 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master_003:tran.v(pnpbase)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 70 638 728 295 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -1.323 2 12 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master_003:tran.i(pr1)" #ff00ff 0 3 0 0 0>
<"ngspice/mbus_master_003:tran.i(pr2)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,72 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=140,-10,2645,927,0.81227,0,58>
<Grid=10,10,1>
<DataSet=mbus_master_003.qucs-s.dat>
<DataDisplay=mbus_master_003.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 420 0 0 0 0>
<GND * 1 200 230 0 0 0 0>
<_BJT BC337AP_1 1 460 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 460 440 0 0 0 0>
<GND * 1 600 440 0 0 0 0>
<_BJT BD136_138_140_1 1 900 270 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<GND * 1 900 440 0 0 0 0>
<.DC DC1 1 190 500 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.TR TR1 1 200 580 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
<.SW SW1 1 460 570 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "34V" 1 "12V" 1 "111" 1 "false" 0>
<NutmegEq NutmegEq1 1 680 520 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1 "vdrop=v(mbusplus)-v(mbusdiff)" 1>
<R R1 1 340 340 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 700 270 -26 16 1 2>
<IProbe Pr2 1 900 370 16 -26 1 3>
<Vrect V2 1 200 370 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "1ms" 0>
<Lib D1 1 600 190 -34 6 0 3 "Z-Diodes" 0 "1N5348B" 0>
<R_SPICE R5 1 900 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R4 1 600 390 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 600 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<200 400 200 420 "" 0 0 0 "">
<460 270 600 270 "" 0 0 0 "">
<460 270 460 310 "" 0 0 0 "">
<460 370 460 440 "" 0 0 0 "">
<900 90 900 140 "mbusplus" 990 100 10 "">
<900 200 900 240 "mbusminus" 980 200 4 "">
<370 340 430 340 "baseq1" 380 290 22 "">
<200 340 310 340 "TxD" 290 310 56 "">
<730 270 870 270 "pnpbase" 820 240 52 "">
<900 300 900 340 "" 0 0 0 "">
<900 400 900 440 "" 0 0 0 "">
<600 90 900 90 "" 0 0 0 "">
<600 90 600 160 "" 0 0 0 "">
<600 270 670 270 "" 0 0 0 "">
<600 220 600 270 "" 0 0 0 "">
<600 270 600 360 "" 0 0 0 "">
<600 420 600 440 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1080 590 820 310 3 #c0c0c0 1 00 1 12 2 34 1 1.89113 5 36.919 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_003:v(mbusplus)" #ff00ff 0 3 0 0 0>
<"ngspice/mbus_master_003:v(mbusminus)" #00ff00 0 3 0 0 0>
<"ngspice/mbus_master_003:v(pnpbase)" #00ffff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1190 140 12 #000000 0 "Similar to mbus_master_002 but using a zener instead of R2.\n">
<Text 1240 660 12 #000000 0 "With a zener the voltage drop is constantly 12V like it should be.">
<Text 480 170 12 #000000 0 "11V 5W 1A">
</Paintings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View File

@@ -0,0 +1,33 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-1080,1119,3261,1,0,0>
<Grid=10,10,0>
<DataSet=mbus_master_004.qucs-s.dat>
<DataDisplay=mbus_master_004.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_004.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 140 -826 936 194 3 #c0c0c0 1 00 1 12 2 34 1 -0.00203476 0.01 0.0223864 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_004:i(pr1)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_004:i(pr2)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master_004:i(pr4)" #00ff00 0 3 0 0 0>
</Rect>
<Rect 140 -609 937 161 3 #c0c0c0 1 00 1 12 2 34 1 -0.00203476 0.01 0.0223864 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_004:i(pr3)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,105 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=146,50,2065,969,0.802424,0,0>
<Grid=10,10,1>
<DataSet=mbus_master_004.qucs-s.dat>
<DataDisplay=mbus_master_004.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_004.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 230 0 0 0 0>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
<R_SPICE R5 1 900 150 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<.TR TR1 1 1330 650 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<.SW SW1 1 1540 630 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "34V" 1 "12V" 1 "111" 1 "false" 0>
<GND * 1 200 800 0 0 0 0>
<GND * 1 460 800 0 0 0 0>
<GND * 1 900 810 0 0 0 0>
<IProbe Pr2 1 900 660 16 -26 1 3>
<Vdc V3 1 200 740 18 -26 0 1 "5 V" 1>
<_BJT BC337AP_1 1 460 670 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R1 1 320 670 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<_BJT BD136_138_140_1 1 900 530 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<NutmegEq NutmegEq1 1 1790 630 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1>
<VProbe Vdrop 1 1030 160 -16 28 0 3>
<IProbe Pr3 1 460 580 16 -26 1 3>
<_BJT BC337AP_2 1 370 420 -96 -26 1 2 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R8 1 370 320 15 -26 0 1 "6k8" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<_BJT BC337AP_3 1 500 370 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R7 1 440 420 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 710 530 -26 16 1 2>
<IProbe Pr4 1 640 630 -41 -26 0 3>
<R_SPICE R4 1 640 730 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 640 800 0 0 0 0>
<R R6 1 500 470 15 -26 0 1 "150" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Lib D2 1 640 150 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<.DC DC1 1 1100 560 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW2 1 1090 670 0 59 0 0 "SW1" 1 "lin" 1 "R5" 1 "1k" 1 "200k" 1 "200" 1 "false" 0>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 640 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<900 90 900 110 "mbusplus" 940 70 10 "">
<900 690 900 810 "" 0 0 0 "">
<200 770 200 800 "" 0 0 0 "">
<460 700 460 800 "" 0 0 0 "">
<350 670 430 670 "baseq1" 390 720 42 "">
<200 670 200 710 "" 0 0 0 "">
<200 670 290 670 "TxD" 220 610 56 "">
<900 180 900 190 "" 0 0 0 "">
<900 560 900 630 "" 0 0 0 "">
<1010 110 1010 150 "" 0 0 0 "">
<900 110 900 120 "" 0 0 0 "">
<900 110 1010 110 "" 0 0 0 "">
<1010 170 1010 190 "" 0 0 0 "">
<900 190 900 500 "mbusminus" 940 240 14 "">
<900 190 1010 190 "" 0 0 0 "">
<460 610 460 640 "" 0 0 0 "">
<460 520 460 550 "" 0 0 0 "">
<370 520 460 520 "" 0 0 0 "">
<370 450 370 520 "" 0 0 0 "">
<370 290 430 290 "" 0 0 0 "">
<500 290 500 340 "" 0 0 0 "">
<370 350 370 370 "" 0 0 0 "">
<370 370 370 390 "" 0 0 0 "">
<370 370 470 370 "" 0 0 0 "">
<470 420 500 420 "" 0 0 0 "">
<400 420 410 420 "" 0 0 0 "">
<500 500 500 520 "" 0 0 0 "">
<500 420 500 440 "" 0 0 0 "">
<500 400 500 420 "" 0 0 0 "">
<460 520 500 520 "" 0 0 0 "">
<640 530 680 530 "" 0 0 0 "">
<740 530 870 530 "pnpbase" 790 480 42 "">
<640 530 640 600 "" 0 0 0 "">
<640 660 640 700 "" 0 0 0 "">
<640 760 640 800 "" 0 0 0 "">
<430 290 500 290 "" 0 0 0 "">
<430 240 430 290 "" 0 0 0 "">
<640 240 640 530 "" 0 0 0 "">
<430 240 640 240 "" 0 0 0 "">
<640 180 640 240 "" 0 0 0 "">
<640 90 900 90 "" 0 0 0 "">
<640 90 640 120 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1160 410 820 310 3 #c0c0c0 1 00 1 12 2 34 1 -2.84689 10 40 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_004:v(mbusplus)" #00ff00 0 3 0 0 0>
<"ngspice/mbus_master_004:v(mbusminus)" #00ffff 0 3 0 0 0>
<"ngspice/mbus_master_004:v(vdrop)" #ff090d 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 500 140 12 #000000 0 "13V 5W 1A\n1N5350B">
<Text 1330 520 12 #000000 0 "For TxD high input, voltage drop is constant 12V for any supply voltage between ~13V to 34V\nand for any bus load between 1 to 200k Ohm.">
</Paintings>

View File

@@ -0,0 +1,25 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-8,1277,979,1,0,0>
<Grid=10,10,0>
<DataSet=mbus_master_100.qucs-s.dat>
<DataDisplay=mbus_master_100.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_100.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,111 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-60,2023,1131,0.84375,0,109>
<Grid=10,10,1>
<DataSet=mbus_master_100.qucs-s.dat>
<DataDisplay=mbus_master_100.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_100.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Lib D1 1 520 140 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<GND * 1 40 210 0 0 0 0>
<Vrect V2 1 40 640 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<IProbe Pr3 1 520 370 -41 -26 0 3>
<R R1 1 240 600 -26 15 0 0 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 380 560 -26 16 0 0>
<GND * 1 520 670 0 0 0 0>
<GND * 1 40 730 0 0 0 0>
<_BJT BC337AP_Q2 1 400 250 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R4 1 230 170 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 400 160 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vdc V1 1 40 140 18 -26 0 1 "42 V" 1>
<IProbe Pr4 1 630 210 -41 -26 0 3>
<R_SPICE R2 1 520 510 15 -26 0 1 "8.6k" 1 "" 0 "" 0 "" 0 "" 0>
<IProbe Pr2 1 120 490 16 -26 0 1>
<GND * 1 230 500 0 0 0 0>
<IProbe Pr5 1 230 440 -41 -26 0 3>
<_BJT BC337AP_Q1 1 230 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R3 1 150 340 -26 -53 0 2 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<VProbe Vdrop2 1 960 180 -16 28 0 3>
<IProbe Pr6 1 830 490 16 -26 1 3>
<GND * 1 830 680 0 0 0 0>
<Vdc V3 1 160 700 18 -26 0 1 "5 V" 1>
<GND * 1 160 790 0 0 0 0>
<R_SPICE R6 1 830 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<.DC DC1 1 1120 120 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW2 1 1590 120 0 60 0 0 "DC1" 1 "lin" 1 "R6" 1 "500" 1 "250k" 1 "251" 1 "false" 0>
<.TR TR1 0 1360 120 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "11" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<_BJT BC337AP_Q3 1 520 600 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<_BJT BD136_138_140_Q4 1 830 320 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
</Components>
<Wires>
<40 110 230 110 "" 0 0 0 "">
<40 170 40 210 "" 0 0 0 "">
<400 110 520 110 "" 0 0 0 "">
<400 110 400 130 "" 0 0 0 "">
<230 110 400 110 "" 0 0 0 "">
<230 110 230 140 "" 0 0 0 "">
<230 200 230 250 "" 0 0 0 "">
<400 190 400 220 "" 0 0 0 "">
<400 280 520 280 "" 0 0 0 "">
<40 600 40 610 "" 0 0 0 "">
<40 600 120 600 "TxD" 50 560 47 "">
<120 600 160 600 "" 0 0 0 "">
<520 280 520 320 "" 0 0 0 "">
<410 600 490 600 "" 0 0 0 "">
<410 560 410 600 "" 0 0 0 "">
<270 600 350 600 "" 0 0 0 "">
<350 560 350 600 "" 0 0 0 "">
<520 630 520 670 "" 0 0 0 "">
<520 240 520 280 "" 0 0 0 "">
<520 240 630 240 "" 0 0 0 "">
<520 170 630 170 "" 0 0 0 "">
<630 170 630 180 "" 0 0 0 "">
<520 400 520 480 "" 0 0 0 "">
<520 540 520 570 "" 0 0 0 "">
<120 520 120 600 "" 0 0 0 "">
<230 470 230 500 "" 0 0 0 "">
<230 370 230 410 "" 0 0 0 "">
<230 250 230 310 "" 0 0 0 "">
<230 250 370 250 "" 0 0 0 "">
<120 340 120 460 "" 0 0 0 "">
<180 340 200 340 "" 0 0 0 "">
<830 110 830 130 "mbusplus" 870 90 10 "">
<940 130 940 170 "" 0 0 0 "">
<830 130 940 130 "" 0 0 0 "">
<940 190 940 210 "" 0 0 0 "">
<830 210 940 210 "" 0 0 0 "">
<830 130 830 140 "" 0 0 0 "">
<830 200 830 210 "" 0 0 0 "">
<520 110 830 110 "" 0 0 0 "">
<830 210 830 290 "mbusminus" 870 260 14 "">
<520 320 520 340 "" 0 0 0 "">
<520 320 800 320 "pnpbase" 690 340 252 "">
<830 350 830 460 "" 0 0 0 "">
<830 520 830 680 "" 0 0 0 "">
<160 600 210 600 "" 0 0 0 "">
<160 600 160 670 "" 0 0 0 "">
<160 730 160 790 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1060 532 613 192 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_100:tran.v(pnpbase)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_100:tran.v(txd)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 1030 944 618 244 3 #c0c0c0 1 00 0 0 50000 250000 1 12.0429 0.05 12.217 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_100:v(vdrop2)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1040 590 12 #000000 0 "With 0/5V pulse input (e.g. V2 connected):\n\nThe mbusminus voltage goes properly back to mbusplus when TxD is low.">
<Text 1040 980 12 #000000 0 "With constant 5V input (e.g. V3 connected):\n\nThe voltage drop is between 12 and 12.2V for any load between 500 to 250kOm">
</Paintings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

View File

@@ -0,0 +1,156 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-14,8,2000,1199,0.774686,0,4>
<Grid=10,10,1>
<DataSet=mbus_master_101.qucs-s.dat>
<DataDisplay=mbus_master_101.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_101.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
<.ID -20 -16 SUB>
<Line -20 20 40 0 #000080 2 1>
<Line 20 20 0 -40 #000080 2 1>
<Line -20 -20 40 0 #000080 2 1>
<Line -20 20 0 -40 #000080 2 1>
</Symbol>
<Components>
<Lib D1 1 520 140 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<GND * 1 40 210 0 0 0 0>
<Vrect V2 1 40 640 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<IProbe Pr3 1 520 370 -41 -26 0 3>
<R R1 1 240 600 -26 15 0 0 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 380 560 -26 16 0 0>
<GND * 1 520 670 0 0 0 0>
<GND * 1 40 730 0 0 0 0>
<_BJT BC337AP_Q2 1 400 250 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R4 1 230 170 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 400 160 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vdc V1 1 40 140 18 -26 0 1 "42 V" 1>
<IProbe Pr4 1 630 210 -41 -26 0 3>
<IProbe Pr2 1 120 490 16 -26 0 1>
<GND * 1 230 500 0 0 0 0>
<IProbe Pr5 1 230 440 -41 -26 0 3>
<_BJT BC337AP_Q1 1 230 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R3 1 150 340 -26 -53 0 2 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<VProbe Vdrop2 1 960 180 -16 28 0 3>
<GND * 1 830 680 0 0 0 0>
<Vdc V3 1 160 700 18 -26 0 1 "5 V" 1>
<GND * 1 160 790 0 0 0 0>
<_BJT BC337AP_Q3 1 520 600 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<_BJT BD136_138_140_Q4 1 830 320 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<IProbe Pr6 1 830 440 16 -26 1 3>
<_BJT BC337AP_Q5 1 1040 510 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<.DC DC1 1 1600 370 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<R_SPICE R9 1 1330 430 -26 -53 0 2 "1k" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 1240 700 0 0 0 0>
<GND * 1 1040 700 0 0 0 0>
<GND * 1 1450 700 0 0 0 0>
<R_SPICE R10 1 1450 510 -71 -26 0 3 "100k" 1 "" 0 "" 0 "" 0 "" 0>
<IProbe Pr9 1 1450 620 16 -26 1 3>
<IProbe Pr8 1 1240 620 16 -26 1 3>
<IProbe Pr7 1 1040 620 16 -26 1 3>
<R_SPICE R8 1 1240 330 15 -26 0 1 "10k" 1 "" 0 "" 0 "" 0 "" 0>
<Lib D2 1 1240 500 13 6 1 3 "Z-Diodes" 0 "1N750" 0>
<IProbe Pr10 1 1240 220 16 -26 1 3>
<R_SPICE R7 1 830 560 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R6 1 830 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<Idc I1 1 730 220 18 -26 1 3 "11 mA" 1>
<.SW SW1 1 1490 120 0 61 0 0 "DC1" 1 "lin" 1 "I1" 1 "6m" 1 "11m" 1 "21" 1 "false" 0>
<.SW SW2 1 1650 120 0 61 0 0 "SW1" 1 "lin" 1 "V1" 1 "21" 1 "42" 1 "22" 1 "false" 0>
<R_SPICE R2 1 520 510 15 -26 0 1 "8.2k" 1 "" 0 "" 0 "" 0 "" 0>
</Components>
<Wires>
<40 110 230 110 "" 0 0 0 "">
<40 170 40 210 "" 0 0 0 "">
<400 110 520 110 "" 0 0 0 "">
<400 110 400 130 "" 0 0 0 "">
<230 110 400 110 "" 0 0 0 "">
<230 110 230 140 "" 0 0 0 "">
<230 200 230 250 "" 0 0 0 "">
<400 190 400 220 "" 0 0 0 "">
<400 280 520 280 "" 0 0 0 "">
<40 600 40 610 "" 0 0 0 "">
<40 600 120 600 "TxD" 50 560 47 "">
<120 600 160 600 "" 0 0 0 "">
<520 280 520 320 "" 0 0 0 "">
<410 600 490 600 "" 0 0 0 "">
<410 560 410 600 "" 0 0 0 "">
<270 600 350 600 "" 0 0 0 "">
<350 560 350 600 "" 0 0 0 "">
<520 630 520 670 "" 0 0 0 "">
<520 240 520 280 "" 0 0 0 "">
<520 240 630 240 "" 0 0 0 "">
<520 170 630 170 "" 0 0 0 "">
<630 170 630 180 "" 0 0 0 "">
<520 400 520 480 "" 0 0 0 "">
<520 540 520 570 "" 0 0 0 "">
<120 520 120 600 "" 0 0 0 "">
<230 470 230 500 "" 0 0 0 "">
<230 370 230 410 "" 0 0 0 "">
<230 250 230 310 "" 0 0 0 "">
<230 250 370 250 "" 0 0 0 "">
<120 340 120 460 "" 0 0 0 "">
<180 340 200 340 "" 0 0 0 "">
<830 110 830 130 "mbusplus" 870 90 10 "">
<940 130 940 170 "" 0 0 0 "">
<830 130 940 130 "" 0 0 0 "">
<940 190 940 210 "" 0 0 0 "">
<830 210 940 210 "" 0 0 0 "">
<830 130 830 140 "" 0 0 0 "">
<830 200 830 210 "" 0 0 0 "">
<520 110 730 110 "" 0 0 0 "">
<830 210 830 290 "mbusminus" 870 260 14 "">
<520 320 520 340 "" 0 0 0 "">
<520 320 800 320 "pnpbase" 690 340 252 "">
<160 600 210 600 "" 0 0 0 "">
<160 600 160 670 "" 0 0 0 "">
<160 730 160 790 "" 0 0 0 "">
<830 350 830 380 "" 0 0 0 "">
<830 470 830 510 "" 0 0 0 "">
<830 590 830 680 "" 0 0 0 "">
<830 510 830 530 "" 0 0 0 "">
<830 510 1010 510 "q5base" 960 440 83 "">
<1240 360 1240 430 "" 0 0 0 "">
<1040 430 1040 480 "" 0 0 0 "">
<1040 430 1240 430 "" 0 0 0 "">
<1240 430 1300 430 "" 0 0 0 "">
<1240 430 1240 470 "" 0 0 0 "">
<1360 430 1450 430 "RxD" 1430 400 39 "">
<1450 430 1450 480 "" 0 0 0 "">
<1040 540 1040 590 "" 0 0 0 "">
<1450 540 1450 590 "" 0 0 0 "">
<1450 650 1450 700 "" 0 0 0 "">
<1240 650 1240 700 "" 0 0 0 "">
<1040 650 1040 700 "" 0 0 0 "">
<1240 530 1240 590 "" 0 0 0 "">
<830 110 1240 110 "" 0 0 0 "">
<1240 110 1240 190 "" 0 0 0 "">
<1240 250 1240 300 "" 0 0 0 "">
<730 110 830 110 "" 0 0 0 "">
<730 110 730 190 "" 0 0 0 "">
<730 250 730 380 "" 0 0 0 "">
<830 380 830 410 "" 0 0 0 "">
<730 380 830 380 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 82 1100 487 230 3 #c0c0c0 1 00 1 0 50000 250000 1 -0.0722351 0.5 0.842553 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/mbus_master_101:v(q5base)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 670 1103 560 223 3 #c0c0c0 1 00 1 0 20000 249006 1 -0.00234274 0.01 0.0263551 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_101:i(pr6)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 1330 1112 512 232 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_101:v(rxd)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1470 500 12 #000000 0 "Arduino input pin">
<Text 1290 810 12 #000000 0 "RxD swicthes polarity at around 8mA through R7 regardless of the supply voltage.">
</Paintings>

View File

@@ -0,0 +1,30 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-120,1252,800,1,0,0>
<Grid=10,10,0>
<DataSet=minimaster_001.qucs-s.dat>
<DataDisplay=minimaster_001.qucs-s.sch>
<OpenDisplay=1>
<Script=minimaster_001.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 240 471 894 331 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_001:tran.v(mbusminus)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_001:tran.v(mbusplus)" #ff0000 0 3 0 0 0>
<"ngspice/minimaster_001:tran.v(txd)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,124 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,20,1797,1011,0.668012,0,0>
<Grid=10,10,1>
<DataSet=minimaster_001.qucs-s.dat>
<DataDisplay=minimaster_001.qucs-s.dpl>
<OpenDisplay=1>
<Script=minimaster_001.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Vdc V1 1 220 90 18 -26 0 1 "15 V" 1>
<C C1 1 320 90 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<Vdc V2 1 200 730 18 -26 0 1 "15 V" 1>
<C C2 1 290 730 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<GND * 1 220 150 0 0 0 0>
<GND * 1 170 700 0 0 0 0>
<.DC DC1 1 110 260 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<_BJT BC337AP_1 1 1640 330 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R11 1 1640 660 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R8 1 1540 130 15 -26 0 1 "15k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R9 1 1540 690 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 1190 430 0 0 0 0>
<R_SPICE R6 1 1240 710 15 -26 0 1 "2k2" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R5 1 1240 490 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_1 1 1240 630 -117 -23 0 1 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<_BJT BC337AP_2 1 1540 550 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R3 1 970 650 15 -26 0 1 "18k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 610 480 -28 19 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<.TR TR1 1 140 440 0 60 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<R_SPICE R10 1 1640 130 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC558AP_2 1 1100 170 28 -28 0 2 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<Diode D_1N4148_3 1 1030 220 -71 -70 0 0 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<R_SPICE R13 1 690 220 -26 -53 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 540 220 0 0 0 0>
<_BJT BC558AP_1 1 970 390 12 41 1 1 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R7 1 1380 440 15 -26 0 1 "6k8" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_2 1 880 430 -115 -21 0 3 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<GND * 1 710 390 0 0 0 0>
<_BJT BC558AP_3 1 980 270 -101 -1 0 2 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R12 1 1100 320 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<Vdc V5 1 400 610 18 -26 0 1 "5 V" 1>
<Vrect V4 1 400 510 18 -26 0 1 "20 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
</Components>
<Wires>
<220 60 320 60 "" 0 0 0 "">
<220 120 220 150 "" 0 0 0 "">
<170 700 200 700 "" 0 0 0 "">
<200 700 290 700 "" 0 0 0 "">
<200 760 290 760 "" 0 0 0 "">
<220 120 320 120 "" 0 0 0 "">
<320 60 1100 60 "" 0 0 0 "">
<290 760 400 760 "" 0 0 0 "">
<1540 720 1540 760 "" 0 0 0 "">
<1540 60 1540 100 "" 0 0 0 "">
<1540 160 1540 330 "" 0 0 0 "">
<1540 330 1610 330 "" 0 0 0 "">
<1640 360 1640 630 "mbusplus" 1670 480 151 "">
<1540 760 1640 760 "" 0 0 0 "">
<1640 690 1640 760 "mbusminus" 1670 700 45 "">
<1190 420 1190 430 "" 0 0 0 "">
<1190 420 1240 420 "" 0 0 0 "">
<1240 420 1240 460 "" 0 0 0 "">
<1240 520 1240 550 "" 0 0 0 "">
<1240 660 1240 680 "" 0 0 0 "">
<1240 760 1540 760 "" 0 0 0 "">
<1240 740 1240 760 "" 0 0 0 "">
<1540 580 1540 620 "" 0 0 0 "">
<1540 330 1540 520 "" 0 0 0 "">
<1240 550 1240 600 "" 0 0 0 "">
<1240 550 1510 550 "" 0 0 0 "">
<1540 620 1540 660 "" 0 0 0 "">
<970 760 1100 760 "" 0 0 0 "">
<970 680 970 760 "" 0 0 0 "">
<640 480 880 480 "" 0 0 0 "">
<400 480 580 480 "TxD" 500 450 68 "">
<1540 60 1640 60 "" 0 0 0 "">
<1640 60 1640 100 "" 0 0 0 "">
<1640 160 1640 170 "" 0 0 0 "">
<1100 60 1540 60 "" 0 0 0 "">
<1100 60 1100 140 "" 0 0 0 "">
<1640 170 1640 300 "" 0 0 0 "">
<1130 170 1640 170 "" 0 0 0 "">
<1100 200 1100 220 "" 0 0 0 "">
<1100 760 1240 760 "" 0 0 0 "">
<1060 220 1100 220 "" 0 0 0 "">
<720 220 980 220 "" 0 0 0 "">
<540 220 660 220 "" 0 0 0 "">
<970 420 970 480 "" 0 0 0 "">
<1000 390 1380 390 "" 0 0 0 "">
<1380 390 1380 410 "" 0 0 0 "">
<1380 620 1540 620 "" 0 0 0 "">
<1380 470 1380 620 "" 0 0 0 "">
<880 390 940 390 "" 0 0 0 "">
<970 480 970 620 "" 0 0 0 "">
<880 480 970 480 "" 0 0 0 "">
<880 460 880 480 "" 0 0 0 "">
<880 390 880 400 "" 0 0 0 "">
<710 390 880 390 "" 0 0 0 "">
<1100 220 1100 270 "" 0 0 0 "">
<1100 350 1100 360 "" 0 0 0 "">
<980 220 1000 220 "" 0 0 0 "">
<980 220 980 240 "" 0 0 0 "">
<1100 270 1100 290 "" 0 0 0 "">
<1010 270 1100 270 "" 0 0 0 "">
<980 300 980 360 "" 0 0 0 "">
<1100 360 1100 760 "" 0 0 0 "">
<980 360 1100 360 "" 0 0 0 "">
<400 540 400 580 "" 0 0 0 "">
<400 760 970 760 "" 0 0 0 "">
<400 640 400 760 "" 0 0 0 "">
</Wires>
<Diagrams>
</Diagrams>
<Paintings>
<Text 80 840 12 #000000 0 "Simulation of the complete minimaster.tif circuit, http://www.m-bus.com/files/minimaster.tif.\n\nNotice the input is RS-232, e.g. 5 to 15V input is logical false (space) and -5 to -15V input is logical true (mark).\nFor more details see "Fundamentals of RS232 Serial Communications", Application Note 83, http://ecee.colorado.edu/~mcclurel/dan83.pdf\n\nRxD is ignored.\nTxD is simulated as a +/-10 V pulse.\n">
</Paintings>

View File

@@ -0,0 +1,31 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,27,1125,580,1.37051,0,0>
<Grid=10,10,0>
<DataSet=minimaster_002.qucs-s.dat>
<DataDisplay=minimaster_002.qucs-s.sch>
<OpenDisplay=1>
<Script=minimaster_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 150 298 928 198 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_002:v(txd)" #0000ff 0 3 0 0 0>
<Mkr 1.83688 304 -98 3 0 0>
<"ngspice/minimaster_002:v(mbusplus)" #ff0000 0 3 0 0 0>
<Mkr 1.68794 284 -242 3 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,102 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,-40,1797,971,0.668012,0,0>
<Grid=10,10,1>
<DataSet=minimaster_002.qucs-s.dat>
<DataDisplay=minimaster_002.qucs-s.dpl>
<OpenDisplay=1>
<Script=minimaster_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Vdc V1 1 220 90 18 -26 0 1 "15 V" 1>
<C C1 1 320 90 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<Vdc V2 1 200 730 18 -26 0 1 "15 V" 1>
<C C2 1 290 730 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<GND * 1 220 150 0 0 0 0>
<GND * 1 170 700 0 0 0 0>
<.DC DC1 1 110 260 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<_BJT BC337AP_1 1 1640 330 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R11 1 1640 660 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R8 1 1540 130 15 -26 0 1 "15k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R9 1 1540 690 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 1190 430 0 0 0 0>
<R_SPICE R6 1 1240 710 15 -26 0 1 "2k2" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R5 1 1240 490 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_1 1 1240 630 -117 -23 0 1 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<_BJT BC337AP_2 1 1540 550 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R3 1 970 650 15 -26 0 1 "18k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 610 480 -28 19 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R10 1 1640 130 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC558AP_1 1 970 390 12 41 1 1 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R7 1 1380 440 15 -26 0 1 "6k8" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_2 1 880 430 -115 -21 0 3 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<GND * 1 710 390 0 0 0 0>
<GND * 1 400 580 0 0 0 0>
<.SW SW1 1 360 180 0 59 0 0 "DC1" 1 "lin" 1 "V3" 1 "0V" 1 "7V" 1 "141" 1 "false" 0>
<Vdc V3 1 400 510 18 -26 0 1 "1.6V" 1>
</Components>
<Wires>
<220 60 320 60 "" 0 0 0 "">
<220 120 220 150 "" 0 0 0 "">
<170 700 200 700 "" 0 0 0 "">
<200 700 290 700 "" 0 0 0 "">
<200 760 290 760 "" 0 0 0 "">
<220 120 320 120 "" 0 0 0 "">
<320 60 1540 60 "" 0 0 0 "">
<290 760 970 760 "" 0 0 0 "">
<1540 720 1540 760 "" 0 0 0 "">
<1540 60 1540 100 "" 0 0 0 "">
<1540 160 1540 330 "" 0 0 0 "">
<1540 330 1610 330 "" 0 0 0 "">
<1640 360 1640 630 "mbusplus" 1670 480 151 "">
<1540 760 1640 760 "" 0 0 0 "">
<1640 690 1640 760 "mbusminus" 1670 700 45 "">
<1190 420 1190 430 "" 0 0 0 "">
<1190 420 1240 420 "" 0 0 0 "">
<1240 420 1240 460 "" 0 0 0 "">
<1240 520 1240 550 "" 0 0 0 "">
<1240 660 1240 680 "" 0 0 0 "">
<1240 760 1540 760 "" 0 0 0 "">
<1240 740 1240 760 "" 0 0 0 "">
<1540 580 1540 620 "" 0 0 0 "">
<1540 330 1540 520 "" 0 0 0 "">
<1240 550 1240 600 "" 0 0 0 "">
<1240 550 1510 550 "" 0 0 0 "">
<1540 620 1540 660 "" 0 0 0 "">
<970 760 1240 760 "" 0 0 0 "">
<970 680 970 760 "" 0 0 0 "">
<640 480 880 480 "" 0 0 0 "">
<400 480 580 480 "TxD" 500 450 68 "">
<1540 60 1640 60 "" 0 0 0 "">
<1640 60 1640 100 "" 0 0 0 "">
<1640 160 1640 300 "" 0 0 0 "">
<970 420 970 480 "" 0 0 0 "">
<1000 390 1380 390 "" 0 0 0 "">
<1380 390 1380 410 "" 0 0 0 "">
<1380 620 1540 620 "" 0 0 0 "">
<1380 470 1380 620 "" 0 0 0 "">
<880 390 940 390 "" 0 0 0 "">
<970 480 970 620 "" 0 0 0 "">
<880 480 970 480 "" 0 0 0 "">
<880 460 880 480 "" 0 0 0 "">
<880 390 880 400 "" 0 0 0 "">
<710 390 880 390 "" 0 0 0 "">
<400 540 400 580 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 595 290 787 170 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_002:v(mbusplus)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_002:v(txd)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 80 840 12 #000000 0 "Simular to minimaster_001, but stripping down to just care for TxD.\n\nTxD is simulated as a +/-10 V pulse.\n">
</Paintings>

View File

@@ -0,0 +1,41 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-140,-62,1413,953,1,46,62>
<Grid=10,10,0>
<DataSet=minimaster_003.qucs-s.dat>
<DataDisplay=minimaster_003.qucs-s.sch>
<OpenDisplay=1>
<Script=minimaster_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 640 212 726 182 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:v(t2base)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 640 448 729 168 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:v(t5base)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 630 776 738 236 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:v(t4base)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_003:v(t4emitter)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 0 496 497 146 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:i(pr2)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 10 233 480 143 3 #c0c0c0 1 00 1 0 1 15 1 -0.000387336 0.001 0.00426069 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/minimaster_003:i(pr1)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,109 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,-7,1797,945,0.850882,0,0>
<Grid=10,10,1>
<DataSet=minimaster_003.qucs-s.dat>
<DataDisplay=minimaster_003.qucs-s.dpl>
<OpenDisplay=1>
<Script=minimaster_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Vdc V1 1 220 90 18 -26 0 1 "15 V" 1>
<C C1 1 320 90 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<Vdc V2 1 200 730 18 -26 0 1 "15 V" 1>
<C C2 1 290 730 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<GND * 1 220 150 0 0 0 0>
<GND * 1 170 700 0 0 0 0>
<.DC DC1 1 110 260 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<_BJT BC337AP_1 1 1640 330 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R11 1 1640 660 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R8 1 1540 130 15 -26 0 1 "15k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R9 1 1540 690 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 610 480 -28 19 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_2 1 880 430 -115 -21 0 3 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<GND * 1 400 580 0 0 0 0>
<Vdc V3 1 400 510 18 -26 0 1 "1.6V" 1>
<R_SPICE R6 1 1420 710 15 -26 0 1 "2k2" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_1 1 1420 630 -117 -23 0 1 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<R_SPICE R3 1 700 610 15 -26 0 1 "18k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R7 1 1080 520 15 -26 0 1 "6k8" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC558AP_1 1 1080 430 12 -11 1 0 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 720 400 0 0 0 0>
<IProbe Pr1 1 880 510 16 -26 0 1>
<.SW SW1 1 360 180 0 59 0 0 "DC1" 1 "lin" 1 "V3" 1 "0V" 1 "15V" 1 "301" 1 "false" 0>
<GND * 1 1360 380 0 0 0 0>
<R_SPICE R5 1 1420 400 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC337AP_2 1 1540 450 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<IProbe Pr2 1 1420 510 -41 -26 0 3>
</Components>
<Wires>
<220 60 320 60 "" 0 0 0 "">
<220 120 220 150 "" 0 0 0 "">
<170 700 200 700 "" 0 0 0 "">
<200 700 290 700 "" 0 0 0 "">
<200 760 290 760 "" 0 0 0 "">
<220 120 320 120 "" 0 0 0 "">
<320 60 1540 60 "" 0 0 0 "">
<290 760 700 760 "" 0 0 0 "">
<1540 720 1540 760 "" 0 0 0 "">
<1540 60 1540 100 "" 0 0 0 "">
<1540 160 1540 330 "" 0 0 0 "">
<1540 330 1610 330 "t5base" 1570 290 36 "">
<1640 360 1640 630 "mbusplus" 1670 480 151 "">
<1540 760 1640 760 "" 0 0 0 "">
<1640 690 1640 760 "mbusminus" 1670 700 45 "">
<640 480 700 480 "" 0 0 0 "">
<400 480 580 480 "TxD" 500 450 68 "">
<400 540 400 580 "" 0 0 0 "">
<1540 560 1540 660 "" 0 0 0 "">
<1420 760 1540 760 "" 0 0 0 "">
<1420 740 1420 760 "" 0 0 0 "">
<1420 660 1420 680 "" 0 0 0 "">
<700 760 1420 760 "" 0 0 0 "">
<700 640 700 760 "" 0 0 0 "">
<1080 560 1540 560 "" 0 0 0 "">
<1080 550 1080 560 "" 0 0 0 "">
<700 480 700 580 "" 0 0 0 "">
<1080 460 1080 490 "" 0 0 0 "">
<720 380 720 400 "" 0 0 0 "">
<720 380 880 380 "" 0 0 0 "">
<880 380 880 400 "" 0 0 0 "">
<1080 380 1080 400 "" 0 0 0 "">
<880 380 1080 380 "" 0 0 0 "">
<1640 60 1640 300 "" 0 0 0 "">
<1540 60 1640 60 "" 0 0 0 "">
<880 540 880 560 "" 0 0 0 "">
<770 560 880 560 "" 0 0 0 "">
<770 480 770 560 "" 0 0 0 "">
<700 480 770 480 "" 0 0 0 "">
<880 560 990 560 "" 0 0 0 "">
<990 430 990 560 "t2base" 1020 470 70 "">
<990 430 1050 430 "" 0 0 0 "">
<880 460 880 480 "" 0 0 0 "">
<1360 350 1360 380 "" 0 0 0 "">
<1360 350 1420 350 "" 0 0 0 "">
<1420 350 1420 370 "" 0 0 0 "">
<1420 430 1420 450 "" 0 0 0 "">
<1540 480 1540 560 "t4emitter" 1570 490 38 "">
<1540 330 1540 420 "" 0 0 0 "">
<1420 450 1510 450 "t4base" 1470 420 46 "">
<1420 450 1420 480 "" 0 0 0 "">
<1420 540 1420 600 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 595 250 787 170 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_002:v(mbusplus)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_002:v(txd)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 80 840 12 #000000 0 "Same as minimaster_002, but rearranging symbol placement a little.\nAnd removing R10 since only relevant for RX.\n\n">
</Paintings>

View File

@@ -0,0 +1,25 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-90,1202,800,1,0,0>
<Grid=10,10,0>
<DataSet=zener_test.dat>
<DataDisplay=zener_test.sch>
<OpenDisplay=1>
<Script=zener_test.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,98 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,60,1687,992,1,0,0>
<Grid=10,10,1>
<DataSet=zener_test.dat>
<DataDisplay=zener_test.dpl>
<OpenDisplay=1>
<Script=zener_test.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Lib D1 1 520 140 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<GND * 1 40 210 0 0 0 0>
<_BJT BC337AP_1 1 520 600 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<Vrect V2 1 40 640 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<Vdc V3 1 160 670 18 -26 0 1 "5 V" 1>
<GND * 1 160 730 0 0 0 0>
<IProbe Pr3 1 520 370 -41 -26 0 3>
<R R1 1 240 600 -26 15 0 0 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 380 560 -26 16 0 0>
<.SW SW3 1 230 720 0 59 0 0 "SW2" 1 "lin" 1 "R2" 1 "500" 1 "8.6k" 1 "20" 1 "false" 0>
<GND * 1 520 670 0 0 0 0>
<GND * 1 40 730 0 0 0 0>
<_BJT BC337AP_Q2 1 400 250 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R4 1 230 170 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 400 160 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vdc V1 1 40 140 18 -26 0 1 "42 V" 1>
<.TR TR1 1 870 90 0 59 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<.SW SW1 1 620 370 0 59 0 0 "DC1" 1 "lin" 1 "R1" 1 "100 Ohm" 1 "100kOhm" 1 "1000" 1 "false" 0>
<.DC DC1 1 620 300 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<IProbe Pr4 1 630 210 -41 -26 0 3>
<.SW SW2 1 370 720 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "12V" 1 "40V" 1 "29" 1 "false" 0>
<R_SPICE R2 1 520 510 15 -26 0 1 "8.6k" 1 "" 0 "" 0 "" 0 "" 0>
<IProbe Pr2 1 120 490 16 -26 0 1>
<GND * 1 230 500 0 0 0 0>
<IProbe Pr5 1 230 440 -41 -26 0 3>
<_BJT BC337AP_Q1 1 230 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R3 1 150 340 -26 -53 0 2 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
</Components>
<Wires>
<40 110 230 110 "" 0 0 0 "">
<40 170 40 210 "" 0 0 0 "">
<400 110 520 110 "" 0 0 0 "">
<400 110 400 130 "" 0 0 0 "">
<230 110 400 110 "" 0 0 0 "">
<230 110 230 140 "" 0 0 0 "">
<230 200 230 250 "" 0 0 0 "">
<400 190 400 220 "" 0 0 0 "">
<400 280 520 280 "" 0 0 0 "">
<40 600 40 610 "" 0 0 0 "">
<160 600 160 640 "" 0 0 0 "">
<40 600 120 600 "Vin" 40 560 35 "">
<120 600 160 600 "" 0 0 0 "">
<520 280 520 340 "" 0 0 0 "">
<160 600 210 600 "" 0 0 0 "">
<410 600 490 600 "" 0 0 0 "">
<410 560 410 600 "" 0 0 0 "">
<270 600 350 600 "" 0 0 0 "">
<350 560 350 600 "" 0 0 0 "">
<520 630 520 670 "" 0 0 0 "">
<520 240 520 280 "out" 550 270 21 "">
<520 240 630 240 "" 0 0 0 "">
<520 170 630 170 "" 0 0 0 "">
<630 170 630 180 "" 0 0 0 "">
<520 400 520 480 "" 0 0 0 "">
<520 540 520 570 "" 0 0 0 "">
<120 520 120 600 "" 0 0 0 "">
<230 470 230 500 "" 0 0 0 "">
<230 370 230 410 "" 0 0 0 "">
<230 250 230 310 "coll" 170 260 31 "">
<230 250 370 250 "" 0 0 0 "">
<120 340 120 460 "" 0 0 0 "">
<180 340 200 340 "" 0 0 0 "">
<40 670 40 730 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 526 916 495 202 3 #c0c0c0 1 00 1 12 2 40 0 0 0.002 0.001 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/i(pr4)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 870 549 555 139 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -3.47585 10 40 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/tran.v(coll)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 870 377 557 147 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -3.47585 10 40 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/tran.v(vin)" #0000ff 0 3 0 0 0>
<"ngspice/tran.v(out)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1050 720 12 #000000 0 "With a constant 5V input (e.g. V3 connected):\n\nFor R2 values up till 8.6k, D1 is loaded with 1mA or more for all\nV1 voltages over 21V (the minimum M-Bus bus voltage).\n\nThus, assuming the zener diode operates down to 1mA,\n8.6kOhm is the highest usable value for R2.\nIf the diode needs mode current than 1mA decrease\nR2 correspondingly. If the power supply is well above 21V\nthen 10kOhm is fine.\n">
<Text 1030 80 12 #000000 0 "With a 0/5V pulse input (e.g. V2 connected):\n\nQ1 inverts the input and shifts the voltage levels, e.g. 0V in (base)\ngives Vcc out (collector), and 5V in gives 0V out.\n\nR5 is a pullup resistor turned on/off by Q2. Without R5 then\nVout will not properly transition back to VCC.">
</Paintings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB