Low-Cost Automation Using PIC16F676
Home and industrial automation systems abound. IR remote control, Bluetooth home automation, DTMF home automation, Wi-Fi home automation, RF home automation, and voice-controlled home aut…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Low-Cost Automation Using PIC16F676 is a electronics project. Home and industrial automation systems abound. IR remote control, Bluetooth home automation, DTMF home automation, Wi-Fi home automation, RF home automation, and voice-controlled home aut…
- Source pages
- 453-456
- Named parts
- 4
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- This project may involve hazardous voltage. Work only with qualified supervision and proper isolation.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications

Transformer
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for Transformer; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
What's this?Image, role, pros, cons, handling & specifications

Push button
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for Push button; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications
BC547
A semiconductor stage performs switching, amplification, regulation, rectification, or logic.
What it does hereIt controls current or signal flow at a defined point in the circuit.
Buy / compare this part ↗Advantages
- Fast and efficient
- Compact
- Can control larger loads from smaller signals
Limitations
- Pin order varies
- Sensitive to overvoltage and reverse polarity
- May need cooling or bias components
Handling
- Verify the datasheet pinout
- Avoid static and soldering heat
- Check notch, stripe, or flat-face orientation
Specifications to verify
- Use the exact model, value, package, and rating listed for BC547; similar-looking parts are not always interchangeable.
- Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
What's this?Image, role, pros, cons, handling & specifications
POWER LEARNING VIEW7805 - integrated circuit
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for 7805 - integrated circuit; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Low-Cost Automation Using PIC16F676: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 2 visuals


Confirm the hardware-only control path.
This project does not include firmware in the source. The circuit itself provides the required behaviour.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
No IDE, board package, library, or firmware upload is required for this project.
If you add a programmable controller as an extension, document its pin map separately.
How to upload code
The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.
Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build noteHome and industrial automation systems abound. IR remote control, Bluetooth home automation, DTMF home automation, Wi-Fi home automation, RF home automation, and voice-controlled home automation. Here's a cheap automation system. It can turn devices on and off at home or in industry. Fig. 1: Block diagram IR remote controllers and receivers use conventional data standards. NEC, PHILIPS RC5, JVC, and SIRC are standard protocols (Sony infrared remote control). This project uses NEC protocol. After understanding IR remote frame format, we'll interface IR receiver TSOP1738 with PIC16F676 to decode NEC remote key presses. Fig. 2 shows how each bit
is sent using pulse distance. Logical '0' is a 562.5s pulse burst followed by a 562.5s gap, taking 1.125ms to broadcast. Logical "1" is a 562.5s pulse burst followed by a 1.6875ms gap, for a total of 2.25ms. When a remote button is pressed, the following message is sent: 1. 9ms pulse lead (16 times the pulse burst length used for a logical data bit) 2. 4.5ms space 3. Receiver's 8-bit address 4. 8-bit address logical inverse 5. Command 8-bit 6. Command's 8-bit logical inverse 7. A 562.5-s pulse burst to cease message transmission. Each byte's least significant bit is supplied first. Fig. 3 shows a NEC IR transmission frame for address 00h (00000000b) and instruction ADh (10101101b). Frame transmission takes 67.5ms. It takes 27ms to send 16 bits of address and command. Controller PIC16F676 Fig. 2: Pin diagram of PIC16F676 Microchip's PIC16F676 is an 8-bit CMOS flash microcontroller. Its 14-pin size and high-performance RISC CPU make it suited for embedded or
industrial automation applications. This little chip includes everything
needed to develop projects. Features include
Project build noteThe PIC16F676's flash memory increases the microcontroller's processing speed. It's available in 14-pin PDIP, SOIC, and TSOP. PIC16F676 has 1.7kB of program memory, 64 bytes of RAM, and 128 bytes of EEPROM. The device's 10-bit ADC has eight analog channels. This module converts analogue sensor values to digital. Device features include power-on reset, comparator, in-circuit serial programming, and master clear reset. These allow it outperform other onboard chips and eliminate the need for external components. Fig. 2 shows PIC16F676 pinout. Working circuit The project uses a PIC16F676 microcontroller and a NEC IR remote to control any AC load, including lights and fans. The microcontroller receives the remote's IR signals for the lights and fans and controls the relays with a relay driver circuit. Relays control lights and fans. In this project, digital IO pins RC0, RC1, and RC2 of Port C of PIC16F676 microcontroller control relays to switch appliances on/off. Programmatically, these pins are outputs. The IR receiver is attached to PIC16F676 input pin RC4. PIC16F676 runs on +5V. The 230V AC mains supply is stepped down with a transformer and rectified with a full-wave rectifier. IC 7805 regulates rectified voltage to +5V. This project is straightforward. When an IR remote button is pressed, it sends 38kHz modulated coded pulses. Microcontroller reads pulses from TSOP 1738 sensor. The microcontroller decodes the
pulse train into hex and compares it to the program's predetermined values. When a key is pressed on an IR remote, the program decodes the delivered IR signal. This project decodes a 32-bit string (4 NEC protocol bytes). The lights/fans software compares the third byte of this 32-bit string. If a match occurs, the controller triggers the respective relay using transistor BC547 and an LED indicates the outcome. The circuit's three LEDs display relay status. IR remote buttons 2, 4, and 6 control three relays. Key 2 toggles RL1, 4 toggles RL2, and 6 toggles RL3. Software The circuit uses PIC16F676's native software. The software is compiled with Mikro C PRO 7.2.0 for PIC and uploaded to PIC16F676. The embedded C language in main.c enables for short coding. PIC K150 programmer board burns hex code onto MCU chip. IR signal is detected without a header, interrupt, or capture and compare mode. RC4 reads data like a push button. When a signal goes high or low, debouncing and the timer start. Time values are recorded in an array whenever the pin changes state. IR remote sends logic 0 as 562.5s and logic 1 as 2250s. The software assumes 562.5's pulse is 0 and 2250's pulse is 1. It's then converted to hex. 32-bit remote signal (4 bytes). Program stores all array bytes and decodes the third to compare. The simple programming statement ‘switch' controls home appliances. Before programming PIC16F676 with PIC K150, set fuse bits. Without fuses, the program won't work.
You built Low-Cost Automation Using PIC16F676.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects