Soluții

Arduino Soil Moisture Sensor

 How the Soil Moisture Sensor Works

Resistive Sensor

Uses two metal probes to measure electrical resistance. Wet soil has lower resistance, while dry soil has higher resistance.

Capacitive Sensor

Measures changes in soil capacitance and has no exposed metal parts. It provides more stable and long-lasting performance.

Both sensors provide an analog output that Arduino reads.

Wiring the Soil Moisture Sensor

Soil Sensor → Arduino
VCC         → 5V
GND         → GND
AO          → A0

The digital output (DO) pin is optional and can be used with a preset threshold.

Arduino Code (Basic Reading)


int soilPin = A0;
int soilValue = 0;

void setup() {
  Serial.begin(9600);
}

void loop() {
  soilValue = analogRead(soilPin);

  Serial.print("Soil Moisture Value: ");
  Serial.println(soilValue);

  delay(1000);
}

Understanding Soil Moisture Values

Sensor Value Soil Condition
0 – 300 Very Wet
300 – 600 Moist
600 – 900 Dry
900 – 1023 Very Dry

Values may vary depending on soil type. Always calibrate with dry and wet soil.

Improved Code with Moisture Status


int soilPin = A0;
int soilValue = 0;

void setup() {
  Serial.begin(9600);
}

void loop() {
  soilValue = analogRead(soilPin);

  Serial.print("Soil Moisture: ");
  Serial.print(soilValue);

  if (soilValue < 300) {
    Serial.println(" - WET");
  }
  else if (soilValue < 600) {
    Serial.println(" - MOIST");
  }
  else {
    Serial.println(" - DRY");
  }

  delay(1000);
}

Testing the Sensor

  1. Upload the code to Arduino
  2. Open the Serial Monitor
  3. Set baud rate to 9600
  4. Insert the sensor into soil
  5. Add water and observe changes

Wet soil produces lower values, while dry soil produces higher values.

Troubleshooting

  • Always reads 1023: Sensor not properly inserted
  • No value change: Loose wiring or faulty sensor
  • Unstable readings: Electrical noise or dry air
  • Corrosion: Use capacitive sensor instead of resistive

Optional Upgrades

  • Add relay and water pump for automatic irrigation
  • Add LCD or OLED display
  • Use ESP8266/ESP32 for IoT monitoring
  • Log data to SD card for analysis.
[mai mult...]

De ce este important pentru companii să aibă un website în 2026

Prezența online nu mai este un „nice to have” pentru companii, ci o necesitate. Indiferent că vorbim despre firme mici, afaceri locale sau companii în creștere, modul în care sunt percepute online influențează direct încrederea clienților și decizia de a colabora. Un website nu mai este doar o carte de vizită digitală, ci un punct central al identității unei afaceri.

[mai mult...]

Setup Complet Standalone – Core VMware Resource ESXI

Shell Avansat (Post-DCUI)

text
Alt+F1 → root → SuppressShellWarning: esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 1

Pasul 1: Networking Persistent

text
esxcli network ip dns server add --server=8.8.8.8
esxcli network ip route ipv4 add --gateway=192.168.1.1 --network=0.0.0.0/0

Pasul 2: Firewall & Services

  • Enable HTTPesxcli network firewall ruleset set --ruleset-id=httpClient --enabled=true.

  • Disable unnecessary: NTP off dacă local clock.

Pasul 3: Web UI Management

Secțiune Acțiune Exemplu
Licensing Assign Key Trial/free my.vmware.com
Storage New iSCSI IQN target discovery
Networking VMkernel vmk1 vMotion IP 192.168.2.50 VLAN20

Pasul 4: VM Productivă

  1. Actions → Create VM → Windows 11, 4vCPU/8GB/50GB thick eager.

  2. Network: VM Network VLAN100.

  3. VMware Tools post-install guest.

Enterprise Final: AD Join (starechteam.local), esxtop monitoring, config bundle export, upgrade vib path.

[mai mult...]

Configurație Management Inițial ESXI

DCUI Meniu Principal (F2 Login)

  • Configure Password → Schimbă root

  • Configure Lockdown Mode → Disabled (standalone)

Pasul 1: Rețea Detaliată

  1. Network Adapters (vmnic0/1 → speed auto)

  2. VLAN 10 (segregare compliance)

  3. IPv4 Static + DNS → Test (ping/gateway/resolv)

Pasul 2: Troubleshooting & Acces

text
Alt+F1 → ESXi Shell (unsupported)
Enable SSH → esxcli pentru commands
Restart Management Agents (no VM downtime)

Pasul 3: Host Client (https://IP/ui)

  • Storage → New Datastore → VMFS6 (local-ds1, full disc)

  • Networking → vSwitch1 (uplink vmnic1, MTU 9000 iSCSI).

Pasul 4: Security Hardening

Ruleset Comandă Status
SSH esxcli network firewall ruleset set --ruleset-id=sshServer --enabled=true Enabled
Syslog Configure → remote host 192.168.1.10:514 GDPR logs
NTP --ruleset-id=ntpClient --enabled=true Time sync

Test VM: New → Linux → 2vCPU/4GB/20GB thin → Power On.

[mai mult...]

Configurare Post-Instalare ESXi 7

Cerințe Pre-Instalare

  • Server fizic (VT-x BIOS activat), 4GB+ RAM, USB 8GB+, ISO ESXi 7 oficial.

Pasul 1: USB Bootabil

text
Rufus: DD Image mode → Select ISO → Start
sau Balena Etcher (cross-platform)

Pasul 2: Instalare Rapidă

  1. BIOS: USB first boot device.

  2. Boot: EULA (F11) → Disc (/dev/sda) → Keyboard RO → Root: StrongP@ss2025 → Install.

Pasul 3: DCUI Configurare Rețea (F2 → root/parola)

  1. Configure Management Network → Network Adapters (vmnic0 green).

  2. VLAN ID: 100 (management izolat).

  3. IPv4 Static:

    Parametru Valoare Exemplu
    IP 192.168.1.100/24
    Gateway 192.168.1.1
    DNS1 8.8.8.8
    DNS2 1.1.1.1
    Hostname esxi-prod-01.starechteam.local
  4. Esc → Y (restart network 30s).

  5. Test Management Network: Ping 4/4 ✅.

Pasul 4: Web UI

  • Browser: https://192.168.1.100/ui → Accept SSL → Login root.
    Sfaturi: Activează SSH temporar (Troubleshooting), backup config, NFS Synology datastore.

[mai mult...]