keskiviikko 14. marraskuuta 2018

5.3.3.4 Packet Tracer

Pt 1.
Step 1.
a) 3 Wind_RT, Power_Main RT and Coal_RT
b)
c) Power Access Point,
d) Yes, Coal power plant
e) Smart power grid switch
f) It uses the one which produces the most power/energy.
g) 100.2.0.2
h) Power, power Coal Plant Meter

Pt 2.

if (solar > 0) {
console.log("Using Solar Power...");
analogWrite(A3, 1);
} else if (wind > 0) {
console.log("Using Wind Power...");
analogWrite(A3, 2);
} else if (coal > 0) {
console.log("Using Coal Power...");
analogWrite(A3, 0);
} else {
console.log("Blackout!");
analogWrite(A3, 5);
}

Ei kommentteja:

Lähetä kommentti