sohotcall

Lampu HOW-TO

May 13th, 2019
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Setup Server
  2. ============
  3. - Install nodejs
  4. - Taruh file lampu.n.js (https://pastebin.com/jhUDhrHp) ke server
  5. - Jalankan. $ node lampu.n.js
  6.  
  7. Setup board
  8. ===========
  9. - Install driver board
  10. - Install python, pip. Saat setup register ke PATH Environment variable
  11. - Install esptool. $ pip install esptool
  12. - Kosongkan firmware di board. $ esptool.py --port COM5 erase_flash
  13. - Download micropython-esp8266
  14. - Install micropython-esp8266. $ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect 0 esp8266-20170108-v1.8.7.bin
  15. - Install ampy. $ pip install adafruit-ampy
  16. - Download lampu.py (https://pastebin.com/G0SeTPfa)
  17. - Install lampu.py ke board. $ ampy --port COM5 put lampu.py main.py
  18.  
  19. Menjalankan
  20. ===========
  21. - Siapkan hotspot SSID:test password:wifiwifi
  22. - Install dan jalankan putty, pilih portnya.
RAW Paste Data