Skip to the content
2 layers71.1 × 81.3 mmDecoder, the printed circuit board in 3D

This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

Size
71.1 × 81.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
34
Pads
96
Tracks, vias
147, 7
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
23 Aug 2023
Updated
23 Aug 2023

Overview

Decoder is an open-source printed circuit board by Park-Hyung-Joo, from the Park-Hyung-Joo/automatic-molding-system repository on GitHub. It is a 2-layer board of 71.1 × 81.3 mm with 12 parts on 34 nets, routed with 147 tracks and 7 vias.

It is built around the 74LS125DC. Its parts include 4 ICs, 4 connectors, 2 capacitors and 2 resistors.

Main components

1

README

readme.md

Plastic Injection Molding Control System

Abstract

This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control system.

The system is mainly divided into a heating bed (heater) that melts the plastic, a temperature sensor, and a solenoid valve that applies pressure to the melted plastic. Both the heater and the valve operate on 220VAC alternating current.

To control the 220VAC AC heater, a triac, a bidirectional switching device, was used. To control multiple triacs, each control signal is input to a 3-state buffer using a shift resistor, and the control signal is generated at the appropriate timing through a zero-detection circuit to turn the buffer on/off. This method allows for controlling the power of the AC heater. Additionally, the temperature of the AC heater is measured using a K-type temperature sensor, and by comparing it with the target temperature, the AC heater can be controlled within a range of 10 degrees of error through ON/OFF control. The solenoid valve also operates on 220VAC, so it is controlled in the same way using a triac.


220VAC Heater Control

Triac

A triac is a bidirectional switching device for high voltage and high current. When a pulse signal is given to the Gate, it shorts between A1 and A2 as long as the voltage value is above a certain level, and it disconnects again when the voltage drops below a threshold. The direction doesn't matter. In other words, by providing a pulse when the instantaneous voltage of the AC is 0, AC current can flow through the triac. This can be used to control the current flowing to the heater and valve.

Triac control system

Optocoupler Circuit

When pulses are provided to tr1~tr6 at the appropriate timing, AC current flows to the heaters connected to J3, J4, and J5. When the pulse supply is stopped, the current is cut off from the moment the AC instantaneous voltage becomes 0. The MOC3021(U1U6) device is an optocoupler, which separates the high current, high voltage AC circuit from the low voltage, low current DC circuit.

Pulse Generator

The circuit that generates the pulse produces a pulse at J3 the moment the AC voltage becomes 0. The detailed principle is as follows:

220VAC is rectified through bridge diodes and, through a resistor, provides the Photocoupler 4N35 with a rectified signal that has the same phase as 220VAC but at a lower voltage. When voltage is applied to the primary side of the 4N35, the secondary side's bjt operates, making the zero detection signal become 0. When the primary side voltage is 0, the bjt does not operate, and the zero detection voltage becomes VDC. Therefore, a pulse is generated the moment the voltage of 220VAC becomes 0.

This pulse is input into the 3-state buffer circuit.

Tri-state Buffers

The tri-state buffer (buffer hereafter) circuit is divided into pulseIn, signal input, and pulseOut. When 0 is input to the signal input, the buffer passes the pulse, and when 1 is input, the pulse is blocked in the buffer. PulseOut is connected to tr1~tr6 of the above optocoupler circuit (there are a total of 3 optocoupler circuit boards). The triac is controlled by determining the signal value given to the buffer from the Arduino.

Shift Registers

Directly inputting signals from the Arduino is unstable due to reasons like the insufficient number of Arduino pins and unstable signal current. Therefore, a method was chosen to store pre-determined signals in the shift register and connect the shift register output to the buffer signal end.


Temperature Measuring

To determine the current supplied to the heater, the temperature of the heating blocks must be measured. The temperature measurement circuit is composed of multiple temperature sensors and a decoder circuit to control them

Temperature Sensers

The advantage of the K-type temperature sensor is its wide usable temperature range. It's suitable for systems that need to operate at high temperatures, which is why it was used in this project.

Temperature Senser Connection Bus

The temperature sensor communicates its measurements to the Arduino via SPI communication. SCK is the clock, SO is the data, and CS is the pin that determines the communication blockage.

Decoders

Since the Arduino can access only one temperature sensor at a time, only the selected temperature sensor should be connected to the Arduino, and the rest should be temporarily disconnected. The CS pin of the temperature sensor serves this function, and the values to be input into the CS pins are output through the decoder. The Arduino selects the temperature sensor to connect by inputting binary numbers to the decoder.


Solenoid Valve

A solenoid valve is applied to press the melted plastic. The control method is the same as the heater, using a triac. Since the same type of circuit is used, a detailed circuit description is omitted.


Raspberry Pi

While controlling the system with Arduino is sufficient, the client requested remote control functionality through a web application, so the Arduino was connected to the web via a Raspberry Pi.


Assembled Borads

This is how the circuit board looks when connected to the machine.

Parts

12
QtyValueFootprintReferences
374LS138Package_DIP:DIP-16_W7.62mm_SocketU2, U3, U4
2Conn_01x09_MaleConnector_Molex:Molex_SPOX_5267-09A_1x09_P2.50mm_VerticalJ3, J4
2RResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P5.08mm_VerticalR1, R2
174LS125Package_DIP:DIP-14_W7.62mm_SocketU1
1CCapacitor_THT:C_Axial_L3.8mm_D2.6mm_P7.50mm_HorizontalC2
1CCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC1
1Conn_01x02Connector_Molex:Molex_SPOX_5267-02A_1x02_P2.50mm_VerticalJ1
1Conn_01x06Connector_Molex:Molex_SPOX_5267-06A_1x06_P2.50mm_VerticalJ2

More from Park-Hyung-Joo/automatic-molding-system

7
  • 2 layers97.8 × 87.6 mmBuffer, the printed circuit board in 3D

    Buffer

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    30 parts
  • 2 layers186.7 × 92.7 mmTriac new, the printed circuit board in 3D

    Triac new

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    29 parts
  • 2 layers134.6 × 101.6 mmTempSensor, the printed circuit board in 3D

    TempSensor

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    25 parts
  • 2 layers94 × 80 mmSupply, the printed circuit board in 3D

    Supply

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    14 parts
  • 2 layers62.2 × 91.4 mmValve cont, the printed circuit board in 3D

    Valve cont

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    11 parts
  • 2 layers57.2 × 38.1 mmZero detection, the printed circuit board in 3D

    Zero detection

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    8 parts
  • 2 layers64.8 × 77.5 mmShift register, the printed circuit board in 3D

    Shift register

    Park-Hyung-Joo/automatic-molding-system

    This work was developed by the startup 'The Fourth Space', where senior Kim Seong-jun from the 17th generation of Barami is affiliated, as an outsourcing project for Barami's plastic injection molding machine control…

    7 parts

Similar boards

  • 2 layers231.1 × 106.7 mmSnark barker, the printed circuit board in 3D

    Snark barker

    schlae/snark-barker

    A 100% compatible replica of the famed SB 1.0 sound card

    199 parts687
  • 2 layers98 × 38 mmBldc control ver3, the printed circuit board in 3D

    Bldc control ver3

    pekkaroi/bldc-drive

    Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller

    68 parts199GPL-2.0
  • 2 layers40 × 100 mmBack pcb, the printed circuit board in 3D

    Back pcb

    ZeroPhone/ZeroPhone-PCBs

    PCB files for ZeroPhone - for gerbers and schematics, go to "Releases" tab!

    118 parts148GPL-3.0
  • 2 layers128.3 × 50.8 mmCD32 Controller, the printed circuit board in 3D

    CD32 Controller

    BleuLlama/AmigaSchematics

    Schematics of various Commodore Amiga related items

    33 parts58MIT
  • 4 layers337.6 × 105.7 mmISA CGA, the printed circuit board in 3D

    ISA CGA

    hkzlab/CGA_Redux

    The Color Graphics Adapter Redux board is a more or less faithful clone of the original IBM CGA, based on the original schematics

    170 parts56
  • 2 layers170.2 × 100 mmZ80-SBC, the printed circuit board in 3D

    Z80-SBC

    skiselev/zeta_sbc

    Zeta SBC is an Zilog Z80 based single board computer. It is inspired by Ampro Little Board Z80 and N8VEM project. Zeta SBC is software compatible with RomWBW Firmware

    75 parts53GPL-3.0
  • 2 layers68.6 × 53.3 mmFdshield, the printed circuit board in 3D

    Fdshield

    yas-sim/floppy_disk_shield_2d

    This is a project to retain 2D/2DD floppy disk data as a raw bit-stream data. The project includes both HW and SW.

    30 parts49Apache-2.0
  • 4 layers231.1 × 340.4 mmSun3 60 layout2 routing2, the printed circuit board in 3D

    Sun3 60 layout2 routing2

    54weasels/sun3_60

    Notes on each section: - CPU - 68030 support left out entirely - 68881 in the schematics but left out of the PCB - MMU - U2001 which would be needed to support any video, either P4 or built-in not in the PCB - U314…

    225 parts35

Questions

How big is the Decoder PCB?

It measures 71.1 × 81.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Decoder use?

12 parts, built around the 74LS125DC. 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 Decoder KiCad files?

From the Park-Hyung-Joo/automatic-molding-system repository on GitHub, at the commit this page was made from: the board is hardware/decoder/decoder.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Decoder design in my own project?

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