power-extender

Public

stargate01/power-extender

Loading…

Description

Imported from GitHub: StarGate01/power-extender · commit 5d17e90 · license MIT

Description

Hardware and software for a power and IO extension PCB with current monitoring and I2C interface.

README

Power Extender

Hardware and software for a power and IO extension PCB with current monitoring and I2C interface.

This project has been generously supported by PCBWay. Read more about this project and also my review of the manufacturing on my blog: Design And Assembly Of An I2C Relay PCB

PCB

Usage

Use KiCad with my CustomComponents library to view and edit the hardware project, or download the fabrication files for PCB and/or PCBA manufacturing. I used KiBOM to generate the BOM. You can also download the complete schematics as PDF.

See the Arduino library documentation for usage with the Arduino framework. The library is also available on PlatformIO. Use Visual Studio Code and the PlatformIO plugin to edit the Arduino library and tests.

See the Raspberry Pi library documentation for usage with the Raspberry Pi Python 3 smbus framework.

Features and Specifications

  • Power input via 5V and 3V3 pins
    • Min. 250mA @ 5V to actuate all four relays simultaneously
    • Less than 30mA @ 5V standby current
    • 3V3 voltage level is only required for I2C level shifting if the I2C signal level is 3.3V instead of 5V
  • I2C bus for connection to a I2C master via JST header RPI
    • I2C bus passthrough via JST header PASS
    • Internal pullup resistors
    • Level-shifting 3.3V - 5V tolerant bus
  • Four SRD-05VDC-SL-C three-lead (NC - COM - NO) magnetic relays
    • Each has a CC6902SO-10A inductive current measuring IC connected across COM
    • Galvanically isolated driver circuit using an optocoupler
    • Flyback diode protection
    • Red status LED indicates COM - NO actuation
    • 2oz thick copper traces enable high currents
    • Isolation milling reduces risk of shorting in damp environments
    • Maximum power: 10A, 250VAC, 110VDC
    • Contact load rating: resistive 7A @ 28VDC, 10A @ 125VAC, 7A @ 240VAC, inductive 3A @ 120VAC, 3A @ 28VDC
  • One PCA9557 8-channel GPIO port (I2C address: 0x18), logic level 0V | 5V
    • GPIO channels 0Z - 3 connected to JST header DIGITAL
    • Relays are connected to GPIO channels 4 - 7
    • Maximum current (except channel 0Z): 25mA sink, 20mA source per channel, max. total: 100mA sink, 85mA source
    • Channel 0Z is high-impedance and open-drain (see datasheet for details)
  • Two ADS1115 4-channel 16-bit ADC ports, voltage range 0V - 5V
    • All four pins of ADC 1 connected to current measuring ICs (I2C address: 0x48)
    • All four pins of ADC 2 connected to JST header ANALOG (I2C address: 0x49)
    • Configurable sample rate and gain amplifier
    • Max. 10mA continuous input current

For further specifications and ratings, all datasheets can be found in this repository.

Sensor Calibration

Due to the inherent nature of magnetic relays, the inductive current measuring ICs and also the ADCs experience a measurement offset while the relays are energized. It is recommended to measure the actual load at a distance from the board, in order to obtain reference values. These reference values should then be used to compute an offset or function for each channel and amount of relays energized.

For no load (floating) using an Arduino Uno, the maximum absolute measurement offset was found to be about as follows.

Amount of relays energizedOffset at energized channelOffset at disabled channel
00.05A0.05A
11A0.7A
21.5A1.3A
32A1.8A
42.4AN / A

Please note that these offsets are dependent on load and environmental factors.

PCB Details

17 unique parts, 60 SMT parts, 12 THT parts on a double-sided 90mm x 71mm PCB with 2oz copper finish.

Component cost per board: about $25 (Ignoring shipping, bulk discounts and changes in price over time).

Item #DesignatorQuantityManufacturerManufacturer Part #Description / ValueDistributorDistributor part #Package / FootprintTypeNotes
1C11, C21, C31, C414AnyTBDCAP CER 100PF MAX. 5% MIN. 10V 0805 SMDAnyTBDSMD 0805SMD
2C1, C2, C12, C22, C32, C426AnyTBDCAP CER 100NF MAX. 5% MIN. 10V 0805 SMDAnyTBDSMD 0805SMD
3D12, D22, D32, D424Shikues1N4007FDIODE 1N4007 SMAFLCSCC110856SMAFSMD
4D11, D21, D31, D414Everlight Elec17-21SURC/S530-A3/TR8LED RED 2V 0805 SMDLCSCC72037SMD 0805SMD
5J1, J2, J3, J44AnyTBDCONN JST-XH PITCH-2.50MM VERTICAL MALE 5 PINAnyTBDThrough HolePTH
6J11, J21, J31, J414Ningbo Kangnex ElecWJ128V-5.0-3PCONN SCREW TERMINAL PITCH-5.0MM 3 PIN 20ALCSCC8270Through HolePTH
7K11, K21, K31, K414Ningbo Songle RelaySRD-05VDC-SL-CRELAY SEALED SENSITIVE 5V 10ALCSCC35449Through HolePTH
8Q1, Q22ShikuesBSS138MOSFET N-CH SOT-23-3LCSCC112239SOT-23-3SMD
9Q11, Q21, Q31, Q414NexperiaPMBT3904,215BJT NPN SOT-23-3LCSCC8667SOT-23-3SMD
10R14, R24, R34, R444AnyTBDRES 100 OHM MAX. 1% MIN. 1/8W 0805 SMDAnyTBDSMD 0805SMD
11R11, R12, R21, R22, R31, R32, R41, R428AnyTBDRES 200 OHM MAX. 1% MIN. 1/8W 0805 SMDAnyTBDSMD 0805SMD
12R1, R13, R23, R33, R435AnyTBDRES 1K OHM MAX. 1% MIN. 1/8W 0805 SMDAnyTBDSMD 0805SMD
13R2, R3, R4, R5, R15, R25, R35, R458AnyTBDRES 10K OHM MAX. 1% MIN. 1/8W 0805 SMDAnyTBDSMD 0805SMD
14U1, U32Texas InstrumentsADS1115IDGSRIC I2C 4 CH ADC VSSOP-10LCSCC37593VSSOP-10SMD
15U12, U22, U32, U424Cross ChipCC6902SO-10AIC CURRENT SENSOR 5V 10A SOP-8LCSCC350865SOP-8SMD
16U11, U21, U31, U414Sharp MicroelectronicsPC817X2CSP9FIC OPTOCOUPLER SMD-4LCSCC66405SMD-4SMD
17U21NXP SemiconPCA9557PW,118IC I2C 8 CH IO EXPANDER TSSOP-16LCSCC141380TSSOP-16SMD
Comments

No comments yet. Be the first to ask about this board.

Askabout this board