Cov txheej txheem:

SMARTPHONE tswj ROBOT siv BLE 4.0 !!!: 5 Kauj Ruam
SMARTPHONE tswj ROBOT siv BLE 4.0 !!!: 5 Kauj Ruam

Video: SMARTPHONE tswj ROBOT siv BLE 4.0 !!!: 5 Kauj Ruam

Video: SMARTPHONE tswj ROBOT siv BLE 4.0 !!!: 5 Kauj Ruam
Video: Технический разговор TUDev с профессором Борой Озкан - Финтех и будущее финансов 2024, Kaum ib hlis
Anonim
Image
Image
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Hauv cov lus qhia yav dhau los Kuv tau qhia nrog koj li cas koj tuaj yeem siv Bluetooth Module (Tshwj xeeb HM10 BLE v4.0) nrog Arduino los tswj LEDs siv smartphone. Koj tuaj yeem tshawb xyuas nws ntawm no. Hauv cov lus qhia no kuv yuav qhia koj yuav tsim tus neeg hlau li cas uas tuaj yeem tswj tau siv smartphone ntawm Bluetooth Tsawg Zog. Kuv Yuav sim ua kom yooj yim li sai tau.

Kauj Ruam 1: Yam Koj Yuav Tsum Tau:-

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Yog li ntawm no kuv tau muab lub npe thiab cov ntsiab lus ntawm txhua qhov khoom koj yuav xav tau nrog rau qhov kev yuav khoom zoo tshaj plaws.

1. Cov Khoom Siv Hluav Taws Xob:-

Arduino UNO:- Kuv tau siv UNO tab sis koj tuaj yeem siv lwm lub rooj tsavxwm zoo li Mega yog tias koj xav muab tus neeg hlau tshwj xeeb ntxiv thiab xav tau ntau ntawm I/O pins lossis Nano me dua yog tias koj xav tau me me compact bot. Yog tias koj yog tus pib kuv qhia koj kom tau txais UNO ua rau nws muaj ntau yam thiab siv tau zoo. Link rau Asmeskas Txuas rau Tebchaws Europe

Arduino Motor Shield:- Kuv tau siv L293D lub cev tiv thaiv kab mob uas yog pheej yig thiab siv tau rau txoj haujlwm no, Tab sis yog tias koj xav tau koj tuaj yeem xaiv. rau qhov ua tau zoo dua Lub cev tiv thaiv kab mob L298N uas muaj peev xwm tuav lub cav loj dua. Link rau USLink rau Europe

Bluetooth Module:-Ntawm no kuv siv AT-09 module uas yog HM-10 sib xws. Koj tuaj yeem mus rau HM-10 yog tias koj nyiam. Txawm hais tias qhov kev qhia no yog qhov pib rau Bluetooth 4.0v, koj tuaj yeem siv HC-05 module ib yam yog tias koj muaj qhov tso ib puag ncig. Txuas rau USLink rau Tebchaws Europe

Geared DC Motors:- Cov uas kuv siv yog pheej yig thiab yuav ua tiav txoj haujlwm. tab sis yog tias koj xav mus tiag tiag koj tuaj yeem yuav lub zog loj lub zog los ntawm no. Txuas rau USLink rau Tebchaws Europe

  • Cov roj teeb:- 2 lub roj teeb yuav xav tau rau txoj haujlwm no 9v-12v roj teeb rau tus tsav tsheb thiab 9v roj teeb rau Arduino. Lossis lwm yam koj tuaj yeem siv lub txhab nyiaj hluav taws xob los txhawb nws los ntawm USB Txuas rau USLink rau Tebchaws Europe
  • 2.2k ohm & 1k ohm resistors txhua. Txuas rau USLink rau Tebchaws Europe

2. Software Yuav Tsum Tau:-

Arduino IDE:- Rau kev sau thiab xa cov cai mus rau pawg tswj hwm arduino

BLE Joystick apk:- Siv BLE joystick apk yog tias koj siv HM10/AT-09 modules. Yog tias koj siv HC-05/06 modules siv Bluetooth Controller App

3. Yuav tsum tau kho vajtse:-

Tam sim no cov khoom siv xav tau sib txawv ntawm ntau yam, Zoo li yog tias koj xav tau 2 lub log neeg hlau lossis 4 lub log tsheb ib qho. Los yog tej zaum koj xav tau ib qho nrog cov kab zoo li Tank. Yog li ntawm no kuv tau muab txuas rau ob peb tus neeg hlau chassis uas koj tuaj yeem yuav, lossis koj tuaj yeem ua ib qho nrog cov khoom koj tau tso ib puag ncig zoo li cov duab los qhia / ntawv acrylic.

  • 2 lub log tsav.
  • 4 lub log tsav.
  • Tank chassis.

Kuv yuav siv qee qhov tso ib puag ncig los ua lub cev neeg hlau. Cov ntsiab lus hauv cov kauj ruam tom ntej.

Kauj Ruam 2: Ua Chassis:-

Ua Chassis
Ua Chassis
Ua Chassis
Ua Chassis
Ua Chassis
Ua Chassis

Ntawm no kuv tau siv 5mm tuab Sunboard rau lub hauv paus, drilled qhov rau lub tog raj kheej thiab Arduino rau saum. thiab sib sau ua ke txhua yam raws li qhia hauv daim duab. Kuv tau tsim cov qauv zoo sib xws hauv Cov Lus Qhia yav dhau los koj tuaj yeem tshawb xyuas nws ntawm no nws muaj cov ncauj lus kom ntxaws txog kev tsim qauv:- Yooj Yim & Ntse Neeg Hlau Siv Arduino.

Hloov chaw ntawm ua koj tus kheej koj tseem tuaj yeem yuav ib qho uas yuav yooj yim dua. Cov Txuas Kuv twb tau qhia tawm hauv cov kauj ruam dhau los.

Cov ntawv tshaj tawm no yog ntau ntxiv txog kev tswj hwm tus neeg hlau siv BLE yog li cia nkag mus rau hauv nws.

Kauj Ruam 3: Ua Kev Sib Txuas:-

Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas
Ua Kev Sib Txuas

Ua ntej Koj yuav tsum txuas Bluetooth module rau arduino zoo li qhia hauv daim duab saum toj no.

  • Tx => Rx of Arduino (Pin 0)
  • Rx => Tx of Arduino (Pin 1)
  • GND => GND
  • Vcc => +5v

Pom zoo: