From 816be15f1e20c49afdefa340943b88889c64be0f Mon Sep 17 00:00:00 2001 From: Roar Fredriksen Date: Mon, 2 Oct 2017 16:43:11 +0200 Subject: [PATCH 1/6] Create README.md --- Electrical/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Electrical/README.md diff --git a/Electrical/README.md b/Electrical/README.md new file mode 100644 index 00000000..068af650 --- /dev/null +++ b/Electrical/README.md @@ -0,0 +1,19 @@ +# Electrical Design + +## Explained +The design is using an opamp as a compined level converter and a schmitt trigger, in order to convert +the HAN signal into a 3.3V compatible serial format. As the input levels on the opamp is much higher +than our 5V supply, we are rectifying and smoothing the HAN signal to use for a supply here. (VDD) + +As a power source, we've used a micro USB connector, providing 5V, just as this is cheap and easy. However, +no part of the circuit will need any other power than the 3.3V, so any combination of power source and +regulator that provides the 3.3V will do. + +The ESP8266 setup is a rather standaraized setup and will allow for programming the ESP directly on the +board, if needed. During programming, it might be neccessary to disconnect the incoming HAN. + +## Schematics +![Schematics](./Schematics.png) + +## PCB +![PCB](./PCB.PNG) From 88e5b3dacf2a741f4de7408f7cbe17c356326515 Mon Sep 17 00:00:00 2001 From: Roar Fredriksen Date: Mon, 2 Oct 2017 16:43:47 +0200 Subject: [PATCH 2/6] Update README.md --- Electrical/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Electrical/README.md b/Electrical/README.md index 068af650..6cefcab7 100644 --- a/Electrical/README.md +++ b/Electrical/README.md @@ -13,7 +13,7 @@ The ESP8266 setup is a rather standaraized setup and will allow for programming board, if needed. During programming, it might be neccessary to disconnect the incoming HAN. ## Schematics -![Schematics](./Schematics.png) +![Schematics](./Schematics.PNG) ## PCB ![PCB](./PCB.PNG) From bc36293094447a1cb1f65b006ccff0496893e761 Mon Sep 17 00:00:00 2001 From: Roar Fredriksen Date: Mon, 2 Oct 2017 16:46:18 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29e8e8f5..8b9c52ea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # AMS <-> MQTT Bridge +* [Electrical design](./Electical) + +## Background The purpose of this project is to collect information and build a simplified bridge for reading serial DLSM/M-bus information from electrical power meters (AMS), provided over the HAN port, and publishing to some IoT friendly target. Components will be ESP8622, Arduino code, a (very simplified) M-bus <-> 3.3V serial interface @@ -14,7 +17,7 @@ The project should include: - [x] [Documentation on HAN / MBus / DLMS/COSEM](/Documentation) - [X] Code to parse DLMS data into a structure - [X] Real schematics, including ESP8266 -- [ ] PCB layout +- [X] PCB layout - [ ] Arduino library - [X] Arduino sample sketch to read values and report to MQTT server From f4e4f3a8784e68084720988a80b513cf66aa9e8c Mon Sep 17 00:00:00 2001 From: Roar Fredriksen Date: Mon, 2 Oct 2017 16:46:37 +0200 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b9c52ea..8c699061 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AMS <-> MQTT Bridge -* [Electrical design](./Electical) +* [Electrical design](./Electrical) ## Background The purpose of this project is to collect information and build a simplified bridge for reading serial DLSM/M-bus information from electrical power meters (AMS), provided over the HAN port, and publishing to some IoT friendly target. From ea9ea7a5b927c47a71aa937788c5d6cf9c08d108 Mon Sep 17 00:00:00 2001 From: Roar Fredriksen Date: Mon, 2 Oct 2017 17:03:14 +0200 Subject: [PATCH 5/6] Update README.md --- Electrical/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Electrical/README.md b/Electrical/README.md index 6cefcab7..64aa6082 100644 --- a/Electrical/README.md +++ b/Electrical/README.md @@ -17,3 +17,23 @@ board, if needed. During programming, it might be neccessary to disconnect the i ## PCB ![PCB](./PCB.PNG) + +## Componenet list +Name | Value | Part +-----|------|----- +C1|10uF/25V|[P5148-ND](https://www.digikey.no/product-detail/en/panasonic-electronic-components/ECA-1EM100/P5148-ND/245007) +C2|100nF|[BC1101CT-ND](https://www.digikey.no/product-detail/en/vishay-bc-components/K104K10X7RF5UH5/BC2665CT-ND/2356879) +C3|220uF/35V|[1572-1706-ND](https://www.digikey.no/product-detail/en/illinois-capacitor/227CKS035M/1572-1706-ND/5411729) +D1|1N4148|[1N4148FS-ND](https://www.digikey.no/product-detail/en/fairchild-on-semiconductor/1N4148/1N4148FS-ND/458603) +P1||[609-4613-1-ND](https://www.digikey.no/product-detail/en/amphenol-fci/10118192-0001LF/609-4613-1-ND/2785378) +P2|Female|[S7004-ND](https://www.digikey.no/product-detail/en/sullins-connector-solutions/PPTC061LFBN-RC/S7004-ND/810145) +P3|Male|[952-2262-ND](https://www.digikey.no/product-detail/en/harwin-inc/M20-9990246/952-2262-ND/3728226) +P4||[609-1047-ND](https://www.digikey.no/product-detail/en/amphenol-fci/54602-910LF/609-1047-ND/1001361) +Q1|BC337|[BC33725TACT-ND](https://www.digikey.no/product-detail/en/fairchild-on-semiconductor/BC33725TA/BC33725TACT-ND/1532787) +R1-5,10,11|10K|[CF14JT10K0CT-ND](https://www.digikey.no/product-detail/en/stackpole-electronics-inc/CF14JT10K0/CF14JT10K0CT-ND/1830374) +R8|100K|[CF14JT100KCT-ND](https://www.digikey.no/product-detail/en/stackpole-electronics-inc/CF14JT100K/CF14JT100KCT-ND/1830399) +R9|330R|[CF14JT330RCT-ND](https://www.digikey.no/product-detail/en/stackpole-electronics-inc/CF14JT330R/CF14JT330RCT-ND/1830338) +R12,13|47K|[CF14JT47K0CT-ND](https://www.digikey.no/product-detail/en/stackpole-electronics-inc/CF14JT47K0/CF14JT47K0CT-ND/1830391) +S1,2||[450-1650-ND](https://www.digikey.no/product-detail/en/te-connectivity-alcoswitch-switches/1825910-6/450-1650-ND/1632536) +U2|LM1117-3.3|[LM1117IMPX-3.3/NOPBCT-ND](https://www.digikey.no/product-detail/en/texas-instruments/LM1117IMPX-3.3-NOPB/LM1117IMPX-3.3-NOPBCT-ND/3440160) +U3|LM358|[LM358NGOS-ND](https://www.digikey.no/product-detail/en/on-semiconductor/LM358NG/LM358NGOS-ND/918519) From e5ee29313b739fd3fcbe03cca8c0cff0ce05b7bd Mon Sep 17 00:00:00 2001 From: Roar Fredriksen Date: Mon, 2 Oct 2017 17:04:19 +0200 Subject: [PATCH 6/6] Update README.md --- Electrical/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Electrical/README.md b/Electrical/README.md index 64aa6082..8567d6c6 100644 --- a/Electrical/README.md +++ b/Electrical/README.md @@ -37,3 +37,5 @@ R12,13|47K|[CF14JT47K0CT-ND](https://www.digikey.no/product-detail/en/stackpole- S1,2||[450-1650-ND](https://www.digikey.no/product-detail/en/te-connectivity-alcoswitch-switches/1825910-6/450-1650-ND/1632536) U2|LM1117-3.3|[LM1117IMPX-3.3/NOPBCT-ND](https://www.digikey.no/product-detail/en/texas-instruments/LM1117IMPX-3.3-NOPB/LM1117IMPX-3.3-NOPBCT-ND/3440160) U3|LM358|[LM358NGOS-ND](https://www.digikey.no/product-detail/en/on-semiconductor/LM358NG/LM358NGOS-ND/918519) + +Note: The ESP8266 is not included here. It can easily be found on ebay etc