Cov txheej txheem:

Arduino LCD Ball Game: 3 Kauj Ruam
Arduino LCD Ball Game: 3 Kauj Ruam

Video: Arduino LCD Ball Game: 3 Kauj Ruam

Video: Arduino LCD Ball Game: 3 Kauj Ruam
Video: Arduino Unboxing: Original Arduino Starter Kit vs Elegoo Uno R3 Starter Kit 2024, Kaum ib hlis
Anonim
Arduino LCD Ball Game
Arduino LCD Ball Game

Nyob zoo, qhov no yog Arduino LCD Ball Game uas kuv tau tsim thaum lub sijhawm cais tawm, kuv muaj cov vis dis aus me me hais txog qhov kev ua si no ua haujlwm li cas thiab koj tuaj yeem pom cov vis dis aus ntawm (https://www.youtube.com/embed/ccc4AkOJKhM)

Khoom siv

cov khoom siv uas yuav xav tau

  • 1 Arduino UNO pawg thawj coj saib
  • Ntau cov xov hlau jumper (Txhua hom)
  • LCD Screen
  • Buzzer
  • 1 RGB LED
  • 11 k Ohm resistor
  • 3 330 Ohm resistors
  • 1 Laub Khawm
  • Photo Resistor
  • SlideSwitch

Kauj Ruam 1: HardWare (Txuas Hluav Taws Xob)

HardWare (Txuas lub Circuit Court)
HardWare (Txuas lub Circuit Court)

Txawm hais tias xaim Circuit Court yuav zoo li nyuaj, koj tuaj yeem ua raws daim duab saum toj no los pab koj xaim hluav taws xob.

Nov yog cov lus piav qhia yuav ua li cas xaim lub xov tooj cua no.

  • Ua ntej tshaj Txuas Cov Hluav Taws Xob thiab Cov Rails Hauv Lub Caij Nplooj Ntoos Zeeg
  • Txuas tus Pin 1 rau DB7 ntawm lub LCD
  • Txuas tus Pin 4 rau DB6 ntawm lub LCD
  • Txuas tus Pin 5 rau DB5 rau lub LCD
  • Txuas tus Pin 7 rau DB4 ntawm lub LCD
  • Txuas tus Pin 8 mus rau ENABLE tus pin ntawm LCD
  • Txuas tus Pin 10 rau tus nyeem/sau tus pin ntawm lub LCD
  • Txuas tus Pin 12 mus rau CONTRAST tus pin ntawm LCD
  • Txuas tus Pin 13 rau Kev Sau Npe Txuas tus pin ntawm LCD
  • Txuas lub GROUND thiab LED Cathode Pins ob qho rau hauv av
  • Txuas lub Hwj Chim los ntawm Cov Hluav Taws Xob mus rau Terminal 1 ntawm daim duab tiv thaiv
  • Txuas tus POWER tus pin los ntawm LCD mus rau lub davhlau ya nyob twg 1 ntawm Photo resistor
  • Txuas Terminal 2 ntawm Photo resistor mus rau davhlau ya nyob twg 1 ntawm tus swb swb
  • Txuas Ib Leeg los ntawm Kev Hloov mus rau LED Anode ntawm LCD
  • Txuas 1 Kawg ntawm Khawm rau Tus Pin 2 thiab lwm qhov kawg rau hauv av
  • Txuas Qhov Zoo kawg ntawm Buzzer rau Pin 2 nrog 1k Ohm resistor nyob nruab nrab

  • Txuas qhov tsis zoo kawg ntawm Buzzer mus rau txoj kev tsheb nqaj hlau
  • Txuas Red Pin ntawm RGB LED mus rau 330 ohm resistor txuas nrog Pin 6
  • Txuas Blue Pin ntawm RGB LED mus rau 330 ohm resistor txuas nrog Pin 9
  • Txuas Green Pin ntawm RGB LED mus rau 330 ohm resistor txuas nrog tus pin 11 ntawm Arduino.

Qhov no Yuav zoo li ntxim nyiam thaum xub thawj tab sis thaum koj tau dai ntawm nws tau yooj yim dua.

Kauj ruam 2: CODE

CODE
CODE

yog tias koj ua raws cov kauj ruam dhau los ntawm kho vajtse thiab theej tib tus lej lej tus lej ces koj tuaj yeem siv tus lej txuas nrog thiab koj yuav zoo. TAB SIS yog tias koj siv tus pin sib txawv ces koj yuav tau hloov pauv cov tswv yim thiab cov txiaj ntsig.

Kauj ruam 3: TSEEM CEEB

tam sim no koj tau ua tiav koj ARDUINO LCD GAMEE. txaus siab!

Pom zoo: