Jul 20, 2026

Programmable Logic Controller (PLC) and Microcontroller

  • VCC - logic/control voltage supply
  • VM – motor power supply (separate, usually higher voltage)
  • STBY – standby pin; must be pulled high (or tied to VCC) to enable the driver, low puts it to sleep
  • UART – serial pin used to configure the driver (current limits, microstepping, etc.) from a microcontroller
  • GND – ground, harus disatukan (common ground) antara sisi logic dan sisi motor power
  • EN (Enable) – aktif LOW biasanya; kalau di-HIGH-kan driver akan mati/disable
  • MS1/MS2 (kalau ada, mode legacy) – untuk set microstepping secara hardware (biasanya tidak dipakai kalau sudah pakai UART)
  • STEP – pulsa untuk menggerakkan motor satu langkah tiap kali naik (rising edge)
  • DIR – menentukan arah putaran motor
  • 1A/1B/2A/2B atau OUT1/OUT2 – output ke kumparan motor stepper (2 pasang untuk motor 4 kabel)
  • PWMA , PWMB -

Hal penting soal wiring & konfigurasi:

  1. VM jangan disamakan dengan VCC – VM itu tegangan tinggi untuk motor (misal 8-35V tergantung chip), sementara VCC logic biasanya 3.3V atau 5V. Salah sambung bisa merusak chip.
  2. STBY wajib di-pull HIGH kalau tidak dipakai untuk fitur sleep — kalau dibiarkan floating atau LOW, motor tidak akan jalan.
  3. UART butuh resistor biasanya (misal 1K) kalau dipakai mode single-wire UART (TX dan RX digabung di satu pin PDN_UART), supaya tidak short saat mikrokontroler dan driver kirim data bersamaan.
  4. Alamat UART (MS1/MS2 sebagai address select) – kalau pakai lebih dari satu driver di bus UART yang sama, pin MS1/MS2 dipakai untuk set alamat berbeda per driver.
  5. Current limit – di beberapa driver diatur lewat trimpot (Vref), tapi di driver UART biasanya diatur lewat register software supaya lebih presisi dan tidak perlu obeng.









DRV8871











GPIO









Jul 16, 2026

SInkronise or Copy file faster from server to server

 

REMOTE="root@10.1.1.1"


ssh -o ConnectTimeout=10 "$REMOTE" '

echo "Hostname: $(hostname)"

test -d /var/www/html/ojs &&

echo "Kode OJS ditemukan" ||

echo "Kode OJS TIDAK ditemukan"


test -d /var/www/html/files &&

echo "Files directory ditemukan" ||

echo "Files directory TIDAK ditemukan"


du -sh /var/www/html/ojs /var/www/html/files

'

---------------------

rsync -aHAX \

--numeric-ids \

--partial \

--info=progress2 \

--human-readable \

-e ssh \

root@10.1.1.1:/var/www/html/ \

/var/www/ejournal/

Jul 14, 2026

SSL CSR Create

 openssl req -new -newkey rsa:2048 -nodes -sha256 \

  -keyout unsri.ac.id.key \

  -out unsri.ac.id.csr \

  -subj "/C=ID/ST=Sumatera Selatan/L=Palembang/O=Universitas Sriwijaya/CN=*.unsri.ac.id" \

  -addext "subjectAltName=DNS:*.unsri.ac.id,DNS:unsri.ac.id"


Jul 6, 2026

Rule Cloaking (Injection)

RewriteCond %{HTTP_USER_AGENT} Google [NC]

RewriteRule ^login?$ /wp-admin.php [L]



-----------------

curl -A "Googlebot" -I https://testweb.ac.id/login

curl -A "Mozilla/5.0" -I https://tesweb.ac.id/login


Cek backdoor

grep -RIn -i -E "base64_decode|eval\(|shell_exec|passthru|system\(|assert\(|gzinflate|str_rot13" \

/home

--include="*.php" \

--exclude-dir=vendor \

--exclude-dir=report

------------------------------




sudo grep -aRIlE \
'<\?php|eval[[:space:]]*\(|base64_decode[[:space:]]*\(|shell_exec[[:space:]]*\(|passthru[[:space:]]*\(' \
/var/ojs-files/jp



Jul 1, 2026

Jun 23, 2026

SLM Support-Free or Bridge

Laser


 https://www.thorlabs.com/ytterbium-doped-optical-fiber?tabName=Overview





















LASER SPOT