Summary of Embedded Engineering
This project is a 12-channel relay and 2-channel dimmer control system using a PIC16F877A microcontroller. It allows users to switch relays via IR remote or keyboard and adjust motor speed or bulb intensity using two dimmers with five-step control levels. The design employs NEC IR protocol, a transistor-based zero-crossing detector for triac operation, and supports optional SMPS if an isolated detector is added. High-voltage AC handling requires caution.Parts used in the 12 Channel Relay + 2 Channel Dimmer Control System:
- PIC16F877A Microcontroller
- 12 Relays
- 2 Triacs (for dimmer functionality)
- Transistor-based Zero Crossing Detector
- NEC Protocol IR Remote
- 14 Switch Buttons (12 for relays, 2 for dimmers)
- Power Transformer and Diodes
- HI-TECH C Compiler V9.83
- Main PCB and Removable Dimmer Module PCB
12 Channel Relay + 2 Channel Dimmer control by IR Remote and keyboard
as extension to IR(infrared) Remote Control Relay Board with PIC 12F675 Microcontroller i have done this quite a useful project after too many requests. by using this hardware user have option to turn up to 12 relay on and off and two loads (like fan or motor) can be controlled with adjustable speed in case of motor , or adjustable intensity in case of a bulb.

i will not be responsible for any risk involved, you are on you own.
IR protocol
IR protocol is same as previous projects . we use NEC protocol please refer to this link to know more about NEC protocol
Hardware

whole source is written in c , with
HI-TECH C Compiler for PIC10/12/16 MCUs V9.83
all the latest source files, PCB gerber, Schematic PDF are available on github. or you can download from this direct link (may not be latest) .
www.github.com/circuitvalley
Quick Solutions to Questions related to 12 Channel Relay + 2 Channel Dimmer Control System:
- What microcontroller is used in this project?
The system uses a PIC16F877A microcontroller chosen for its low cost and global availability. - How many channels can be controlled by the IR remote?
The IR remote can control up to 12 relays and 2 dimmers using the NEC protocol. - Can the dimmer speed be adjusted manually?
Yes, pressing the associated button increases the dimmer level one step from off to maximum level 5. - Does the design require a transformer-based power supply?
Yes, the triac-based dimmer operation requires a transformer-based power supply to provide pulsating DC for the zero crossing detector. - Is it possible to use an SMPS with this circuit?
An SMPS can be used only if the user implements a separate isolated zero crossing detector. - What programming language was used for the software?
The source code is written entirely in C using the HI-TECH C Compiler for PIC10/12/16 MCUs V9.83. - How does the zero crossing detector function?
A simple transistor-based zero crossing detector is implemented which outputs a signal based on pulsating DC input. - Where can I find the source files and schematics?
All latest source files, PCB gerber files, and schematic PDFs are available on the GitHub repository at www.github.com/circuitvalley.
Related projects
PIC 12F675 Programmable 12V Battery Monitor
Being an active outdoor guy, I have a few different types of 12V lights and a variety of battery types. - For...
Audio, Sound & Radio · PIC12F675Audio CRO using PIC12F675 Microcontroller
This project is a miniature Audio CRO. For those not familiar with the abbreviation "CRO," it means "Cathode Ray Oscilloscope" and this...
Development Boards & Kits · PIC12F675DIY $1 PIC 12f675 JDM Programmer (Cheap and Easy)
Hi EveryBody i am Again Doing something. and it is with PIC's! Almost Everybody do not want a Big Arduino in their...
IDEs & CompilersDownload Legacy MPLAB IDE 8 from Microchip
The original MPLAB® IDE 8 series is still relevant when maintaining older PIC® and dsPIC® projects that were created before MPLAB X...
IDEs & CompilersHow to Download MPLAB X IDE Safely
MPLAB® X IDE is used for developing, building, debugging and programming embedded applications across several Microchip device families. For an active firmware...
IDEs & CompilersDownload MPLAB IDE v8.92 from Microchip
MPLAB® IDE v8.92 belongs to the final generation of the original MPLAB IDE 8 development environment. It still appears in older PIC®...