More Articles
All Topics
Friday, September 5, 2025

ATS Control Card with PIC16F88 (Prototype 2)
Thursday, September 4, 2025

Automatic Changeover Controller (ATS) Control Card with PIC16F88 (Version 1)
🔌 Automatic Changeover Controller (Prototype V1)
1. Terminal Blocks
- 12V DC Input Block (2 screws):Supplies regulated 12VDC to the circuit, typically from the GENSET battery, to power the controller.
- AC Sensing Block (3 screws):Used for sensing 220V AC signals from both mains and GENSET.
- Middle screw → Neutral line (common for both supplies).
- Side screws → Phase line of mains and phase line of GENSET.
- Each screw is clearly labeled on the PCB.
- Relay Control Blocks (2 screws each):Connected to:
Switch Relay
Crank Relay
- Changeover Relay Driven by microcontroller GPIOs.
2. Transformers
- Step-down Transformers (220V → 12V):Used to reduce mains and GENSET phase signals to a safe level for the microcontroller.
3. Rectifiers
- Two rectifiers (1A rating):Each phase signal passes through a separate rectifier, converting 12VAC → 12VDC for conditioning.
4. Voltage Regulators
- 7805 Regulators:Convert rectified 12VDC signals to 5VDC.
- Signal Conditioning:
- Each sensing line includes a 10kΩ pull-down resistor (ensures clean logic levels).
- 470µF capacitors are used on each line for stability and noise suppression.
5. Microcontroller (PIC16F88)
The PIC16F88 monitors input signals and controls relays accordingly.
Controller Logic:
- Case 1 – Mains Present, GENSET Off→ Keep all relays OFF.
- Case 2 – Mains Off, GENSET Off
- Wait 30s, energize Switch Relay.
- After 2s, energize Crank Relay for 4s.
- Check GENSET signal for 10s.
- If not detected, repeat crank cycle (up to 6 attempts).
- Once GENSET detected →
- Keep Switch Relay ON, Crank Relay OFF.
- Energize Changeover Relay → Load shifts to GENSET.
- Case 3 – Mains Restored
- Detect mains presence.
- Wait 10s, then turn OFF Changeover Relay (load back to mains).
- After 3s, turn OFF Switch Relay → GENSET turns off.
- Case 4 – Both Supplies Off
- Retry GENSET startup process (same as Case 2).
6. Relays
- Relay 1 – Switch Relay: Turns ON GENSET.
- Relay 2 – Cranking Relay: Engages GENSET starter motor.
- Relay 3 – Transfer (Changeover) Relay: Switches load between mains and GENSET.
7. Relay Driver IC
- ULN2003:Acts as an interface between 5V microcontroller outputs and 12V relay coils.Provides current amplification and safe isolation.
Sunday, June 1, 2025
Thursday, December 7, 2023
What is NOT Logic Gate
What is logic?
In
digital we define some conditions of anything in two states that are 0 and 1
for example switch conditions possibly open and close so in digital it will be 0 and 1 respectively Same as
down up, left-right, off ON and false true, etc.
NOT Logic Gate
NOT Gate
performs the function to invert the logic. If the input is 0 then the output will be 1
and if the input is 1 then the output will be 0.
Symbol of NOT Logic Gate
Truth Table
we can understand the NOT (inverter) function by a simple electrical circuit.
S1 close LED will be OFFS1 open LED will be ON
RTL of NOT Gate
by using the switching mode of the transistor to understand the
working of RTL NOT gate.
working
of RTL NOT gate.
Input 0: Q1 will
be in off condition and current flow toward output through R1 means output 1.
Input 1: Q1 will be ON and current flow through Q1 and R1 and ground. Max voltage drop across R1. (VCE = VCC – ICRC) and the output will be 0.
CMOS (basic circuit is) NOT gate
CMOS
is Complementary to MOS which means in this logic NMOS and PMOS twice are used. CMOS
basic circuit is NOT gate.
If input
A=0:
When input A=0 then PMOS will be ON and NMOS will be OFF and the current flows through output so output logic = 1.
If input
A=1:
When input A = 1 then PMOS will be OFF and NMOS will be off Now current flow through PMOS and output so the output is 0.
Wednesday, December 6, 2023
Water Level Indicator Digital Logic Design based with Alarm
What is a Water level Indicator?
Application of Water Level Indicator
Water level indicator circuit story
look at the scene here
Water Level Sensor
Water level sensor principle
When the Tank is at 0% (empty) the Motor will start using NAND Logic and stop when the tank will touch 100% (Full).
The motor is not only dependent on the NAND gate because if the level drops from 100% then again motor will start but we want to ON the motor again at 0%. So we apply NAND output at the input of D Flip Flop. Now the rising edge is required to pass the logic.










