Cov txheej txheem:

Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~: 9 Cov kauj ruam
Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~: 9 Cov kauj ruam

Video: Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~: 9 Cov kauj ruam

Video: Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~: 9 Cov kauj ruam
Video: Heritage Day 2012: Peb Zaj Dab Neeg (5/7) 2024, Kaum ib hlis
Anonim
Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~ ib
Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~ ib

Hauv qhov no, peb tab tom yuav ua Khawv koob Pob uas siv lub suab txav thiab lub tshuab ntsuas RFID los tswj cov teeb tsa ntawm LED teeb sab hauv.

Kauj Ruam 1: Cov Khoom Uas Koj Xav Tau

Rau txoj haujlwm no, koj yuav xav tau cov cuab yeej thiab cov ntaub ntawv hauv qab no:

  • Ib Arduino Uno
  • MPU-6050 Sensor nrog Accelerometer, Gyroscope, thiab Kub sensor.
  • Ib qho RC522 RFID Reader
  • some compatible Tags (i used NTAG215s)
  • 36 dawb LED
  • 36 liab LED
  • 36 xiav LED
  • 8 NPN Transistors, kuv siv IRF520
  • Pob tshab yas, 16cm txoj kab uas hla
  • Cov ntawv me me
  • 9V roj teeb pob (6xAA)
  • Ntau cov kab

Cov Cuab Yeej:

  • 3D Tshuab Luam Ntawv
  • Soldering Hlau

Kauj ruam 2: Plhaub

Thawj qhov peb yuav ua yog npaj lub plhaub sab nrauv ntawm lub pob, Ua li ntawd, tsuas yog xuab zeb sab hauv lub pob yas.

Koj yuav tuaj yeem pom cov cwj nrag koj ua rau nws txhuam, yog li siv koj lub sijhawm thiab hauv cov voj me kom muaj tus qauv sib xws.

Kauj Ruam 3: Kev Txhawb Nqa Pob Txha

Kev txhawb nqa pob txha
Kev txhawb nqa pob txha
Kev txhawb nqa pob txha
Kev txhawb nqa pob txha
Kev txhawb nqa pob txha
Kev txhawb nqa pob txha

Qhov tom ntej peb yuav tsim yog pob txha txhawb nqa.

Lub cev pob txha no yuav tuav tag nrho cov LED nyob hauv qhov chaw thiab muaj cov khoom siv hluav taws xob tas li. Nws muaj lub cheeb sab nraud ntawm 13cm, yog li muaj thaj tsam li 1, 5cm qhov chaw nruab nrab ntawm cov coj thiab lub plhaub, uas peb yuav sau nrog cov khoom sib txawv. Tus nyeem ntawv RFID tseem yuav tsum tau haum sab nrauv ntawm lub cev pob txha kawg. Rau qhov no kuv tau ua tus qauv 3D uas muaj 6 tus tav, nrog txhua tus tav muaj cov kab me me nyob ntawm sab qhov twg LED haum rau. Raws li koj tuaj yeem pom, txhua tus tav muaj 18 ntu, 6 rau txhua xim.

Raws li txhua tus kab tav zoo ib yam, koj tuaj yeem luam tawm ib kab tav 6 zaug. Koj tuaj yeem txuas ntxiv nrog cov kauj ruam tom ntej thaum koj tau sau kab tav tav, kom txuag sijhawm thaum tus so tseem tab tom luam tawm.

Kauj Ruam 4: Txuas LED

Kev teeb tsa LED
Kev teeb tsa LED
Kev teeb tsa LED
Kev teeb tsa LED
Kev teeb tsa LED
Kev teeb tsa LED

Tam sim no, peb yuav xaim tus kheej tav.

Txhua tus tav tuav 6 dawb LED nyob hauv kab nruab nrab, 6 LED liab nyob rau ib ntawm kab sab nraud, thiab 6 xiav LED nyob rau lwm qhov sab nraud.

Khaws koj cov LED rau hauv lawv cov clamps uas tsim nyog, thiab nco ntsoov ua kom sib nrug ntawm cov LED kom txhua tus tav muaj qhov zoo thiab qhov tsis zoo kawg, nrog rau tag nrho cov kab hauv ib yam.

Ua ntej, Cuam tshuam txhua sab saum toj peb thiab saib hauv qab peb LED ntawm txhua kab ua ke yog li lawv tau sib txuas ua ke..

rov ua dua rau tag nrho 6 tav.

Kauj Ruam 5: Txuas Ribs

Txuas Ribs
Txuas Ribs

Thaum koj ua tiav txuas txhua tus tib leeg, nws yog lub sijhawm los txuas cov tav mus rau lub roj teeb

Koj tuaj yeem xaim qhov xaus zoo ntawm txhua kab xiav thiab dawb LED ncaj qha mus rau 9V cable ntawm koj lub roj teeb pob.

Kuv lub LED liab muaj qhov qis dua me ntsis dua li kuv lwm LED, txhais tau tias kuv yuav tsum xub txuas txhua qhov xaus ntawm lawv kab, thiab tom qab ntawv txuas mus rau 9V nrog tus tiv thaiv. Yog tias tag nrho koj cov LED muaj tib qhov hluav taws xob, koj tuaj yeem hla cov kauj ruam no.

Kauj Ruam 6: Txuas LED mus rau Arduino

Tam sim no, transistors tuaj ua si.

Coj koj lub khob cij me me thiab xaim tag nrho cov pins hauv av rau koj Arduino av, tom qab ntawd, txuas cov Digital pins ntawm koj tus arduino mus rau tus pin nruab nrab ntawm Transistors. Kuv siv tus pin 1 txog 6 rau cov LED dawb, thiab tus pin 7 thiab 8 rau xim liab thiab xiav. Tam sim no koj tuaj yeem txuas txhua qhov tsis zoo ntawm koj cov kab dawb LED rau lawv cov transistor tshwj xeeb, nco ntsoov tsis txhob cuam tshuam qhov kev txiav txim. Tom qab ntawd txuas cov xim xiav thiab liab tsis zoo coj mus rau lawv cov transistor.

Kauj Ruam 7: Txuas Cov Sensors

Tam sim no peb yuav txuas cov sensors.

Tsab ntawv tsa suab sensor txuas tau yooj yim, yooj yim txuas nws VCC rau 5V tus pin, Gound to Ground, thiab SCL thiab SCA rau SCL thiab SCA pins ntawm koj lub rooj tsavxwm

Tus nyeem ntawv RFID xav tau xov hlau ntxiv: (sab laug yog RFID, sab xis yog Arduino)

  • SDA -> 10
  • TXK -> 13
  • TSO-> 11
  • MAS-> 12
  • IRQ tsis siv
  • GND -> GND
  • RST -> 9
  • 3.3V -> 3.3V

Xyuas kom tseeb tias RFID nyeem ntawv cov xov hlau ntev txaus yog li nws tuaj yeem nyob sab nraum lub cev pob txha

Kauj Ruam 8: Sijhawm Coding

Tam sim no uas peb tau txuas txhua yam, nws yog lub sijhawm rau cov cai!

Txhawm rau siv RFID nyeem ntawv, koj yuav xav tau Lub Tsev Qiv Ntawv no: https://github.com/miguelbalboa/rfid, thiab lub tsev qiv ntawv SPI built-in.

Txhawm rau siv lub suab txav, koj yuav tsum tau siv lub tsev qiv ntawv Hlau, vim nws yog IC2 lub cuab yeej.

Thaum kuv yuav tsis muab kuv tus lej tag nrho tso rau ntawm no, Kuv yuav tham txog qee qhov ntawm nws:

Txhawm rau muab cov tsiaj ntawv tshwj xeeb rau ib qho tshwj xeeb nfc lossis, Kuv muaj IDs ntawm txhua daim ntawv khaws tseg rau hauv qhov sib txawv, yog li thaum RFID tus nyeem ntawv nyeem ib daim ntawv, nws sib piv nws tus ID rau cov uas tau txais kev cawmdim, thiab los ntawm cov lus hais yog qhov kev tso cai ua haujlwm muaj nuj nqi.

Tsab ntawv tsa suab txav yooj yim nyeem tus nqi ntawm ib qho kev xaiv axis, yog tias tus nqi nyeem tau zoo lub teeb liab tau qhib, thiab yog tias nws tsis zoo lub teeb xiav tau qhib.

Kauj Ruam 9: Kaw Lub Hau thiab Kawg Flourishes

Peb yuav luag tiav!

Txhawm rau ua tiav txoj haujlwm, yooj yim quav lub hnab yas rau hauv ib nrab ib puag ncig raws li cov khoom siv nthuav tawm, maj mam muab lub pob sab hauv tso rau hauv ib nrab, thiab kaw lwm ib nrab hla nws. Tom qab ntawd koj ua tiav!

Tam sim no koj muaj kev xaiv los ntim koj daim ntawv cim npe NFC txawm li cas los xij koj xav tau, koj tuaj yeem lo lawv rau hauv nplooj ntawv ntawm phau ntawv qub thiab cia cov nplooj ntawv ua raws li cov lus uas pob tau nyeem, lossis zoo li kuv tau ua, luam tawm ob peb daim ntawv parchment cuav, sau lossis kos rau lawv, thiab lo NFC daim nplaum rau sab nraub qaum. Tadaa, koj muaj koj cov ntawv sau tag nrho!

Thiab nrog qhov ntawd, peb tau ua tiav peb txoj haujlwm!

Pom zoo: