Cov txheej txheem:
- Kauj Ruam 1: Yam Yuav Tsum Tau
- Kauj Ruam 2: Tear Down Lub Tsheb qub thiab teeb tsa Servo Motor
- Kauj Ruam 3: Tsim Cov Khoom Siv Hluav Taws Xob, Nruab Nws Hauv Tsheb
- Kauj Ruam 4: Tshaj Tawm Txoj Cai ntawm Arduino, thiab Tsim App ntawm Android
- Kauj Ruam 5: Khiav daim ntawv thov thiab daws teeb meem lub tsheb
- Kauj Ruam 6: Ib yam dab tsi rau Txoj Haujlwm Yav Tom Ntej
Video: RC Tsheb Hack Nrog Android thiab Arduino: 6 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Hauv qhov kev qhia no, peb yuav tau txais koj lub qub qub RC kom raug tswj los ntawm Android thiab muab qee yam ntxiv rau nws
Cov ntawv qhia no muaj ob yam tshwj xeeb los ntawm lwm lub tsheb hacks tawm muaj.
1. Peb tab tom txhim kho servo kom tswj tau lub log
2. Peb tab tom siv cov kev cai hauv xov tooj ntawd app uas yuav tso cai rau nrhiav kev hloov kho nrawm thiab teeb tsa kev taw qhia
Dhau li ntawd peb tab tom tsim lub suab raj, peb yuav txhim kho txoj kev siv lub cav servo. Cov tsheb RC pheej yig tsis muaj lub luag haujlwm yooj yim, feem ntau lawv muaj lub cav uas tuaj yeem mus rau sab laug lossis sab xis thiab nws nyuaj rau tswj.
Lub tswv yim:
- tswj lub cav servo
- siv tus H-choj
- kev sib txuas lus dhau bluetooth
- siv qhov faib hluav taws xob los ntsuas qhov hluav taws xob ntau dua 5V
- PWM (pulse with modulation) technique
Yog tias koj tshawb xyuas cov kab ntawv txuas saum toj no koj yuav pom cov lus piav qhia ntxaws txog cov khoom no ua haujlwm li cas.
Nov yog kev qhia paub ntau ntxiv, thiab kuv xav tias nws yog rau cov tib neeg nrog qee qhov kev paub dhau los uas xav sim qee yam lom zem, thiab kawm qee yam khoom siv hluav taws xob los ntawm kev xyaum.
Cov txuj ci uas koj xav tau:
- tinkering: peb yuav rhuav lub tsheb qub siv lub cuab yeej dremel thiab cov ntsia hlau, cov xaim txiav thiab lwm yam
- cov khoom siv hluav taws xob yooj yim: peb yuav tsim lub rooj tsav xwm me me uas siv arduino nano thiab qee cov khoom siv sib txuas, thiab tom qab ntawd xaim lawv mus rau cov khoom siv hauv tsheb.
- arduino programming: xa cov cai mus rau Arduino board siv Arduino IDE thiab FTDI adapter, hloov kho me me rau cov cai
- tsim ib qho Android app: peb yuav nqa cov cai los ntawm Bitbucket, tsim daim ntawv thov thiab xa nws mus rau lub xov tooj ntawm tes
Kauj Ruam 1: Yam Yuav Tsum Tau
Qhov:
1. arduino pro mini 16Mhz 5V yam (eBay) 2 $
2. HC-05 bluetooth module (eBay) 3.3 $
3. L298 H-choj (eBay) 2 $
4. buzzer (eBay) <1 $
5. PCB <1 $ ib thooj
6. 2 x 1kOhm rezistor
7. 2 cell LiPo roj teeb 1000mAh
8. L7805CV 5V tus tswj hwm (eBay) <1 $ ib thooj
9. txiv neej & poj niam pcb txuas <1 $ rau yam peb xav tau
10. XT-60 poj niam LiPo txuas (eBay) 1.2 $
11. SG90 9G Micro servo motor (eBay)
Cov Cuab Yeej: 1. Soldering hlau rau cov xov hlau txuas rau LiPo cov txuas
2. Cov hlau txiav
3. Ntsia taub hau me me
4. Cutter
5. USB rau serial FTDI adapter FT232RL rau programm arduino pro mini
6. Lub khoos phis tawj nrog ArduinoIDE tau teeb tsa los teeb tsa lub program arduino
8. Ib lub xov tooj hauv xov tooj
Kauj Ruam 2: Tear Down Lub Tsheb qub thiab teeb tsa Servo Motor
Peb yuav xaiv lub tsheb RC thiab rhuav nws, hloov kho thiab lwm yam Kuv tau txuas qee cov duab hauv qab no rau koj kom pom tag nrho cov txheej txheem.
Ua ntej peb yuav tshem lub tsheb, thiab tom qab ntawd peb yuav tshem tawm ntawm cov khoom siv hluav taws xob sab hauv thiab cov khoom siv tsis zoo (zoo li lub roj teeb tuav thiab lub kauj qub)
Yam uas peb yuav tau saib xyuas thaum peb ua qhov no:
- peb muaj chav txaus hauv tsheb txhawm rau teeb tsa peb lub rooj tsav xwm nrog cov khoom siv hluav taws xob, servo, H-choj thiab LiPo 2S roj teeb
- lub cav servo tuaj yeem teeb tsa thiab nws tuaj yeem hloov kho kom tsav lub tsheb qub (yog tias koj saib hauv cov duab koj yuav pom tias kuv tau ua tiav qhov no ntawm tus qauv tshwj xeeb ntawm lub tsheb)
- peb tsis ua puas lub tsheb qauv, lub kauj thiab lossis lub zog tsheb ciav hlau
Thaum kawg ntawm cov kauj ruam no peb yuav tsum tshem tag nrho lub tsheb lub siab, muab ob lub xov hlau txuas rau lub tsheb tsheb, teeb tsa lub cav servo thiab txuas nws mus rau lub tshuab tsav tsheb.
Kauj Ruam 3: Tsim Cov Khoom Siv Hluav Taws Xob, Nruab Nws Hauv Tsheb
Kuv tau txuas cov txheej txheem fritzing kom txhua yam yuav yooj yim dua. Kev cai PCB yuav suav nrog Arduino pro mini, HC-05 bluetooth module, ob peb tus tiv thaiv rau qhov faib hluav taws xob, piezo buzzer thiab l7805cv 5V tus tswj hwm.
PCB tseem yuav muaj ntau yam txuas thiab xov hlau kom yooj yim ntsaws. Peb pawg thawj coj yuav txuas mus rau lub zog xa khoom, mus rau lub tsheb qub lub cav hluav taws xob los ntawm H-Choj, thiab rau lub tshuab servo. Tsis tas li bluetooth thiab Arduino pro mini yuav muaj kev cai sib txuas ua los ntawm txiv neej & poj niam PCB txuas.
Ib qho kev faib hluav taws xob los ntawm ob qhov kev tiv thaiv zoo ib yam muaj nyob ntawm peb PCB kom nws txo qis hluav taws xob qis dua 5 volts rau peb tus pin analog los ntsuas. Qhov ntsuas yuav raug xa mus rau Android App thiab yuav tshwm ntawm qhov screen.
Lub tsheb fais fab yuav yog 2 lub roj teeb LiPo nrog tsawg kawg 1000 mAh. Lub roj teeb yuav ncaj qha tsav lub tsheb los ntawm PWM. Cov khoom siv hluav taws xob tas yuav siv lub roj teeb qub tab sis nrog l7805cv 5V tus tswj hwm.
Kauj Ruam 4: Tshaj Tawm Txoj Cai ntawm Arduino, thiab Tsim App ntawm Android
Cov cai (tau nws ntawm no) yuav tsum tau muab xa mus rau Arduino pro mini siv USB rau txuas FTDI adapter FT232RL.
Koj yuav tsum txuas GND, VCC, Rx, Tx thiab DTR tus pin rau Arduino pro mini. Tom qab ntawd qhib Arduino software xaiv cov cuab yeej/chaw nres nkoj thiab qhov chaw nres nkoj twg koj tab tom siv. Tom qab ntawd Cov Cuab Yeej/Pawg Thawj Coj/Arduino Pro lossis Pro Mini. Ces Cov Cuab Yeej/Pawg Thawj Coj/Txheej Txheem/ATmega328 (5V 16Mhz).
Thaum kawg, qhib daim duab thiab nias upload.
Yog li qhov program no ua haujlwm li cas? Ua ntej nws mloog cov kab ntawv txuas (ntu software thib ob) rau kev xa tawm. Cov lus tau raug cais thiab txhais raws li yog lub suab hais los yog lub cav hais kom ua (suav nrog kev nrawm thiab kev taw qhia). Tom qab cov lus raug txhais cov lus txib raug xa mus rau lub cav / tshuab raj. Tsis tas li daim duab tsis tu ncua pov npav tus lej A3 sib piv kom paub lub roj teeb hluav taws xob, thiab nws yuav xa cov ntaub ntawv hla bluetooth.
Dab tsi ntxiv yog txhawm rau clone Android app repository thiab tsim nws siv Android Studio. Bitbucket url yog:
Rau Android Studio ib feem muaj ntau qhov kev qhia tawm zoo li qhov no:
Cov kauj ruam yog:
- rub tawm thiab teeb tsa Android Studio
- tau lub xov tooj hauv hom kev txhim kho
- ntshuam cov peev txheej rau hauv Android Studio
- tsim & Nruab app
Qee qhov kev xaiv rau Android Studio yuav yog InteliJ lossis Eclipse.
Kauj Ruam 5: Khiav daim ntawv thov thiab daws teeb meem lub tsheb
Tom qab txhim kho Android app, thawj qhov uas yuav tsum tau ua yog txuas koj lub cuab yeej bluetooth siv Android. Qhov no yuav koom nrog cov theem no:
- tig koj lub tsheb
- mus rau Android ntawv qhia zaub mov / bluetooth
- scan rau bluetooth li
- xaiv koj lub cuab yeej thiab khub (nkag mus rau tus lej thaum nug)
Ok. Tom qab qhov no qhib Android app, nyem "Sau ua khub" khawm, nyem qhov tsim nyog bluetooth ntaus ntawv los ntawm daim ntawv teev npe thiab lub vijtsam tom ntej yuav tshwm.
Lub vijtsam tom ntej no yuav tswj tau lub tsheb. Siv cov kab rov tav saum toj kawg nkaus koj tuaj yeem tswj lub kaum sab xis ntawm lub log thiab siv cov kab ntsug ntsug hauv qab nrawm thiab nrawm. Tsis tas li kom pib / nres lub tsheb muaj ib qho "On / off" khawm thiab khawm "Custom1" yog lub tshuab raj. Hauv qab lub pob "custom1" yog cov ntawv me me nrog lub roj teeb hluav taws xob.
Kev hloov kho:
- Yog tias lub tsheb rov qab tsis yog pem hauv ntej thiab rov ua dua, rov qab pins A0 thiab A1
- yog tias koj nyiam hloov lub kaum sab xis max / min lossis kaum sab xis, kho qhov chaws no:
void adjustDirection (kev taw qhia) {
int newDirection = steeringMiddlePoint + daim ntawv qhia (kev taw qhia, 0, 100, -35, 25); Serial.println (tshiab txoj kev); steering.write (newDirection); ncua (15); }
Kauj Ruam 6: Ib yam dab tsi rau Txoj Haujlwm Yav Tom Ntej
Kuv vam tias koj tau kawm qee yam tshiab hauv txoj haujlwm no, thiab yog tias koj nyiam lub tswv yim no, koj tuaj yeem tshawb xyuas qhov haujlwm no zoo dua nrog tus neeg tsim khoom tsim, thiab Android app uas tau zoo dua.
Tus neeg hlau tau nruab nrog lub koob yees duab yees duab, thiab ua kom muaj kev tshaj tawm hauv Is Taws Nem mus rau app. Nws tuaj yeem tswj tau los ntawm txhua qhov chaw yog tias nws muaj internet.
Koj yuav pom cov lej arduino thiab cov nab npawb backend ntawm no nrog rau cov lus qhia yooj yim, hauv app hauv no. Thiab ntawm chav kawm video demo:)
Yog tias koj nyiam cov vis dis aus Youtube, koj tuaj yeem tau txais ntau los ntawm kev sau npe rau kuv cov channel ntawm no
Pom zoo:
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
FinduCar: Lub Ntsej Muag Tsheb Ntsuas Qhia Cov Neeg rau Qhov Chaw Lub Tsheb Nres Tsheb: 11 Cov Kauj Ruam (nrog Duab)
FinduCar: Ntse Lub Ntsiab Tseem Ceeb Qhia Tib Neeg rau Qhov Chaw Tsheb Nres Tsheb: Txhawm rau daws cov teeb meem saum toj no, txoj haujlwm no tawm tswv yim txhawm rau txhim kho tus yuam sij tsheb ntse uas tuaj yeem coj tib neeg mus rau qhov chaw lawv nres tsheb. Thiab kuv txoj kev npaj koom nrog GPS rau hauv lub tsheb tseem ceeb. Tsis tas yuav siv lub smartphone app los taug qab
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav
Yuav Ua Li Cas Tsheb Tsheb RC Los Ntawm Cov Duab Duab thiab Ntawv Ntawv: 9 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas RC Tsheb Log Los Ntawm Cardboard thiab Kraft Paper: RC log yog qhov tseem ceeb rau txhua lub tsheb RC. Muaj ntau ntau pawg thiab hom RC log thiab tau txais txoj kev xaiv lub log yog ib qho tseem ceeb tshaj plaws thaum cuam tshuam nrog cov tsheb no. Thaum kuv pib DIYing RC tsheb, ib qho ntawm cov maj