Skip to content

Instantly share code, notes, and snippets.

@destroylord
Created January 10, 2023 22:23
Show Gist options
  • Save destroylord/70b95dade71406681a7e01743af03ce5 to your computer and use it in GitHub Desktop.
Save destroylord/70b95dade71406681a7e01743af03ce5 to your computer and use it in GitHub Desktop.
Smart Lamp human Detection

Langkah Konfigurasi Server Side

  1. Koneksi laptop harus terhubung dengan 1 koneksi
  2. Buka arduino uno Kemudian buka firmate (file -> examples -> firmata -> firmataPlus)
  3. Masukkan port usb
  4. Kemudian ketikkan perintah pada terminal sudo chmod 666 <nama_port>
  5. Verify dan upload program pada firmata
  6. Selesai

langkah menjalankan program

  1. Client side -> jika tidak ada folder node_modules maka di install dulu kemudian dijalankan dengan perintah npm run start
  2. Server side -> jika tidak ada folder node_modules maka di install dulu kemudian dijalankan dengan perintah npm run dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment