Lập trình điều khiển UAV-Aircraft bằng module Wifi ESP-12E qua adafruit.com

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

  1. chinh trung

    chinh trung Moderator

    1. Thiết bị:
    + 1 khung máy bay combo:
    http://quanphongrc.vn/ct/may-bay-di...en-kit-rap-san-co-decal-cang-dap-banh-xe.html
    + 1 module wifi NodMCU 1.0(ESP-12E).
    + 1 Mạch điêu áp 12V/5V LM2596 để bảo vệ ESP-12E.

    2. Chọn Board:
    +
    Cài đặt phần mềm Arduino IDE v.1.8.4.
    + Cài đặt drivers:
    - đối với win 32bit: vào thư mục Arduino IDE v.1.8.4\drivers --> dpinst-x86.exe --> enter.
    - đối với win 64bit: vào thư mục Arduino IDE v.1.8.4\drivers --> dpinst-amd64.exe --> enter.
    + Vào Tool --> chọn Board "NodMCU 1.0(ESP-12E Module)".

    3. UPLOAD:
    Upload file đính kèm vào module wifi NodMCU 1.0(ESP-12E).

    4. Sơ đồ đấu dây:
    4.1. Bộ điêu chỉnh tốc độ ESC của motor M4 (propeller):

    ESC-----------------------ESP-12E----------LM2596----------Nguồn

    ------------------------------Vin--------------------5V------------------11.1V
    CON1:
    PIN(+)------------------------------------------------------------------11.1V
    PIN(-)----------------------GND------------------GND--------------GND
    CON2 (M1) :
    Vcc----------------------------------------------------------------------N/C(not connect)
    GND--------------------------------------------------------------------N/C(not connect)
    SIGNAL-----------------------D5

    4.2. Servo motor M1,M2,M3:
    M1(Elevator)-----------ESP-12E----------LM2596

    PIN(+)----------------------------------------------5V
    PIN(-)------------------------GND----------------GND
    SIGNAL-----------------------D2
    M2(Rudder)-------------ESP-12E----------LM2596
    PIN(+)----------------------------------------------5V
    PIN(-)-------------------------GND---------------GND
    SIGNAL-----------------------D3
    M3(Aileron)-------------ESP-12E----------LM2596
    PIN(+)----------------------------------------------5V
    PIN(-)-------------------------GND---------------GND
    SIGNAL-----------------------D4

    5. RUN:
    5.1. Cài đặt adafruit io và cấu hình:
    Tham khảo forum.dmec.vn/index.php?threads/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.246872/
    5.2. Khởi tạo 4 Sliders tương ứng với M1, M2, M3, M4:
    + Trong trang web https://io.adafruit.com vào thư mục Feeds --> Actions--> Creat a New Group -->4servo.
    + Actions--> Creat a New Feed --> servo1--> Add to Group: 4servo, tương tự cho servo2, servo3, servo4.
    https://learn.adafruit.com/adafruit-io-basics-feeds/creating-a-feed
    + Vào thư mục Dasboards--> 4servo --> Create a new block --> Slider --> (Servo1)Elevator, (Servo2)Rudder, (Servo3)Aileron, (Servo4)propeller.
    5.3. Điều khiển máy bay
    bằng smatphone hoặc laptop qua hiệu chỉnh các Slider trên trang web https://io.adafruit.com

    6.Ref:
    + http://forum.dmec.vn/index.php?threads/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.246872/
    + http://quanphongrc.vn/ct/may-bay-di...en-kit-rap-san-co-decal-cang-dap-banh-xe.html
    + http://quanphongrc.vn/ct/may-bay-di...kit-su-27-deo-mpp-full-do-dien-size-72cm.html
    + http://quanphongrc.vn/ct/may-bay-dieu-khien/1264/combo-1-kit-f22-co-do-dien-size-60cm.html
    + http://hshop.vn/products/kit-rf-thu-phat-wifi-esp8266-nodemcu-lua-v3-ch340
    + http://hshop.vn/products/mach-giamop-dc-lm2596-3a
    7. Note:
    + Mạch điêu áp 12V/5V LM2596: vặn ôc chỉnh ngược chiêu kim đông hô --> giảm áp

    Các file đính kèm:

    Chỉnh sửa cuối: 6/2/21

Chia sẻ trang này