
This project is a smart solar energy system that controls electricity from solar panels, batteries, and the electrical grid.
It uses logic gates and flip-flops to decide which energy source to use.
1 = ON | 0 = OFF
| Configuration | Inputs | Expected result |
|---|---|---|
| ABCD | 1111000 |
Uses solar energy to power the light. |
| AC | 1010000 |
Charges the battery. |
| ABCFX | 1110011 |
Sends extra energy to the grid. |
| BCD | 0111000 |
Uses grid electricity. |
| BCDE | 0111100 |
Uses battery power instead of grid electricity. |
| CD | 0011000 |
Uses the battery as emergency backup. |
| ABCDX | 1111001 |
Powers the light and charges the battery. |
| ABCDFX | 1111011 |
Powers the light and exports extra energy. |
Note: After changing the switches, allow the clock to advance so the flip-flops can update the system.
The project uses the following simulated components:
Note: Solar panels, batteries, and the electrical grid are simulated using digital signals. No real electricity is transferred.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | SOL | FOCO_ON | |
| 1 | RED | BAT_HA | |
| 2 | BAT_OK | LUZ_RED | |
| 3 | SWT_LUZ | LUZ_SOL | |
| 4 | SWT_BAT | LUZ_BAT | |
| 5 | BAT_FULL | AUTO_EXCED | |
| 6 | EXCED | ||
| 7 |