Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESPHome HAN Reader #1363

Merged
merged 14 commits into from
Dec 24, 2024
13 changes: 13 additions & 0 deletions projects/esphome-han-reader/BOM-esphome-han-reader.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Comment,Designator,Footprint,LCSC,Quantity
0.1 µF,"C3,C4",C_0402_1005Metric,C1525,2
10K,"R2,R4,R5,R6,R7,R8",R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,C17414,6
4K7,R3,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,C17673,1
5K1,"R1,R9",R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,C23186,2
TLV1117LV33DCYT,U2,SOT-223-3_TabPin2,C2877977,1
ResetBtn,"SW1,SW2",SW_SPST_TL3342,C318884,2
YTC-TC16-473,J2,USB_C_Receptacle_XKB_U262-16XN-4BVC11,C5329561,1
22uF,"C1,C2",C_0402_1005Metric,C5672,2
BC817W,Q1,SOT-323_SC-70,C75566,1
RJ12,J1,RJ12_DS1133-S60BPX,C77859,1
ESP-07,U4,ESP-07,C82894,1
FT232RL,U3,SSOP-28_5.3x10.2mm_P0.65mm,C8690,1
22 changes: 22 additions & 0 deletions projects/esphome-han-reader/CPL-esphome-han-reader.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Designator,Val,Package,Mid X,Mid Y,Rotation,Layer
C1,22uF,C_0402_1005Metric,150.62,-95.0,180.0,top
C2,22uF,C_0402_1005Metric,150.6,-99.2,0.0,top
C3,0.1 µF,C_0402_1005Metric,143.2,-77.18,90.0,top
C4,0.1 µF,C_0402_1005Metric,143.2,-75.28,-90.0,top
J1,RJ12,RJ12_DS1133-S60BPX,133.538071,-97.45,0.0,top
J2,YTC-TC16-473,USB_C_Receptacle_XKB_U262-16XN-4BVC11,131.06,-81.88,270.0,top
Q1,BC817W,SOT-323_SC-70,151.4,-97.1,180.0,top
R1,5K1,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,135.8,-79.6,-90.0,top
R2,10K,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,166.1,-107.5,180.0,top
R3,4K7,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,139.5,-95.1,90.0,top
R4,10K,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,157.9,-86.5,0.0,top
R5,10K,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,169.0,-86.5,0.0,top
R6,10K,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,162.0,-107.5,180.0,top
R7,10K,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,139.5,-99.1,-90.0,top
R8,10K,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,157.9,-107.5,180.0,top
R9,5K1,R_0805_2012Metric_Pad1.20x1.40mm_HandSolder,135.8,-84.2,90.0,top
SW1,ResetBtn,SW_SPST_TL3342,166.0,-79.2,90.0,top
SW2,FlashBtn,SW_SPST_TL3342,158.4,-79.2,90.0,top
U2,TLV1117LV33DCYT,SOT-223-3_TabPin2,145.15,-97.1,180.0,top
U3,FT232RL,SSOP-28_5.3x10.2mm_P0.65mm,148.6,-79.525,270.0,top
U4,ESP-07,ESP-07,163.9,-97.1,180.0,top
20 changes: 20 additions & 0 deletions projects/esphome-han-reader/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Simon K"
slack_handle: "@Lazyllama"
github_handle: "@Lazylllama"
tutorial: None, although used https://github.com/psvanstrom/esphome-p1reader
---

# ESPHome HAN Reader

<!-- Describe your board in 2-3 sentences. What are you making? What will it do? -->
## Usage
In Sweden and Norway afaik we have a port on our electrical meters called the [HAN-port](https://github.com/u9n/hanporten) (Home Area Network), with this port you can get details about your power usage in almost realtime and with extreme detail compared to alternatives. I use Home Assistant in my home and we recently got our electrical meter replaced with one that has a HAN-port so I saw that as an perfect opportunity to learn some stuff and have fun.

<!-- How much is it going to cost? -->
## Costs
Due to the amount of components and the RJ12 port aswell as ESP8266 and FTDI chip, the total cost of ordering from JLCPCB with the cheapest shipping alternative would come out to $84.36 USD.

<!-- Tell us a little bit about your design process. What were some challenges? What helped? ***Totally optional*** -->
## Design Process
I've never really designed a PCB close to something like this so this was an incredible challenge. First time using KiCad aswell so alot of youtube and googling. Needing to learn everything, routes, arcs, grids, and exporting to JLCPCB. My biggest problem was without a doubt, KiCad or KiCad Wakatime crashing like every 15 minutes. The problems with the wakatime addon that now have been fixed required me to do this project almost without any time tracking sadly, but that wasnt gonna stop me, KiCad was going to by crashing ALOT. But obviously I managed to finish my project with a few braincells left. As I'm typing this it's 6AM day 2 and I just got done, I just went on school break and I have already managed to fu*k my sleep schedule 🙂
Binary file added projects/esphome-han-reader/cart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/esphome-han-reader/gerber.zip
Binary file not shown.
Binary file added projects/esphome-han-reader/schematic.pdf
Binary file not shown.
Loading
Loading