Skip to the content
2 layers137.2 × 111.8 mmHa pcb, the printed circuit board in 3D

PCB for my home automation. For reviewing purposes.

Size
137.2 × 111.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
55
Nets
82
Pads
307
Tracks, vias
463, 1
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
9 Mar 2022
Updated
7 Jan 2024

Overview

Ha pcb is an open-source printed circuit board by cristi-zz, from the cristi-zz/ha-pcb repository on GitHub. It is a 2-layer board of 137.2 × 111.8 mm with 55 parts on 82 nets, routed with 463 tracks and 1 via.

It is built around the DS18B20, PCF8575DB and ADS1115. Its parts include 17 connectors, 13 resistors, 11 ICs, 5 diodes and 4 capacitors.

Main components

3

README

README.md

Home automation PCB

The story behind this, can be found on my blog

It will hold a series of breakout boards for I2C IO expanders, 1Wire drivers, ADCs. All are controlled with a Raspberry Pi 3B+.

The 220V actuators are controlled by a board with 16 mechanical relays. The board is in turn controlled by PCF8575 chip that takes I2C commands and controls 16 I/O pins. Board is active on low (optocouplers), PCF8575 can sink more current (than it could source). Perfect match.

The 16 relay board is separate, from this PCB, only a pin header connection is made.

The temperature sensors are DS18B20 that work on 1 wire protocol. These are already mounted with Ethernet cables terminated with RJ45. The sensors are read/driven by 4 ds2482s-100 chips (RJ45 terminals and ds2482s-100 are on this PCB). The RJ jacks must be galvanic!

There are some other relays/contactors/voltages that needs monitoring, all done by 2 ADS1115 16-Bit ADC, present on board.

The chips are already sourced and live on their breakout boards. The PCB is mainly THT because of sourcing issues (eg can't find ds2482s-100 anywhere, will reuse existing breakouts). Only SMD are the 3.5 audio jacks (for ADC) again because no THT could be sourced atm.

The Raspberry Pi connector is only 20 pin wide because only the first few are used (5V, 3.3, SDA, SCL, GND)

There is a spurious bug, all relays are ON when the 16 relay board is powered but the Raspberry (that powers the rest of the circuits) is OFF. So, a solid state relay is used to cut power to the relay board when the RaPi is shutted down.

With the exception of ADCs, the schema and design choices follow the existing (4 years old) system.

This repo is mainly for reviewing purposes.

The story behind this PCB is on www.visoft.ro

PCB image with copper layers

A list with the devices

Relay board that will be driven:

https://www.sainsmart.com/products/16-channel-12v-relay-module

16 channel IO expander that will drive the board:

https://www.artekit.eu/products/breakout-boards/io/ak-pcf8575-i2c-16-bit-io-expander-breakout/

I2C level shifter (3.3 to 5V)

https://www.pololu.com/product/2595

I2C to differential signals:

https://www.sparkfun.com/products/retired/14589

1Wire drivers:

https://www.artekit.eu/products/breakout-boards/io/ak-ds2482s-100/

ADC:

https://www.adafruit.com/product/1085

Some ADC "watch" only for presence/absence of 5V power but some are listenting to CT sensors. Quasi similar model: https://www.seeedstudio.com/Non-invasive-AC-Current-Sensor-30A-ma-p-519.html

Solid state relay:

https://www.tme.eu/en/details/dmo063/dc-solid-state-relays/crydom/

Add comments here (as git issues) or on EEVBlog.

Parts

55
QtyValueFootprintReferences
51KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R10, R11, R12, R13
53.5Inch_AudioLibrary:3.5mmJack SMDJ12, J13, J14, J15, J16
410KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3, R4, R5
4AK-DS2482S-100Library:AK-DS2482S-100U4, U7, U10, U11
4MountingHoleMountingHole:MountingHole_2.5mmH1, H2, H3, H4
347KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7, R9
3LEDLED_THT:LED_D5.0mmD1, D4, D5
3RJ45_1W1WLibrary:RJ45_Ninigi_GE_silverJ8, J10, J11
21N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2, D3
24.7uFCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC1, C2
2ADS1115Library:ADS1115U8, U9
2RJ45_NC1WLibrary:RJ45_Ninigi_GE_silverJ1, J5
10.1uFCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC3
112V INTerminalBlock_RND:TerminalBlock_RND_205-00001_1x02_P5.00mm_HorizontalJ2
112V OUTTerminalBlock_RND:TerminalBlock_RND_205-00001_1x02_P5.00mm_HorizontalJ3
14.7KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR8
1470uF/16VCapacitor_THT:CP_Radial_D8.0mm_P3.80mmC4
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ6
1DMO063_SSRLibrary:DMO063_SSRU1
1DS18B20Package_TO_SOT_THT:TO-92_Inline_WideU6
1Jumper_2_OpenConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1
1PCA9615_I2C_DiffConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalU5
1PCF_8575Library:PCF_8575U3
1Pololu_Level_ShifterLibrary:Pololu Level ShifterU2
1RaPi_ConnectorConnector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_VerticalJ4
1SainSmart_connectorConnector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_VerticalJ7
1lockedLibrary:RJ45_Ninigi_GE_silverJ9
1lockedLibrary:3.5mmJack SMDJ17

Similar boards

  • 2 layers100 × 55 mmWellD, the printed circuit board in 3D

    WellD

    kinggh0stee/WellD

    ESP32-C6 Zigbee well monitor — reads a 4–20 mA pressure transducer and DS18B20, reports water level, temperature, and battery to Zigbee2MQTT with OTA update support

    122 parts2MIT
  • 2 layers81.5 × 58.7 mmKonservasi air, the printed circuit board in 3D

    Konservasi air

    heliumonoxide/water_quality_monitoring_device

    Water Quality Monitoring in Water Fountain at Gedung K Faculty of Engineering UI

    31 partsMIT
  • 2 layers48 × 63 mmPod PCB V3, the printed circuit board in 3D

    Pod PCB V3

    ka1e27/dreams

    Autonomous survey catamaran: CV-based obstacle avoidance, environmental sensing, and cellular telemetry to a web dashboard.

    54 parts
  • 2 layers85 × 56 mmBasicengine, the printed circuit board in 3D

    Basicengine

    uli/basicengine-pcb

    Schematics and PCB layout for the BASIC Engine home computer

    115 parts48
  • 6 layers200 × 200 mmMotherboard, the printed circuit board in 3D

    Motherboard

    c4puter/motherboard

    609 parts22CC0-1.0
  • 2 layers150 × 150 mmBoardGame, the printed circuit board in 3D

    BoardGame

    jkordek1/Man-Don-t-Get-Angry-Board-game

    "Man don't get mad" - electronic board game

    218 parts5

Questions

How big is the Ha pcb PCB?

It measures 137.2 × 111.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Ha pcb use?

55 parts, built around the DS18B20, PCF8575DB and ADS1115. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Ha pcb KiCad files?

From the cristi-zz/ha-pcb repository on GitHub, at the commit this page was made from: the board is ha-pcb.kicad_pcb and its schematic ha-pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ha pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask cristi-zz before reusing the design.