Skip to main content

Programmable Timer Design - From concept to board

Programmable Timer Design Using PIC12F629 Microcontroller


As part of my embedded systems development work, I designed a compact programmable timer module based on the PIC12F629 microcontroller. This timer is intended for use in automation systems, industrial control panels, laboratory equipment, and custom electronic projects where accurate and configurable timing control is required.

The device allows users to set alarm timings according to specific application requirements. Once the desired time value is configured, the timer counts up and triggers the alarm output when the preset value is reached. This makes the module useful for tasks such as delayed switching, process timing, equipment control, and notification systems.

To provide a clear visual interface, the timer uses two seven-segment displays (SSD) to show the configured time values. The display allows users to easily monitor the current timer settings and countdown status. The display system is optimized to operate efficiently with the limited I/O resources available in the microcontroller.

User interaction with the device is intentionally designed to be simple and intuitive. The timer settings can be adjusted using two push buttons, which allow the user to increase or modify the time values without the need for complex controls or external programming tools. This minimal interface reduces hardware complexity while maintaining ease of use.

The firmware running inside the PIC12F629 manages display multiplexing, button input detection, and timing control. The design focuses on low component count, reliable operation, and compact circuit implementation, making it suitable for embedded applications where space and cost are important considerations.

This type of programmable timer can be easily integrated into custom electronics projects, automation controllers, sensor systems, and industrial devices. The design also demonstrates how small microcontrollers can be effectively used to build practical control modules with minimal hardware.

Download firmware, schematic diagram and operating instructions using following links.

Operating instructions - PDF file

Schematic diagram - Schematic image

Firmware files - Microchip XC8 project files

PCB files - Eagle 7.6

Need any custom module - GET INSTANT QUOTE


Comments

Popular posts from this blog

HP Pavilion 15 (hp 15bw504ax) no display repair - LA-E841P main board

In this repair case, a customer brought an HP Pavilion 15 laptop that was completely dead with no power indication. The laptop did not respond when the power button was pressed, and there were no charging or status LEDs. After opening the laptop and removing the bottom cover, I began troubleshooting by checking the main power input connector on the motherboard. When the power adapter was connected, the adapter initially supplied 19V, but the voltage immediately dropped to 0V. This behavior typically indicates that the main 19V rail is shorted on the motherboard. When such a short circuit exists, the adapter’s protection mechanism shuts down the output to prevent damage. Diagnosing the Short Circuit To locate the source of the short, I performed a standard motherboard diagnostic procedure by measuring the resistance between ground and the main power inductors. During this test, one of the inductors showed a direct short to ground. Further investigation revealed that this inductor belong...

How to wire long distance RS485 cables without communication errors

In industrial environments, long-distance signal wiring such as RS485 must be installed carefully to avoid electrical noise, signal distortion, and false triggering. Factories usually contain motors, VFDs, contactors, and high-current cables that can generate strong electromagnetic interference (EMI). Following proper wiring practices ensures reliable and stable signal transmission. Below are the best practices used in industrial automation systems. 1. Use Twisted Pair Cables For long-distance signal transmission, always use twisted pair wires. Twisting the wires helps cancel electromagnetic interference induced by nearby cables.  For RS485 systems, cables similar to Cat5/Cat6 network cable work very well. 2. Use Shielded Cable in Noisy Environments Factories usually have electrical noise from, VFD drives Large motors Welding machines Switching power supplies Using shielded cables prevents noise from entering signal lines. Important rule -  Connect the shield to ground at only...

Installing a push button in a electrically noisy environment

Installing a push button over a long distance in a noisy factory environment (motors, contactors, VFD drives, welding machines, etc.) requires proper wiring practices to prevent false triggering, signal noise, and unreliable operation. Below are the industrial best practices used in automation and control systems. 1. Use 24V Industrial Control Voltage For long-distance push buttons, avoid using 5V or logic-level signals.  Factories usually use 24V DC control signals because they are more resistant to electrical noise. Typical wiring : +24V  -> Push Button -> PLC Input / Controller Input Advantages, Better noise immunity Standard in industrial automation Compatible with PLC inputs 2. Use Twisted Pair Cable Long signal wires should use twisted pair cable. it r educes electromagnetic interference (EMI),  Improves signal reliability and m inimizes induced noise from nearby cables 3. Use Shielded Cable In noisy factories with motors or VFD drives, use shielded twisted pa...