Cov txheej txheem:

Arduino Parking Assistant: 17 Cov Kauj Ruam (nrog Duab)
Arduino Parking Assistant: 17 Cov Kauj Ruam (nrog Duab)

Video: Arduino Parking Assistant: 17 Cov Kauj Ruam (nrog Duab)

Video: Arduino Parking Assistant: 17 Cov Kauj Ruam (nrog Duab)
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Kaum ib hlis
Anonim
Arduino Chaw Nres Tsheb Pabcuam
Arduino Chaw Nres Tsheb Pabcuam
Arduino Chaw Nres Tsheb Pabcuam
Arduino Chaw Nres Tsheb Pabcuam

Los ntawm addictedToArduinoFollow Ntau los ntawm tus sau:

Yooj Yim 2x4 Cov Khoom Siv Hluav Taws Xob
Yooj Yim 2x4 Cov Khoom Siv Hluav Taws Xob
Yooj yim 2x4 Cov Khoom Siv Hluav Taws Xob
Yooj yim 2x4 Cov Khoom Siv Hluav Taws Xob

Txog: Kuv yog ib tus ntawm cov neeg uas siv yuav luag txhua lub sijhawm txuas cov xov hlau, ntaus tus lej, thiab ua lwm yam khoom uas tib neeg hu 'tsis txaus ntseeg.' Kuv nyiam ua haujlwm nrog LEDs, Arduinos, thiab ua txhua yam … Ntau Ntxiv txog kev quav yeeb quav tshuajToArduino »

Cov ntawm peb uas muaj lub tsheb me me paub qhov kev ntxhov siab ntawm chaw nres tsheb me ntsis nyob deb dhau los lossis nyob deb me ntsis thiab tsis tuaj yeem taug kev ncig lub tsheb. Tsis ntev los no peb tau yuav lub tsheb loj dua, thiab nws yuav tsum tau nres tsheb kom zoo nyob hauv lub nkas -las kom taug kev ib ncig ntawm pem hauv ntej thiab nraub qaum.

Txhawm rau ua rau kuv ntxhov siab Kuv txiav txim siab tsim lub cuab yeej uas yuav tso cai rau kuv nres tsheb hauv qhov chaw meej txhua lub sijhawm. Kuv nyiam ua haujlwm nrog arduinos, coj, ntsuas, thiab yuav luag txhua yam khoom siv hluav taws xob, yog li kuv paub txij thaum pib tias nws yuav zaum kawg raws li kev txwv tsis pub siv nrog Arduino sab hauv thiab ib pawg ntawm LEDs nyob rau pem hauv ntej!

Kuv tau sim kuv qhov zoo tshaj plaws los sau txhua kauj ruam ntawm txoj haujlwm no kom zoo, tab sis thov nco ntsoov tias nws muaj qee qhov nyuaj, sib dhos nruj; tej zaum yuav tsis yog koj thawj qhov haujlwm.

Kauj ruam 1: Koj Yuav Xav Tau…

Koj Yuav Tsum…
Koj Yuav Tsum…
Koj Yuav Tsum…
Koj Yuav Tsum…
Koj Yuav Tsum…
Koj Yuav Tsum…

Tag nrho cov ntaub ntawv no yog pheej yig thiab yooj yim muaj. Kuv tsis koom nrog ib qho ntawm cov neeg xa khoom no, lawv nyob qhov twg kuv tau yuav cov khoom siv.

Cov ntaub ntawv:

  • 1x 2x4 - yam tsawg 8 "ntev
  • 8x Philips Screws - Zoo dua 1 "Ntev
  • 1x Cov Khoom Siv Hluav Taws Xob - 5 volt, 850mA
  • 1x Arduino Pro Mini - 5 volt, 16MHz
  • 1x HC-SR04 Ultrasonic Distance Sensor
  • 12x Dhau -Hole Resistors - 220 ohm, 1/4 watt
  • 8x Green LEDs - 5 hli
  • 4x Liab LEDs - 5mm
  • 1x Tactile Pushbutton - 6 hli
  • 3x Plaub Tus Coj Hluav Taws Xob Muag los ntawm Taw - 22 ntsuas
  • 1x Stranded Wire - 28 ntsuas

Cov Cuab Yeej:

  • Hlau Stripper
  • Bandsaw
  • Soldering Hlau
  • Solder - Kuv siv 60/40 Rosin Core
  • Kub Nplaum Phom
  • Speed Square
  • Nplaum nplaum
  • Philips Ntsia Hlau
  • Mem hluav
  • Laum
  • 7/64 "Drill Bit - qhov no nyob ntawm qhov loj ntawm koj cov ntsia hlau
  • 3/16 "Laum Ntsis
  • 1/4 "Drill ntsis
  • 1 "Forstner ntsis
  • Khoos phis tawj nrog Arduino IDE rub tawm ntawm no.
  • FTDI Programmer Ntawm no

Kauj ruam 2: Luam thiab Txiav

Luam thiab Txiav!
Luam thiab Txiav!
Luam thiab Txiav!
Luam thiab Txiav!

Thawj kauj ruam hauv txoj haujlwm no yog ua kom lub thaiv. Peb tab tom siv cov txheej txheem uas kuv tau sau txog hauv kev qhia ua ntej, Ib qho yooj yim 2x4 Cov Ntaub Ntawv.

Luam tawm Tus Qauv PDF suav nrog hauv qab no. Nco ntsoov tias koj tau teeb tsa luam tawm ntawm 100% nplai.

Tam sim no txiav tawm tus qauv thiab lo nws rau 2x4. Ceev faj kab nws nrog cov ntug. Nws tsuas yog ib ntus xwb, yog li tsuas yog lo nplaum nws me ntsis.

Kauj Ruam 3: Txiav rau Ntev

Txiav rau Ntev!
Txiav rau Ntev!
Txiav rau Ntev!
Txiav rau Ntev!

Siv koj daim ntawv txiav los txiav 2x4 raws ntug ntawm tus qauv. Koj kuj tseem tuaj yeem siv lub saw saw lossis lub rooj pom.

Kauj ruam 4: Txiav lub hau

Txiav lub hau!
Txiav lub hau!
Txiav lub hau!
Txiav lub hau!
Txiav lub hau!
Txiav lub hau!

Tam sim no peb yuav tsum tig qhov no los ntawm 2x4 rau hauv ib lub thawv! Siv koj lub xwmfab nrawm los cim kab ib kab ntev ntawm sab 2x4 txog li peb lub hlis twg ntawm ib nti los tom qab ntawm lub npov.

Rov qab mus rau bandsaw thiab txiav ncaj qha rau ntawm kab. Qhov no yuav txiav ib daim uas yuav dhau los ua peb lub hau. Koj yuav txiav ze koj cov ntiv tes; Thov ceev faj!

Kauj ruam 5: Rho Tawm Tawm

Rho Tawm Nws!
Rho Tawm Nws!
Rho Tawm Nws!
Rho Tawm Nws!
Rho Tawm Nws!
Rho Tawm Nws!

Siv koj tus cwj mem, kos ib qho square ntxhib rau sab nraum qab ntawm qhov thaiv loj dua li ib nrab ntiv tes los ntawm tag nrho cov npoo.

Tam sim no siv koj li 1-nti los tho qhov tawm ntawm lub duab plaub. Koj yuav tsum tau laum kom tob li sai tau yam tsis tau hla hauv ntej. Tsis txhob xyaum tob!

Kauj ruam 6: Laum! Laum! Laum

Laum! Laum! Laum!
Laum! Laum! Laum!
Laum! Laum! Laum!
Laum! Laum! Laum!
Laum! Laum! Laum!
Laum! Laum! Laum!
Laum! Laum! Laum!
Laum! Laum! Laum!

Chock koj li 3/16 nti laum ntsis thiab ua tib zoo laum txhua lub qhov cim rau ntawm lub hauv ntej ntawm tus qauv. Kuv pom nws ua haujlwm zoo tshaj plaws yog tias koj ua qhov hais me me nrog awl ua ntej koj xyaum.

Tom ntej laum 3/16 nti qhov ntxhib nyob hauv nruab nrab ntawm hauv qab. Qhov no yuav yog lub qhov rau koj lub calibration khawm.

Tam sim no siv koj li 1/4 nti laum ntsis txhawm rau txhawm rau ob qhov ntxiv hauv qab. Cov no yuav yog qhov rau cov xov hlau.

Kauj Ruam 7: Ua tiav Lub Thawv Tswj

Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!
Ua kom tiav lub thawv tswj!

Tam sim no koj siv tus qauv. Tev nws tawm kom huv si li sai tau.

Nqa lub hau thiab tso nws rau hauv qab. Tig nws ib ncig yog tias koj xav tau, koj xav tau nws hauv qhov kev taw qhia qub.

Tom ntej no siv 7/64 laum me ntsis txhawm rau txhawm rau lub qhov kwv yees li ib feem peb ntawm ib nti los ntawm txhua lub ces kaum. Laum txog ib feem peb ntawm ib nti tob; tsis txhob tho qhov pem hauv ntej!

Siv tus ntsia hlau thiab cov ntsia hlau los ntsaws lub hau.

Koj tsis tas yuav, tab sis nws ua rau lub thawv zoo tag nrho yog tias koj muab nws zoo, los ntawm kev txhuam.

Kauj Ruam 8: Ntxig rau LEDs

Ntxig cov LEDs!
Ntxig cov LEDs!
Ntxig cov LEDs!
Ntxig cov LEDs!
Ntxig cov LEDs!
Ntxig cov LEDs!

Nws yog lub sijhawm los kho hluav taws xob lub thawv no! (Leej twg hais tias tsis yog lo lus?) Cov LEDs yuav tsum tau teeb ua ob kab; lub nplhaib ntsuab loj nyob sab nraud nrog lub nplhaib liab me me sab hauv.

Nqa ib lub LED thiab lo rau hauv lub qhov. Teem nws kom cov cathode (cov hlau lead luv) nyob rau sab nraud. Tom qab ntawd muab cov kua nplaum kub me ntsis nyob ib puag ncig nws!

Rov ua cov txheej txheem no kom txog thaum txhua lub LEDs nyob hauv lawv lub qhov. Ceev faj muab cov xim raug rau hauv qhov yog!

Kauj Ruam 9: Xuab zeb LEDs

Sand cov LEDs!
Sand cov LEDs!
Sand cov LEDs!
Sand cov LEDs!
Sand cov LEDs!
Sand cov LEDs!

Txhawm rau saib zoo dua, xuab zeb cov LEDs yaug nrog ntoo. Nws ua haujlwm zoo tshaj plaws rau xuab zeb ua ntej cov xov hlau nyob hauv. (Tsis zoo li kuv tau ua!)

Txij ntawm no kuv pom tias kuv lub qhov loj dhau lawm! (Kuv siv qhov loj dua 3/16 )

Ntoo muab tub lim los cawm!

Kauj Ruam 10: Muab cov av pov tseg

Solder Cov Teb!
Solder Cov Teb!
Solder Cov Teb!
Solder Cov Teb!

Khoov cov hlau lead luv dua ntawm LED thiab kov nws mus rau ceg luv ntawm LED tom ntej. Muab ob qho no tso ua ke thiab txuas ntxiv ib ncig ntawm lub voj voog. Ib rab koob ntawm lub qhov ntswg yog qhov kev pab loj!

Kauj ruam 11: Solder cov Resistors

Solder cov Resistors!
Solder cov Resistors!
Solder cov Resistors!
Solder cov Resistors!
Solder cov Resistors!
Solder cov Resistors!
Solder cov Resistors!
Solder cov Resistors!

Txiav luv luv ntawm cov xov hlau, ntev li ob ntiv tes, thiab hle nws! Twist nws nyob ib ncig ntawm ib sab ntawm tus tiv thaiv, nws tsis muaj teeb meem qhov kawg. Siv koj cov hlau txuas los ua qhov txuas mus tas li! Ua qhov no rau tag nrho koj cov resistors.

Tom ntej no, lob ib tus tiv thaiv-xaim khub thiab ua tib zoo xaum qhov kawg ntawm nws rau LED. Nco ntsoov tsis txhob cia cov coj mus kov lwm cov xov hlau! Ua qhov no rau txhua tus LED, thiab rov ua ob zaug rau luv.

Thaum kawg, muab cov xaim hluav taws xob luv luv txuas rau sab ceg uas tau tso tseg thaum koj muab cov av pov tseg.

Kauj Ruam 12: Rhuav Lub Khawm

Solder Khawm!
Solder Khawm!
Solder Khawm!
Solder Khawm!
Solder Khawm!
Solder Khawm!

Txiav thiab hle lwm qhov luv luv ntawm cov xov hlau, thiab txuas nws mus rau ib qho ntawm cov khawm ua. Tom qab ntawd kaw tag nrho cov pob khawm ob txhais ceg tshwj tsis yog ib qho uas nyob ib sab ntawm koj cov laug txuas.

Muab lub pob rau hauv lub thawv kom koj tuaj yeem thawb nws los ntawm sab nraud los ntawm lub qhov. Muab cov hmoov lead dawb tso rau ntawm lub pob rau hauv av sib txuas ntawm LEDs.

Thaum kawg, los nag me ntsis ntawm cov kua nplaum kub hla lub pob kom nws nyob hauv qhov chaw!

Kauj Ruam 13: Solder rau Arduino

Solder rau Arduino!
Solder rau Arduino!
Solder rau Arduino!
Solder rau Arduino!
Solder rau Arduino!
Solder rau Arduino!
Solder rau Arduino!
Solder rau Arduino!

Solder tus pin-headers rau qhov chaw nres nkoj ntawm Arduino. Tom qab ntawd thawb ob lub xov hlau (los ntawm cov khoom siv hluav taws xob thiab ib qho rau lub ntsuas hluav taws xob) los ntawm lawv lub qhov thiab siv cov kua nplaum kub me ntsis kom lawv tsis txhob poob tawm.

Sawb cov xov hlau los ntawm LEDs thiab khawm thiab muab lawv txuas rau Arduino raws li daim duab kab hluav taws xob saum toj no. Hauv qab no yog cov ntawv luam tawm ntawm kab kos rau koj kom yooj yim.

Kauj Ruam 14: Tsim lub Sensor Kaw

Tsim lub Sensor Enclosure!
Tsim lub Sensor Enclosure!

Tam sim no peb yuav tsum ua lub thawv rau qhov ntsuas qhov deb. Yav dhau los kuv tau sau txog qhov no hauv lwm Cov Lus Qhia, yog li kuv yuav tsis hla qhov ntawd ntawm no.

Ua raws cov lus qhia hauv Easy 2x4 Electronic Enclosures los ua lub thawv, tom qab ntawd siv koj li 1/4 ntiv tes me ntsis txhawm rau txhawm rau lub qhov me me hauv qab ntawm lub thawv.

Kauj Ruam 15: Ua tiav Kev Sib Txuas Sensor

Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!
Ua tiav Kev Sib Txuas Sensor!

Thawb qhov kawg pub dawb ntawm lub xaim hluav taws xob los ntawm lub qhov nyob hauv lub thawv, tom qab ntawd hle nws thiab muab nws txuas rau lub ntsuas qhov ntsuas ib yam li hauv daim duab.

  • Dub mus rau GND
  • Xiav mus rau ECHO
  • Ntsuab mus rau TRIG
  • Liab mus rau VCC

Siv me ntsis ntawm cov kua nplaum kub kom ruaj ntseg lub cuab yeej hauv rooj plaub, tom qab ntawd siv lwm dab los daws kev ntxhov siab rau lub xov tooj. Ntsia lub hau rau, thiab koj ua tiav!

Kauj ruam 16: Program Arduino

Program Arduino!
Program Arduino!
Program Arduino!
Program Arduino!
Program Arduino!
Program Arduino!
Program Arduino!
Program Arduino!

Daim ntawv ceeb toom - Lub Peb Hlis 25, 2017: Raws li tau hais tawm los ntawm tus neeg hais lus "MuchTall" Kuv tau hloov kho cov cai kom suav nrog LED suav thaum lub sijhawm ntsuas. Thov rub daim ntawv tshiab ntawm cov cai hauv qab no.

Txhawm rau nyeem lub ntsuas, peb xav tau NewPing lub tsev qiv ntawv. Koj tuaj yeem rub tawm nws ntawm no, Kuv kuj suav nrog nws hauv qab no rau koj qhov yooj yim. Hauv Arduino IDE, nyem rau Sketch> suav nrog Tsev Qiv Ntawv> Ntxiv Zip Library … thiab taw tes nws 'NewPing.zip' nplaub tshev.

Tom ntej no, rho tawm lwm cov ntawv zip thiab qhib 'ParkingSystemV1.1.ino' hauv Arduino IDE. Upload cov duab kos rau arduino. Saib kab lus no lossis kab lus no yog tias koj xav tau kev pab.

Ntsia rau ntawm lub hau, thiab koj ua tiav!

Kauj ruam 17: Mounting thiab Siv

Khiav Tawm Hauv Kev Sib Tw Microcontroller 2017

Kev Sib Tw Sensors 2017
Kev Sib Tw Sensors 2017
Kev Sib Tw Sensors 2017
Kev Sib Tw Sensors 2017

Qhov khoom plig thib ob hauv kev sib tw Sensors 2017

Pom zoo: