Knowledge
Technical guides with sample code we ran, its real output, and references.
Automation2 min readDI, DO, AI and AO: Reading a Machine's I/O ListInputs and outputs are named from the controller's side. DI/DO carry on/off signals or commands; AI/AO carry continuous values within the device's range, such as weight or a control value that needs scaling.
Automation2 min readNPN vs PNP: Matching a Sensor to the PLC InputNPN/PNP describes the transistor output and how it pairs with the input circuit; NO/NC describes switching behaviour. They are separate things, and two sensors that look alike may not be interchangeable.
Automation26 min readModbus RTU vs TCP: Where RS485 and Ethernet FitRS485 and Ethernet are the wire; Modbus is the language spoken over it. Wiring, serial settings, register numbering, 32-bit byte order and a runnable byte-level Python example (Thai text).
Automation26 min readPLC and HMI Not Communicating: Separating Port, Settings and Data ProblemsA layered walk-through for an HMI that will not talk to a PLC: TCP, unit id, shifted addresses, swapped float words, slow or lost replies and exception codes, with runnable TypeScript against a simulated PLC, real output and a manual physical-layer checklist (Thai text).
Automation2 min read3.3 V and 5 V GPIO versus factory I/O: why a direct connection does not always workCompatibility depends on voltage, current, direction, circuit type and isolation, not on both sides having inputs and outputs. Pin groups on one board can differ, so read the pinout together with the electrical characteristics.
Automation2 min readBare-metal, RTOS, Linux and the PLC scan cycle: timed work versus heavy processingSensor reads, communication and image work have different timing needs. An operating system or a PLC does not meet every deadline by itself; the scheduler, task design, communication and real measurements all count.
Automation2 min readUART, SPI, I2C, RS485 and Ethernet: choosing a connection at the right layerThese names do not describe the same layer. UART logic levels are not RS485, and Ethernet does not say which application protocol runs on it. Data only gets through when the electrical side, the framing and the meaning all match.
Automation2 min readArduino IDE done properly: what the board core, libraries and Serial Monitor doThe IDE is where you write and build, the board core defines how code is compiled for the chip, and libraries add device support. A sketch that builds on one machine and fails on another may be a tool-version difference, so record the environment.
Automation2 min readdelay versus millis: writing Arduino code that handles several jobs without blockingdelay stops the sketch where it is called, so buttons or incoming data can be missed. Elapsed-time checks and a state machine let the loop come back to several jobs, but they do not create parallel execution or meet deadlines by themselves.
Automation2 min readFrom Arduino prototype to a working machine: what to add besides a boxA prototype proves the idea quickly, but long-term installation adds power, connectors, heat, noise and repair. Whether to keep a ready-made board or design a PCB depends on volume, site conditions and lifetime cost.
Automation2 min readSTM32CubeMX, CubeIDE and ST-LINK: configure, program and debug so problems can be foundCubeMX configures the chip and generates project code, CubeIDE is for development and debugging, and CubeProgrammer handles programming and memory. A debugger shows real values and execution order, but generated code still has to be understood.


