Cov txheej txheem:

Mouse Bluetooth Nrog Ultrasonic Sensor thiab Photocell: 10 Kauj Ruam (nrog Duab)
Mouse Bluetooth Nrog Ultrasonic Sensor thiab Photocell: 10 Kauj Ruam (nrog Duab)

Video: Mouse Bluetooth Nrog Ultrasonic Sensor thiab Photocell: 10 Kauj Ruam (nrog Duab)

Video: Mouse Bluetooth Nrog Ultrasonic Sensor thiab Photocell: 10 Kauj Ruam (nrog Duab)
Video: Night 2024, Hlis ntuj nqeg
Anonim
Mouse Bluetooth Nrog Ultrasonic Sensor thiab Photocell
Mouse Bluetooth Nrog Ultrasonic Sensor thiab Photocell

Yog li, qhia me ntsis txog vim li cas kuv thiaj ua qhov haujlwm no. Tam sim no kuv tab tom nrhiav yuav tus menyuam miv hauv kuv lub tsev tshiab. Thiab tom qab mus hla qee yam khoom ua si rau miv, kuv xav: vim li cas ho tsis ua khoom ua si rau kuv tus kheej. Yog li, kuv tau ua Bluetooth nas. Koj tuaj yeem tswj hwm nws siv lub app Kuv tau ua rau Android xov tooj. Tsis tas li, kuv tau ua ob hom. Kev tawm tswv yim tawm qhov twg nas tsuas yog teb yog tias qee yam khoom nyob ze tom qab nws nraub qaum. Thiab qhov kev tawm tswv yim ib txwm nyob qhov twg cov neeg siv app tuaj yeem 'tsav' nas.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Rau nas koj yuav xav tau:

  • 1 x Arduino Uno
  • 1 x Breadboard
  • 1x Cov laug cam
  • 2x Gearmotor nrog 360 txiav txim siab offset
  • 1x 10 k Ohm resistor
  • 1x Arduino tsav tsheb L298N Dual H Choj
  • 1 x HC-05 Bluetooth adapter
  • 1x Photocell Lub teeb resistor
  • 1 x Ultrasonic sensor
  • 1x Daim ntoo
  • 2x Cov log uas muaj peev xwm haum rau lub tshuab hluav taws xob
  • 20 x Tie-wraps
  • 20x Poj Niam - Poj Niam Jumper Wires
  • 20x Txiv neej - Txiv neej Jumper Hlau
  • 1x Xov tooj nrog Android ntawm nws
  • 1x LED sawb
  • 1x 12v Roj teeb
  • 3x Nyees khawm (txhua xim uas koj nyiam)
  • 10 x Daim hlua

Tsis tas li, koj yuav xav tau cov cuab yeej rau kev teeb tsa ntawm Circuit thiab koj yuav xav tau cov cuab yeej los ua. apk rau koj lub xov tooj.

Kuv siv circuito.io rau kev teeb tsa ntawm Circuit thiab Appinventor2 los ua ib qho qauv yooj yim app rau hauv xov tooj.

Kauj ruam 2: Tus Ncej

Ncej
Ncej

Yog li, peb tab tom ua nas. Nws yuav tsum muaj peev xwm txav mus los thiab tau txais lub hom phiaj ntawd, peb ua tus ncej rau txhua yam khoom siv hluav taws xob. Kuv siv ntoo thiab ua nws 10*14 cm. Peb muab lub log tig thiab qhov ntawd yog txhua yam rau tam sim no.

Kauj Ruam 3: Txoj Cai

Rub cov lej hauv qab no.

Koj yuav tsum tau:

-ArduinoMouseController.ino

-ArduinoMouseTesting.ino

Kauj Ruam 4: Kuaj Cov Tswv Yim

Kuaj Cov Tswv Yim
Kuaj Cov Tswv Yim
Kuaj Cov Tswv Yim
Kuaj Cov Tswv Yim

Kom paub tseeb tias Arduino; HC-05; L298n-H Brigde lub cev muaj zog tsav tsheb thiab cov iav motors txhua qhov ua haujlwm thiab tau txais kev nkag los ntawm daim ntawv thov ntawm koj lub cuab yeej peb sim nws. Yog li, peb yuav tsum xaim txhua qhov khoom raws li koj tuaj yeem pom hauv kab lus saum toj no.

NCO TSEG: nws kuj ua haujlwm nrog 9v lossis 6v roj teeb, lub cav yuav tsuas tig qeeb tab sis qhov ntawd tsis ua li cas.

Tshaj tawm ArduinoMouseTesting.ino rau koj Arduino Uno.

Tam sim no, rub tawm ArduinoMouseApplication.apk ntawm koj lub xov tooj ntawm tes thiab sim txuas koj lub xov tooj nrog HC-05. Thaum nug tus pin siv 1234 lossis 0000.

Yog li, thaum Bluetooth txuas tau ua tiav koj tuaj yeem sim tig lub cav los ntawm kev thawb rau pem hauv ntej lossis rov qab khawm ntawm daim ntawv thov.

Yog tias koj tsis tau txais qhov yuam kev txhua yam ua haujlwm thiab peb tuaj yeem txav mus!:)

Kauj Ruam 5: Txhim Kho ntawm Tus Kheej

Lub Tsev Ntawm Tus Ncej!
Lub Tsev Ntawm Tus Ncej!
Lub Tsev Ntawm Tus Ncej!
Lub Tsev Ntawm Tus Ncej!
Lub Tsev Ntawm Tus Ncej!
Lub Tsev Ntawm Tus Ncej!

Yog li, tam sim no nws yog lub sijhawm los ntxiv cov log mus rau lub iav-motors. Tab sis ua ntej peb ua qhov ntawd peb yuav tsum muab txhua yam tso rau ntawm tus ncej. Kuv pom zoo kom ua qee qhov siv lub laum sab hauv lub thav duab, tab sis qhov no yog nyob ntawm yeem thiab tsis tsim nyog. Ntxiv cov iav-motors ntawm tib sab ntawm lub log tig. Cov iav-lub cav yuav tsum ncav tes sab laug thiab sab xis los ntawm tus ncej. Tam sim no siv qee txoj hlua khi los yog kua nplaum tso rau lub iav-lub cav kom lawv tsis tuaj yeem tawm mus. Tsis tas li, muab lub roj teeb tso rau ntawm sab ntawm tus ncej kom peb thiaj li muaj chaw txaus nyob rau lwm sab ntawm tus ncej.

Tam sim no, tig tus ncej thiab ntxiv Arduino Uno ntawm sab xub ntiag. Ntxiv L298n-h tus tsav tsheb nyob tom qab yog li nws ze ntawm lub iav-motors. Siv txoj hlua khi los yog kua nplaum tso rau txhua yam ntawm tus ncej kom nws nyob qhov twg.

Koj tuaj yeem ntxiv lub log mus rau lub iav-lub cav thiab lub thav duab yuav tsum npaj mus.

Kauj Ruam 6: Yog lawm, Kuaj Nws

Yog lawm, Kuaj nws!
Yog lawm, Kuaj nws!

Yog tias txhua yam nyob rau hauv kev txiav txim tus nas yuav tsum tuaj yeem txav mus los nrog cov tswv yim koj muab los ntawm koj lub xov tooj ntawm tes. Peb muaj tus nas txav mus!: D

Kauj Ruam 7: Cov Ntaub Ntawv Ntau Lawm

Case Ntau Lawm!
Case Ntau Lawm!
Case Ntau Lawm!
Case Ntau Lawm!
Case Ntau Lawm!
Case Ntau Lawm!

Peb muaj qhov txav mus 'tab sis nws tsis tshua saib nas, txhua. Yog li, peb yuav ua qee yam uas zais txhua lub tshuab hluav taws xob zoo thiab tseem zoo li me ntsis nas, nas loj ^^.

Ua ntej tshaj, peb siv Styrofoam los ua lub hauv paus uas yog lub teeb heev thiab muaj zog.

Qhov thib ob, peb siv qee cov ntaub los ua lub hauv paus fluffy thiab ua kom nws zoo li nas.

Qhov thib peb, peb ntxiv qee cov nyees khawm raws li qhov muag thiab qhov ntswg.

Plaub, peb ntxiv qee txoj hlua rau lub qhov ntswg kom nws zoo dua qub.

Kauj Ruam 8: Txhim Kho 1: Photocell

Txhim Kho 1: Photocell
Txhim Kho 1: Photocell
Txhim Kho 1: Photocell
Txhim Kho 1: Photocell
Txhim Kho 1: Photocell
Txhim Kho 1: Photocell
Txhim Kho 1: Photocell
Txhim Kho 1: Photocell

Yog li, peb muaj tus nas txav mus, tab sis nws tsis zoo li nws tsuas tuaj yeem txav mus. Kuv xav ntxiv kev sib tham ntau ntxiv yog li kuv tau siv Photocell. Txog rau ntu no peb yuav tsum tau siv tshuaj txhuam me ntsis ntawm lub rooj sib tham laug, peb tsuas xav tau daim me me.

Peb nqa Photocell; 10k ohm resistor; thiab 3 jumper xov hlau. 3 jumper xov hlau yuav tsum los ntawm: 5v; gnd; thiab A0.

Tsis tas li, peb xav tau cov hlua LED lossis LED ib txwm (xijpeem koj nyiam). Txuas tus - rau gnd thiab + rau tus pin 6.

Qee cov lus qhia:

  • Sim siv cov tin me me li sai tau. Koj tsis xav kom ua tau luv Circuit Court.
  • Ua ntej ntxiv cov tin thawj zaug kom ntseeg tau tias cov laug yog nyob ntawm qhov nyiam.
  • Nthuav lub gnd (av) thiab 5v chaw nres nkoj los ntawm Arduino siv qee qhov cua sov ntsws tubing. Ntxiv ob peb tus txiv neej - txiv neej nyob ntawm ib sab thiab tsuas yog ib tus poj niam - poj niam xaim ntawm lwm sab, siv cov cua sov ua kom tubing tso cov xov hlau ua ke.

Kauj Ruam 9: Txhim Kho 2: Ultrasonic Sensor

Txhim Kho 2: Ultrasonic Sensor
Txhim Kho 2: Ultrasonic Sensor

Yog li, raws li kuv tau hais kuv xav tau ob hom. Yuav kom tau txais lub hom phiaj no peb ntxiv cov ntsuas ultrasonic.

Ntxiv vcc rau 5v; gnd rau gnd; tig mus rau 8 tus pin; echo 9 pin. Tam sim no, tsuas yog tso lub ultrasoon nrog txoj hlua khi tom qab L298n-h yog li nws nyob tom qab nas.

Yog lawm, tam sim no koj tuaj yeem tso ArduinoMouseController.ino code rau koj Arduino.

Kauj Ruam 10: Yam Xeem

Yam Kawg
Yam Kawg
Yam Kawg
Yam Kawg

Yog li, txhua yam tau npaj txhij!

Peb tsuas yog muab rooj plaub hla cov xov hlau thiab nws zoo mus!

Ntxiv cov hlua LED nyob txhua qhov chaw uas koj nyiam, tsuas yog xyuas kom Photocell tsis nyob hauv qab rooj plaub. Yog tias koj xav tau koj tuaj yeem txuas rooj plaub nrog qee cov kua nplaum tab sis kuv nyiam nws thaum kuv tuaj yeem tshem cov rooj plaub kom pom dab tsi sab hauv: D.

Pom zoo: