Cov txheej txheem:

IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag: 8 Kauj Ruam (nrog Duab)
IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag: 8 Kauj Ruam (nrog Duab)

Video: IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag: 8 Kauj Ruam (nrog Duab)

Video: IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag: 8 Kauj Ruam (nrog Duab)
Video: txhob muab kuv hu txiv ntxawm nkauj tawm tshiab npawg lem 2024, Kaum ib hlis
Anonim
Image
Image
IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag
IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag
IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag
IoT RC Tsheb Nrog Ntse Teeb Chaw Taws Teeb lossis Rooj vag

Txog qhov haujlwm tsis cuam tshuam, kuv tau sau qee qhov Arduino code tham nrog MiLight cov teeb ntse thiab teeb pom kev zoo uas kuv muaj hauv kuv lub tsev.

Tom qab kuv ua tiav hauv kev cuam tshuam cov lus txib los ntawm kev siv wireless, Kuv txiav txim siab ua me me RC tsheb los ntsuas qhov chaws. Nws hloov tawm 2.4GHz kev siv nyob rau hauv cov teeb no muaj lub ntsej muag 360 kov rau xaiv cov xim thiab nws ua haujlwm zoo kawg rau kev tsav tsheb RC!

Ib qho ntxiv, siv MiLight lub rooj vag lossis ESP8266 MiLight lub hauv paus, koj tuaj yeem tswj lub tsheb los ntawm lub xov tooj ntawm tes lossis ib qho khoom siv txuas nrog Internet!

Kauj Ruam 1: Lub hauv paus ntawm Txoj Haujlwm no

Txoj haujlwm no yog ua raws txoj kab ntawm cov teeb pom kev zoo wireless uas tuaj rau tom khw ob peb xyoos dhau los. Lawv tau xub pib muag raws li LimitlessLED, tab sis txij li tau muaj nyob hauv lwm lub npe, xws li EasyBulb lossis MiLight.

Thaum cov qij no feem ntau muag raws li WiFi sib xws, tab sis lawv tsis muaj peev xwm WiFi thiab hloov pauv ntawm lub qhov rooj uas siv cov lus txib xa los ntawm WiFi thiab txhais lawv rau hauv tus tswv 2.4GHz wireless raws tu qauv. Yog tias koj tau txais lub qhov rooj, cov qij tuaj yeem tswj tau los ntawm lub xov tooj smartphone app, tab sis yog tias koj tsis ua, koj tseem tuaj yeem tswj cov teeb no siv cov khoom siv wireless nyob ib leeg.

Cov qij no thiab cov khoom siv nyob deb yog tus tswv, tab sis tau siv zog los thim rov qab tus kws tsim cov txheej txheem thiab tsim kev qhib qhov chaw hloov mus rau lub qhov rooj WiFi. Qhov no tso cai rau qee qhov muaj peev xwm nthuav, xws li siv cov kev qhia rau koj tus kheej Arduino cov haujlwm, raws li tau qhia hauv Phau Ntawv Qhia no.

Kauj Ruam 2: Tau Txais Qhov Chaw Nyob Zoo

Tau Txais Qhov Chaw Nyob Zoo
Tau Txais Qhov Chaw Nyob Zoo

MiLight qhov muag teev thiab kev ceeb toom tsis tau txhais tias yuav qhib thiab yog li tsis muaj cov ntaub ntawv raug cai ntawm cov txheej txheem. Muaj ntau ntau tiam sib txawv ntawm qhov muag teev thiab lawv yeej tsis hloov pauv tau.

Txoj haujlwm no ua rau siv cov chaw taws teeb rau ib ntawm plaub hom ntawm qhov muag teev uas muaj thiab paub yuav ua li cas thiaj paub qhov txawv ntawm hom pom kev yuav pab koj yuav qhov chaw nyob raug. Plaub hom yog:

  • RGB: Cov qij no muaj cov xim tswj tau thiab ci ci; cov chaw taws teeb muaj lub log xim thiab peb lub khawm toggle dawb.
  • RGBW: Cov qij no muab rau koj xaiv ntawm cov xim thiab ib qho ntxoov ntxoo dawb; cov chaw taws teeb muaj lub log xim, lub teeb ci ci, peb lub teeb daj daj, thiab plaub pab pawg daj toggle khawm.
  • CCT: Cov qij no tsuas yog lub teeb dawb xwb, tab sis tso cai rau koj hloov lawv los ntawm sov dawb los txias dawb; cov chaw taws teeb muaj lub nplhaib tswj xim dub thiab khawm dawb.
  • RGB+CCT: Qij tuaj yeem pom xim thiab tuaj yeem sib txawv los ntawm sov dawb mus rau dawb txias; cov chaw taws teeb yog qhov cuam tshuam tshaj plaws ntawm plaub thiab tuaj yeem ua qhov txawv los ntawm cov xim kub xim, qee qhov khawm crescent zoo li cov nyees khawm thiab lub teeb xiav xiav nyob ib puag ncig ntawm ntug.

Txoj haujlwm no tau ua nrog RGBW cov chaw taws teeb thiab tsuas yog ua haujlwm nrog cov qauv ntawm cov chaw taws teeb. Yog tias koj xav sim ua txoj haujlwm no koj tus kheej, nco ntsoov tias koj tau txais cov chaw taws teeb raug vim lawv yeej tsis hloov pauv tau*

DISCLAIMER: *Tsis tas li, kuv tsis tuaj yeem lav qhov phiaj xwm no yuav ua haujlwm rau koj. Nws muaj peev xwm MiLight cov neeg yuav tau hloov cov txheej txheem siv hauv RGBW chaw taws teeb txij li thaum kuv yuav kuv tus kheej ob peb xyoos dhau los. Raws li qhov no yuav ua rau tsis sib xws ntawm lawv cov khoom, Kuv xav tias nws tsis zoo li, tab sis qhov kev pheej hmoo nyob ntawd.

Kauj Ruam 3: Siv Nrog WiFi Rooj vag thiab Smartphone

Siv Nrog WiFi Rooj vag thiab Smartphone
Siv Nrog WiFi Rooj vag thiab Smartphone
Siv Nrog WiFi Rooj vag thiab Smartphone
Siv Nrog WiFi Rooj vag thiab Smartphone

Yog tias koj muaj MiLight WiFi lub qhov rooj, ib tus neeg ua haujlwm, lossis DIY ESP8266 MiLight Hub, tom qab ntawd koj tseem tuaj yeem tswj lub tsheb siv MiLight smartphone app ntawm lub xov tooj lossis ntsiav tshuaj.

Thaum lub xov tooj cua raws tu qauv siv los ntawm MiLight qhov muag teev tsis sib xws nrog WiFi, lub hauv paus ua haujlwm zoo li tus choj ntawm WiFi network thiab MiLight network. RC buggy coj zoo li lub teeb yuav, yog li ntxiv tus choj qhib qhov nthuav qhov muaj peev xwm tswj hwm RC buggy los ntawm lub xov tooj ntawm tes lossis los ntawm PC ntawm UDP pob ntawv.

Kauj Ruam 4: Lwm Yam Khoom

Lwm Cheeb Tsam
Lwm Cheeb Tsam

Peb ntawm cov khoom siv los ntawm SparkFun Inventor's Kit v4.0, cov no suav nrog:

  • Hobby Gearmotor - 140 RPM (Pair)
  • Log - 65mm (Roj Hmab Log, Pair)
  • Ultrasonic Distance Sensor - HC -SR04

Qhov ntsuas qhov nrug tsis tau siv hauv kuv tus lej, tab sis kuv muab nws tso rau ntawm kuv lub tsheb vim nws zoo li txias li lub taub hau faux, ntxiv rau kuv xav tias kuv yuav siv nws tom qab ntxiv qee qhov kev tiv thaiv kev sib tsoo.

Lwm cov Cheebtsam yog:

  • Pob Caster Omni-Directional Hlau
  • Ib Arduino Nano
  • Arduino Nano xov tooj cua tiv thaiv RFM69/95 lossis NRF24L01+
  • L9110 tsav tsheb los ntawm eBay
  • Txiv neej rau poj niam jumper cables

Koj tseem yuav xav tau 4 AA lub roj teeb tuav thiab roj teeb. Kuv cov duab qhia tus tuav lub roj teeb 3D luam tawm, tab sis koj yuav tsum tau yuav lub caij nplooj ntoo hlav caij nplooj ntoo hlav cais thiab nws tej zaum tsis tsim nyog siv zog!

Koj tseem yuav xav tau lub tshuab luam ntawv 3D los luam lub chassis (lossis koj tuaj yeem zam nws tawm ntawm ntoo, nws tsis nyuab heev).

Ib lo lus ceeb toom:

Kuv siv qhov pheej yig Arduino Nano clone thiab pom tias nws tau kub heev thaum khiav lub tsheb rau lub sijhawm tseem ceeb. Kuv xav tias qhov no yog vim tias 5V tus tswj hwm ntawm cov khoom lag luam pheej yig tau qis dua thiab tsis tuaj yeem xa tam sim no xav tau rau lub xov tooj cua wireless. Kuv ntsuas tias Arduino thiab xov tooj cua kos tsuas yog 30mA, uas yog qhov zoo hauv qhov tshwj xeeb rau qhov ntsuas hluav taws xob ntawm qhov tseeb Arduino Nano. Yog li yog tias koj zam cov clones, kuv xav tias koj yuav tsis muaj teeb meem (qhia rau kuv paub hauv cov lus yog tias koj pom lwm yam!).

Kauj Ruam 5: Xeem Arduino thiab Chaw Taws Teeb

Xeem Arduino thiab Chaw Taws Teeb
Xeem Arduino thiab Chaw Taws Teeb
Xeem Arduino thiab Chaw Taws Teeb
Xeem Arduino thiab Chaw Taws Teeb

Ua ntej sib sau ua ke RC kab, nws yog lub tswv yim zoo los xyuas seb lub chaw taws teeb tuaj yeem tham nrog Arduino los ntawm lub xov tooj cua.

Pib los ntawm kev teeb tsa Arduino Nano atop ntawm RF daim thaiv. Yog tias lub USB txuas tau tig mus rau sab laug rau sab saum toj, lub PCB wireless yuav tsum tig mus rau sab xis hauv qab.

Tam sim no, ntsaws Arduino Nano rau hauv koj lub khoos phis tawj siv USB cable thiab xa cov duab kos kuv tau suav nrog hauv cov ntawv zip. Qhib lub serial monitor thiab thawb lub pob ntawm lub chaw taws teeb. Lub teeb yuav tsum teeb ntawm lub chaw taws teeb (yog tias tsis yog, tshawb xyuas lub roj teeb).

Yog tias txhua yam mus tau zoo, koj yuav tsum pom qee cov lus hauv lub qhov rai qhov rai txhua lub sijhawm koj nias lub pob. Khiav koj tus ntiv tes ib ncig ntawm lub log kov xim thiab saib qhov hloov pauv ntawm "Hawj txawm". Nov yog yam uas yuav tsav lub tsheb!

Xyuas kom tseeb tias cov kauj ruam no ua haujlwm, vim tias tsis muaj cov ntsiab lus txuas ntxiv yog tias nws tsis ua!

Kauj Ruam 6: Luam Ntawv thiab Sib Sau Cov Chassis

Luam Ntawv thiab Sib Sau Cov Chassis
Luam Ntawv thiab Sib Sau Cov Chassis

Kuv tau suav nrog STL cov ntaub ntawv rau 3D qhov chaw luam tawm. Txog CAD cov ntaub ntawv, koj tuaj yeem saib ntawm no. Muaj peb ntu, sab laug thiab sab xis lub cev muaj zog thiab lub chassis.

Sab laug thiab sab xis lub tog raj kheej tuaj yeem txuas rau lub cav siv ntoo ntsia hlau. Tom qab ntawd, lub cev muaj zog txuas rau lub chassis siv M3 cov txiv ntseej thiab ntsia liaj qhov rooj (lossis kua nplaum, yog tias koj xav tau). Tus neeg tsav tsheb txuas rau sab xub ntiag ntawm lub chassis siv plaub tus ntsia hlau thiab ntsia hlau.

Kauj Ruam 7: Ntxiv Cov Khoom Siv Hluav Taws Xob

Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob

Ntsia tus tsav tsheb stepper ntawm lub chassis thiab txuas cov xov hlau los ntawm lub cav mus rau cov ntsia hlau hauv cov dav hlau ntawm tus tsav tsheb. Kuv siv cov xov txuas hauv qab no:

  • Sab laug lub cev liab: OB2
  • Sab laug lub cev dub: OA2
  • Txoj cai lub cev liab: OB1
  • Txoj cai lub cev dub: OA1

Khiav lub zog los ntawm qhov zoo ntawm lub roj teeb mus rau Vcc ntawm tus tsav tsheb PCB thiab Vin ntawm Arduino. Khiav qhov tsis zoo ntawm lub roj teeb mus rau GND ntawm GND ntawm Arduino. Koj yuav tsum tau txuas tus Y cable kom ua tiav qhov no.

Thaum kawg, ua kom tiav cov khoom siv hluav taws xob los ntawm kev siv cov xov hluav taws xob txuas rau cov txuas hauv qab no ntawm Arduino rau tus tsav tsheb tsav:

  • Arduino tus pin 5 -> Stepper Driver IB1
  • Arduino tus pin 6 -> Stepper Driver IB2
  • Arduino pin A1 -> Stepper Tsav IA1
  • Arduino tus pin A2 -> Stepper Tsav IA2

Kauj Ruam 8: Xeem Tus Neeg Hlau

Tam sim no, thawb cov nyees khawm thiab pom tias tus neeg hlau txav mus! Yog hais tias lub cav zoo li thim rov qab, koj tuaj yeem hloov kho qhov thaiv ntawm tus neeg hlau, lossis koj tuaj yeem yooj yim kho cov kab hauv qab no hauv Arduino kos duab:

L9110 sab laug (IB2, IA2); L9110 sab xis (IA1, IB1);

Yog tias sab laug thiab sab xis yuav tsum tau pauv, pauv cov lej hauv kab lus, xws li:

L9110 sab laug (IB1, IA1); L9110 sab xis (IA2, IB2);

Txhawm rau rov qab tsuas yog kev taw qhia ntawm lub tshuab laug, sib pauv cov tsiaj ntawv hauv kab lus rau lub tshuab laug, zoo li:

L9110 sab laug (IA2, IB2);

Txhawm rau thim rov qab kev taw qhia ntawm txoj cai lub cev, sib pauv cov tsiaj ntawv hauv kab lus rau lub tshuab kom raug, xws li:

L9110 txoj cai (IB1, IA1);

Yog tag nrho! Hmoov zoo thiab muaj kev lom zem!

Pom zoo: