Lập trình điều khiển UAV-Aircraft bằng bộ thu phát radio RF 315Mhz với arduino nano

Thảo luận trong 'Thiết bị điều khiển' bắt đầu bởi chinh trung, 22/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
    + 2 Board Arduino nano.
    + 1 Mạch phát RF 315Mhz.
    + 1 Mạch thu RF 315Mhz.
    + 2 Mạch điêu áp 12V/8V LM2596 để bảo vệ 2 Board Arduino nano.
    + 4 biến trở 1/4W+-5% carbon;điện trở tổng 10K.
    + 1 connector 2 pin.
    + 1 connector 3 pin.

    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 "Arduino nano'

    3. UPLOAD:
    Upload 2 file đính kèm cho Bộ điêu khiển bay (receiver) và Bộ điêu khiển câm tay từ xa ( transmitter) vào 2 board Nano.

    4. Sơ đồ đấu dây RUN (file đính kèm):
    4.1. Bộ điêu chỉnh tốc độ ESC của motor M4-propeller(Receiver RX1):

    ESC-----------------------Nano-----LM2596--------Nguồn

    -------------------------------Vin-----------8V--------------12V
    CON1:
    PIN(+)----------------------Vin-----------------------------12V
    PIN(-)----------------------GND----------GND-----------GND
    CON2:
    Vcc----------------------------------------------------------N/C(not connect)
    GND--------------------------------------------------------N/C(not connect)
    SIGNAL-----------------------D12

    4.2. Servo motor M1,M2,M3(Receiver RX1):
    M1(Elevator)---------------Nano

    PIN(+)------------------------5V
    PIN(-)----------------------GND
    SIGNAL-----------------------D9
    M2(Rudder)---------------Nano
    PIN(+)------------------------5V
    PIN(-)----------------------GND
    SIGNAL-----------------------D10
    M3(Aileron)---------------Nano
    PIN(+)------------------------5V
    PIN(-)----------------------GND
    SIGNAL-----------------------D8

    4.3.Mạch thu RF 315Mhz (Receiver RX1):
    RX-------------------------Nano

    1.GND-----------------------GND
    2.DATA----------------------D11
    3.DATA----------------------D11
    4.VCC-------------------------5V
    5.GND-----------------------GND
    6.ANT------------------------N/C(not connect)
    4.4.Mạch phát RF 315Mhz (Transmitter TX1):
    TX-------------------------Nano

    1.DATA----------------------D12
    2.VCC-------------------------5V
    3.GND-----------------------GND
    4.ANT------------------------N/C(not connect)
    4.5. Biến trở VR1,VR2,VR3,VR4(Transmitter TX1):
    VR1(Elevator)------------Nano----------------LM2596

    --------------------------------Vin----------------------8V
    Vin(+)------------------------5V
    GND(-)-----------------------GND---------------------GND
    Vout---------------------------A0
    VR2(Rudder)---------------Nano
    --------------------------------Vin-----------------------8V
    Vin(+)------------------------5V
    GND(-)-----------------------GND---------------------GND
    Vout---------------------------A1
    VR3(Aileron)--------------Nano
    --------------------------------Vin-----------------------8V
    Vin(+)------------------------5V
    GND(-)-----------------------GND---------------------GND
    Vout---------------------------A2
    VR4(Propeller)-----------Nano
    --------------------------------Vin-----------------------8V
    Vin(+)------------------------5V
    GND(-)-----------------------GND---------------------GND
    Vout---------------------------A3

    5.Ref:
    + https://electronicsforu.com/electronics-projects/hardware-diy/rf-controlled-aircraft
    + http://quanphongrc.vn/ct/may-bay-di...en-kit-rap-san-co-decal-cang-dap-banh-xe.html
    + http://quanphongrc.vn/ct/may-bay-dieu-khien/1264/combo-1-kit-f22-co-do-dien-size-60cm.html
    + http://quanphongrc.vn/ct/may-bay-di...kit-su-27-deo-mpp-full-do-dien-size-72cm.html
    + http://hshop.vn/products/arduino-nano-2
    + http://hshop.vn/products/mach-phat-sung-rf-315mhzh34a
    + http://hshop.vn/products/mach-thu-sung-rf-315mhzh5v3m
    + http://mualinhkien.vn/san-pham/3279/bien-tro-gat-10k-103.html
    + http://hshop.vn/products/mach-giamop-dc-lm2596-3a
    + Driver bo arduino Nano giao tiếp PC: http://www.mediafire.com/file/j9k6p9n6nzo54tq/[Hshop.vn] CH340_Driver.zip
    6.Libraries:
    + Trong file đinh kèm
    7. Note:
    + Mạch điêu áp 12V/8V LM2596: vặn ôc chỉnh ngược chiêu kim đông hô --> giảm áp
    + Không nên đưa biến trở về mức R~0 ohm sẽ làm hỏng board Nano của Transmitter

    Các file đính kèm:

    Chỉnh sửa cuối: 11/9/18

Chia sẻ trang này