Relay and Isolated Input Base Board
Relay and Isolated Input Base Board
This PCB is part one of a stackable series, which will comprise an Automation Controller, controllable via the ESP32-s or ESP-12E SOC modules. `This project is considered the next step in my quest to create the ultimate Home Automation controller.
With this PCB, I attempt to solve a few problems, as well as incorporate some of my already well functioning circuits into a stackable base-board. In my previous project, (Make your own ESP12-E based IoT Controller) I managed to create ( in my opinion at least ) a close-to-very-easy-to-use device. While this may be true, the ESP-12E based controller still had quite a few shortcomings.
-It can only be powered from a DC power source, making it necessary to have external AC-to-DC conversion components.
-It has only two built-in relays
-It has no optically Isolated inputs, thus making it necessary to use external circuitry to protect the inputs from voltages bigger than 3v.
-It has only another 4 spare GPIO on the PCF8574 port expander
-Needs more power ports ( 3v, 5v and GND ), as well as more access to the I2C Bus.
-An external level converter is required to connect devices requiring 5v to the I2C Bus or other GPIO pins.
Of all these, certainly the most painful, to me at least, is definitely the lack of support for powering the device directly from AC mains power.
This project is thus my attempt to correct that. Another big concern is board size. I want to stay in a form factor that is relatively as small as possible, to make it easy to install into already available commercial electrical containers and boxes.
It was thus decided to go for a series of stackable cards, with each adding functionality to the completed device, while not necessarily needing every single one of them in order to have a functional device.
So, let us start with a detailed explanation of the PCB.
Powering the device from AC power.
This part seemed to me to be the most problematic at first, as designing a custom SMPS is definitely not something that I am very comfortable with. I have thus decided to use a commercially available PCB mounted AC/DC module, delivering 5v at 2A to take care of that issue. The HLK-10M05 is quite reliable and already proven in the industry. It is also relatively cheap and easily obtainable.
Having the possibility to power the device completely from DC power is also not an ability that I would like to lose. I have thus also included a DC power jack as an alternative power source. This will power a 5v LDO regulator, as well as the required 3.3v LDO regulator for the ESP SOC. This 5v regulator is protected with a protection diode to prevent 5v power from flowing into it when the SMPS is in use.
I have also noted in the ESP-12E version, that the regulators got a little hotter than I would like when powering the device from 15v DC.
I have thus added some large via-stitched copper heatsinks below the LDO regulators, as well as the SMPS module to help to dissipate some
of the generated heat. In the newest prototype, this seemed to work quite well.
Quite a few filtering and decoupling capacitors were added to the power supply circuit to decrease any ripple to an absolute minimum.
The +3v, +5v and ground lines are fed to the stacked boards through a 2x4 way header in the right-hand corner of the PCB
The usual anti-tracking cut-out slots were also added to all areas where mains power will be present. These areas were also excluded from the ground planes on the PCB.
Optically Isolated Digital Inputs (x4)
In the top left-hand corner of the PCB is an 8-way screw terminal, connected to the Optically Isolation Circuits. These signals will be sent up to the controller board via a 2x2 pin header in the same left-hand corner. The circuitry is based on a previous design of myself, based on the EL357N, and capable of accepting a signal of 5.5v to 32.0v DC. Please note that this signal is completely galvanically isolated from the board. This means that you must provide a separate ground for each individual input as well. This ground should not be common to the PCB, as doing that will defeat the purpose of isolating the input in the first place. Four status LEDs are provided for port status and debugging purposes.
The Relay control circuitry
The relay control circuit is once again exactly the same, optically isolated relay driver circuit as was used in the ESP-12E IoT controller PCB. This circuit performs well and I did not see any need to change it. The only change was the addition of an additional two relays to the PCB.
I think it is worth noting that these relays are MAINS POWER FREE, i.e DRY Contacts. This, in my opinion, provides greater flexibility to the end-user, by allowing him/her to switch AC or DC with a specific relay. The components for each relay driver is placed close together, in order to make repair and debugging in the event of a failure easier. The relay circuits are ACTIVE LOW, and the control signals are received from a 2x2 pin header roughly in the centre, right-hand side of the PCB.
Standalone Use, or using the PCB with another microcontroller.
It is also possible to use this PCB with another microcontroller, for example, an STM32 of Arduino, providing that you take in mind that the optically Isolated Inputs will provide a 3v signal. A level converter can be used to take them up to 5v. The relay drivers are also designed for 3v and need to be driven low to energise the relay. A total of 4 ground pins and two each 3v and 5v are broken out onto headers.
Mechanical details
The PCB dimensions are +/- 100mm wide by 97mm high.
6 mounting holes of 3.2mm diameter are provided for mounting
All AC capable connectors should be 5.08mm pitch screw-type terminals.
Optically Isolated Inputs are 2.54mm screw-type terminals.
All other headers are standard 2.54mm male pin headers.
The device should be fused at 1A, with a slow-blow type fuse. ( Operating current is 700mA at peak )
Code
This PCB required no coding and contains no programmable parts.
Relay and Isolated Input Base Board
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(5)
- W01449A Jan 27,2024
- Engineer Aug 24,2023
- amal jacob May 23,2023
- Engineer Mar 09,2023
- Engineer Feb 21,2023
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Jean Redelinghuys MakerIoT2020
- PCB_MCP23008_2023-10-08 MCP23008 BreakoutI designed this breakout to assist me during prototyping my next version of the “RP...
- PCB_XiaoRP2040-Mouse-REV2 Xiao RP2040 Joystick Mouse – revision 2.00Revision 1.0 of the ProjectOver the last few months, I hav...
- Multi Purpose IO Card Multi-Purpose IO CardWhen we are working on a prototype, we always need access to pushbuttons, encod...
- Variable Voltage Power Module Variable Voltage Power ModulePowering electronics projects are always challenging. This Variable vol...
- I2C Matrix Keypad An I2C Matrix KeypadThe completed I2C Matrix KeypadIn a previous post this month I introduced my 4×4...
- ESP32-S Development Board, in "Arduino Uno" form factor UPDATE 24/06/2023:This board now has a Hardware Revision 2.0 available. It is the same board but wit...
- W307186ASC94_Gerber_PCB_USB-Ports USB Power Supply ModuleUSB Ports are quite handy to power all our day-to-day electronic devices, but...
- Atmega 328P based PWM controller Card ATMega 328P Based PWM controller CardAs part of my recent ESP-12E I2C Base Board project, I designed...
- W307186ASC71_Gerber_PCB_ESP-Now Remote Today we will look at the remote control unit for the Robotic Toy Car – Part 6.The project is close ...
- W307186ASV69_Gerber_PCB_Robot-Car-MCU-Board Prototype In our last project, we started working on repurposing an old toy car. In this part, Robot Toy Car –...
- W307186ASV62_Gerber_PCB_DUAL-H-Bridge by makeriot2020 on May 27, 2022Many of us have old toys laying around the house, they belong to ou...
- CAN-BUS Breakout Breadboard Compatible CAN-BUS Breakout ModuleWhat is this:Some of us have already used the commonly ...
- RA-02 Breakout with Level converters Breadboard and beginner-friendly RA-02 Breakout ModuleMost Makers and electronics enthusiasts may al...
- ATMEGA328P Module with integrated LoRa and CAN Bus ATMEGA328P Module with integrated LoRa and CAN-BUSINTRODUCTIONIn my quest to perfect my LoRa telemet...
- Sx127x-Ra-02-Test-Module with ATMEGA328P-AU SX127x LoRa/FSK/OOK Prototype Radio BoardI recently had a requirement to do some automation/telemetr...
- USB-ASP Programmer ATMEGA8 Build your own USB-ASP Programmer CloneBymakeriot2020 FEB 21, 2022 Arduino, ASP programmerUsing mor...
- ATTiny1616-LIGHT-Controller-with-CAN_B_PCB_ATTiny1616-LIGHT-Controller-with-C_2024-09-11 Assembly of the ATTiny1616 Can bus controller PCBThe Assembly of the ATTiny1616 Can Bus Controller P...
- ATTiny1616QFN-CAN-Remote-Neopixel-Ligh_PCB_ATTiny1616QFN-CAN-Remote-Neopixel-2024-09-11_2024-09-11 NeoPixel CAN-Bus Module with local controlAs part of my current project to add NeoPixels to the cabi...
-
-
Helium IoT Network Sensor Development board | H2S-Dev V1.2
90 0 0 -
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
176 1 1