ALII LOGIC SIMULATOR

Advanced Light Intensity Indicator

SYSTEM ACTIVE
SOLAR

Smart Power Manager

Renewable Energy System

Automatic switching between Solar and Battery power based on voltage threshold (4.5V)
Solar Voltage
Battery Threshold (4.5V)
Solar: 5.00V
Power Mode
SOLAR
BATTERY
Battery Level 75%
Day/Night Cycle Speed 1x

Day Mode: Solar > 4.5V → Green LED + Charging. Night Mode: Solar < 4.5V → Battery Power. Decimal points on displays indicate "Green Energy Active".

Signal Conditioning

Sallen-Key Low-Pass Filter

2nd-Order Active Low-Pass Filter removing high-frequency line noise (fc ≈ 10Hz)
Inject Noise
Raw LDR Input
Filtered Output
Output: 2.50V

Flash ADC

8-Level Comparator Ladder

Comparators (Vref)
C7: 4.375V
C6: 3.750V
C5: 3.125V
C4: 2.500V
C3: 1.875V
C2: 1.250V
C1: 0.625V
C0: 0.000V
8-Wire Bus
Path A
Path B
Digital Level: 0

Stability Logic

Path A • Short-Term Latch

PATH A
Live ADC Bus
(May flicker)
D-FLIP-FLOP
BANK (x8)
30 SEC
Stability Timer
Real-Time Display
0
(Updates on pulse)

Prevents display jitter by latching data only after a stability interval.

Averaging Logic

Path B • Long-Term Latch

PATH B
ADC Bus Input
0
AVERAGING
MEMORY (D-FF)
CLK
Average Display
0
(Historic snapshot)
Averaging Timer 0 / 900s
0%

Samples the light intensity at long intervals to provide a historic snapshot.

Simulation Controls

Adjust parameters in real-time

Light Intensity (LDR) 50%
Stability Timer 30s
Averaging Timer 900s (Demo: 9s)
Simulation Speed 1x