Lập trình điều khiển robot bất kỳ nơi nào chỉ bằng ESP8266 NodeMCU V3 CH340 qua Adafruit

Thảo luận trong 'Thiết bị điều khiển' bắt đầu bởi chinh trung, 9/12/17.

  1. chinh trung

    chinh trung Moderator

    1.Thiết bị:
    + ESP8266 NodeMCU V3 CH340
    + Servo
    2. Cài đặt Adafruit IO theo hướng dẫn
    https://learn.adafruit.com/adafruit-io-basics-servo/adafruit-io-setup
    3. Đấu nối:
    https://learn.adafruit.com/adafruit-io-basics-servo/wiring
    + Lưu ý đấu cực dương của Servo vào 3.3V
    + GND Servo--->G NodeMCU
    + Dây tín hiệu (vàng ) Servo---> D2 (sửa code pỉn 2 thành D2)
    4. Cài đặt thư viện:
    + Adafruit_IO_Arduino:
    https://github.com/adafruit/Adafruit_IO_Arduino
    + ArduinoHttpClient
    https://github.com/arduino-libraries/ArduinoHttpClient
    5. Chọn Code:
    + File-->Examples-->Adafruit IO Arduino--> adafruitio_16_servo.
    + Chọn Board: NodeMCU 1.0 (ESP-12E Module)
    6. Cấu hình mạng:
    https://learn.adafruit.com/adafruit-io-basics-servo/network-config-uniontownlabs

    7.Upload.
    8. Option 01: Điều khiển Servo trên PC:

    + Về lại trang io.adafruit.com di chuyển Slider, Servo sẽ dịch chuyển theo vi trí Slider.
    + Kết nối PC với Wifi hotspot của smartphone để điều khiển servo.

    9. Option 02: Điều khiển Servo trên smartphone:

    + Tắt wifi, chạy 3G.
    + Vào trang io.adafruit.com.
    + Vào Dashboard-->Servo, dịch chuyển Slider. Servo sẽ di chuyển tương ứng.

    10.Ref:
    + https://learn.adafruit.com/adafruit-io-basics-servo

    Các file đính kèm:

    Chỉnh sửa cuối: 9/12/17
  2. nontakjaba

    nontakjaba Member

    Cam on ban da chia se

Chia sẻ trang này