Mundarija:

Arduino yagona o'yinchi pong- Agar shunday bo'lsa, u holda: 5 qadam
Arduino yagona o'yinchi pong- Agar shunday bo'lsa, u holda: 5 qadam

Video: Arduino yagona o'yinchi pong- Agar shunday bo'lsa, u holda: 5 qadam

Video: Arduino yagona o'yinchi pong- Agar shunday bo'lsa, u holda: 5 qadam
Video: Kattalar uchun o’yinchoq 2024, Noyabr
Anonim
Arduino yakkalik o'yinchisi- bu shunday bo'lsa, u holda
Arduino yakkalik o'yinchisi- bu shunday bo'lsa, u holda

Dit arduino loyihasi 2-bosqichli pong loyihasi bo'yicha ko'rsatmalarni beradi (https://www.instructables.com/id/Portable-Arduino-a…)-bu bitta o'yinchi bilan birlashtirilgan AI loyihasi.

Oldindan:

  • Arduino Uno
  • Nokia 5100 uchun dasturiy ta'minot.
  • 1 ta non paneli
  • 1 ta chop etish/prototiplash taxtasi
  • 14 kabel
  • 1 potansiyometr

1 -qadam: 1 -band: Aansluiten Breadboard

1 -qadam: Breadboard -ni tanlang
1 -qadam: Breadboard -ni tanlang
1 -qadam: Breadboard -ni tanlang
1 -qadam: Breadboard -ni tanlang
1 -qadam: Breadboard -ni tanlang
1 -qadam: Breadboard -ni tanlang

Hoe je de kabels op het scherm en de arduino aansluit hang van he hoe het op je scherm staat, va bu har bir tarmoq uchun juda katta zaxiradir.

Voor mij waren de pinnen zo:

  1. VCC
  2. GND
  3. SCE
  4. RST
  5. D/C.
  6. DN
  7. SCLK
  8. LED

Aniqlanishicha, 7 -pin, 6 -pinni qayta tiklash, 5 -chi D/C, 4 -SDIN (DN), 4 -sonli SCLK -pin, biz orqa yorug'lik/LED -ni o'chirib qo'ydik.

O'rtacha, biz 0 (A0) pinli analog kabelni topdik.

Bu erda siz hamma narsani bilib olishingiz mumkin.

2 -qadam: 2 -band: Kodni yuklang

Loyihaning eng yaxshi kodi - bu havola. Ma'lumotlar almashinuvi AI bilan bir vaqtda amalga oshirildi.

Bu erda kodni ko'rish mumkin:

Het werkt uchun test kodini yuklang.

3 -qadam: 3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi

3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi
3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi
3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi
3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi
3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi
3 -tayanch: Soldeer De Kabels, chop etish/prototiplash taxtasi

Qachonki, bu sxemani ko'rib chiqayapman.

4 -qadam: 4 -band: Behuizing

4 -qadam: behuizing
4 -qadam: behuizing
4 -qadam: behuizing
4 -qadam: behuizing
4 -qadam: behuizing
4 -qadam: behuizing

Stevig karton genomining eng katta farqi shundaki, u potentsiometrni o'chirib qo'yadi. bir vaqtning o'zida, bu magnitli geplaatst zodat hij dicht blijft, maar mocht je iets willen vervangen of toevoegen dat je er dan toch weer bij kan.

5 -qadam: 5 -tayanch: gapiring

5 -band: gapiring!
5 -band: gapiring!

Kompyuterning noutbuklari usb zaryadlovchisidir.

* Options* ovozli barmog'ingiz va oyog'ingiz bilan ishlang.

Tavsiya: