Cov txheej txheem:

Lub cim xeeb Game Box: 6 Cov Kauj Ruam
Lub cim xeeb Game Box: 6 Cov Kauj Ruam

Video: Lub cim xeeb Game Box: 6 Cov Kauj Ruam

Video: Lub cim xeeb Game Box: 6 Cov Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Lub thawv Game Memory
Lub thawv Game Memory

Txoj haujlwm no yog qhov hloov kho ntawm

Cov kev hloov uas kuv tau ua:

  • "Arduino Simple Memory Game" rau "Memory Game Box"
  • Tshwm sim
  • Ncua sij hawm (Tsab ntawv)

Nov yog kev ua si nco me ntsis kom dhau sijhawm nrog yog tias koj dhuav! Koj tseem tuaj yeem siv qhov kev ua si no los ntsuas seb koj lub cim xeeb zoo li cas.:)

Kauj ruam 1: Sau koj cov ntaub ntawv

Txhua yam ntaub ntawv xav tau yog…

  • Arduino UNO (1)
  • 220 Ω Resistor (8)
  • LEDs (4) Nco tseg: Kuv xav kom siv cov xim sib txawv rau txhua tus ntawm LEDs.
  • Nyees khawm (4)
  • Lub suab nrov (1)
  • Cov qhob cij (1)
  • Jumper cables (16)
  • USB Cable (1)

Kauj Ruam 2: Sib sau Ua Ke

Sib dhos Qhov Chaw!
Sib dhos Qhov Chaw!

Tam sim no nws yog lub sijhawm los sau txhua yam!

  1. Siv lub jumper cable txuas 5V teeb liab ntawm Arduino mus rau txoj kab zoo (liab) rau saum.
  2. Siv cov hlua txuas txuas txuas GND teeb liab ntawm Arduino mus rau txoj kab tsis zoo (xiav/dub) rau saum.
  3. Muab 4 khawm rau ntawm lub khob cij, nrog txhua tus ntawm lawv nyob hauv kab kab nruab nrab hauv nruab nrab ntawm lub khob cij, thiab 7 qhov sib nrug.
  4. Txuas 220 Ω Resistor los ntawm ib tus pin ntawm lub pob (saum toj) mus rau txoj kab tsis zoo (xiav/dub) rau saum. Rov ua dua rau lwm cov nyees khawm.
  5. Siv lub jumper cable txuas rau lwm tus pin ntawm lub pob (saum toj) mus rau txoj kab zoo (liab) rau saum. Rov ua dua rau lwm cov nyees khawm.

Rau thawj lub pob (Sab laug heev)

  1. Siv lub jumper cable txuas ib qho ntawm tus pin ntawm lub khawm (hauv qab) rau Arduino ping 5.
  2. Ntxig ib lub LED nyob ib sab ntawm lub pob. [Nco tseg: xyuas kom nws tsis nyob hauv txoj kab ntsug ib yam li khawm]
  3. Siv lub jumper cable txuas txuas tus pin ntev dua ntawm LED rau Arduino tus pin 10.
  4. Siv 220 Ω Resistor los txuas tus pin luv ntawm LED mus rau txoj kab tsis zoo (xiav/dub) rau saum.

Rau khawm thib ob (Nruab nrab sab laug)

  1. Siv lub jumper cable txuas ib qho ntawm tus pin ntawm lub pob (hauv qab) rau Arduino ping 4.
  2. Ntxig ib lub LED nyob ib sab ntawm lub pob. [Nco tseg: xyuas kom nws tsis nyob hauv txoj kab ntsug ib yam li khawm]
  3. Siv lub jumper cable txuas txuas tus pin ntev dua ntawm LED rau Arduino tus pin 9.
  4. Siv 220 Ω Resistor los txuas tus pin luv ntawm LED mus rau txoj kab tsis zoo (xiav/dub) rau saum.

Rau khawm thib peb (Nruab nrab sab xis)

  1. Siv lub jumper cable txuas ib qho ntawm tus pin ntawm lub pob (hauv qab) rau Arduino ping 3.
  2. Ntxig ib lub LED nyob ib sab ntawm lub pob. [Nco tseg: xyuas kom nws tsis nyob hauv txoj kab ntsug ib yam li khawm]
  3. Siv lub jumper cable txuas txuas tus pin ntev dua ntawm LED rau Arduino tus pin 8.
  4. Siv 220 Ω Resistor los txuas tus pin luv ntawm LED mus rau txoj kab tsis zoo (xiav/dub) rau saum.

Rau khawm kawg (Zoo heev)

  1. Siv lub jumper cable txuas ib qho ntawm tus pin ntawm lub pob (hauv qab) rau Arduino ping 2.
  2. Ntxig ib lub LED nyob ib sab ntawm lub pob. [Nco tseg: xyuas kom nws tsis nyob hauv txoj kab ntsug ib yam li khawm]
  3. Siv lub jumper cable txuas txuas tus pin ntev dua ntawm LED rau Arduino tus pin 7.
  4. Siv 220 Ω Resistor txhawm rau txuas tus pin luv ntawm LED mus rau txoj kab tsis zoo (xiav/dub) rau saum.

Qhov ntawd yog txhua yam rau cov nyees khawm thiab teeb LED. Tam sim no rau lub suab nrov …

  1. Txuas cov kab liab thiab dub ntawm lub suab nrov nyob ib sab ntawm koj cov nyees khawm thiab LEDs.
  2. Siv lub jumper cable los txuas kab liab rau Arduino tus pin 12.
  3. Siv lub jumper cable txuas cov kab dub mus rau txoj kab tsis zoo (xiav/dub) rau saum.

Thiab tom qab ntawd koj tau ua tiav nrog kev sib dhos cov khoom

Kauj ruam 3: Program Arduino

Rub tawm cov ntawv no thiab rub nws mus rau Arduino!

Nco ntsoov tias koj tau teeb tsa Arduino ntawm koj lub computer.

Kauj ruam 4: Muab tso rau hauv ib lub thawv

Muab tso rau hauv ib lub thawv!
Muab tso rau hauv ib lub thawv!

Nrhiav lub thawv thiab muab txhua yam tso rau hauv, nco ntsoov txiav tawm qhov rau LEDs thiab cov nyees khawm!

Kauj ruam 5: Kho kom zoo nkauj! (yeem)

Kho kom zoo nkauj! (yeem)
Kho kom zoo nkauj! (yeem)

Tom qab tau txais koj lub thawv npaj, tam sim no nws yog lub sijhawm rau kev lom zem, dai kom zoo nkauj!

Tau kawg, qhov no yog nyob ntawm yeem, koj tsis tas yuav ua qhov no.

Xav tias dawb los kos qee yam ntawm lub npov, tso tawm koj lub tswv yim!

Kauj Ruam 6: Ua tiav Cov Khoom

Tam sim no txhua yam yuav tsum ua haujlwm, ua tsaug rau kev saib thiab kuv vam tias koj yuav muaj hnub zoo/hmo ntuj!: D

Pom zoo: