Cov txheej txheem:

Arduino Tsuav: 3 Kauj Ruam
Arduino Tsuav: 3 Kauj Ruam

Video: Arduino Tsuav: 3 Kauj Ruam

Video: Arduino Tsuav: 3 Kauj Ruam
Video: How to make a STEEL MARBLE TRACK with basic tools! step by step guide 2024, Kaum ib hlis
Anonim
Arduino Tsuav
Arduino Tsuav

nyob zoo hnub no kuv yuav los qhia koj yuav ua li cas ua qhov kev lom zem me me nrog rau Arduino board. Nov yog qhov haujlwm yooj yim hu ua Arduino Dice uas yuav pab koj kom nkag siab qhov yooj yim ntawm Arduino thiab nws tau coding. Txoj haujlwm no yuav pab kawm paub txog kev ua haujlwm hauv tsev xws li "ib"-"rau" thiab ntau ntxiv. Hauv cov cai kuv tau teev tseg hauv qab no kev ua haujlwm hauv tsev "ib qho" yuav qhib rau ib qho coj tsis raug yog tias tus lej yog 1. Tib yam yuav tshwm sim yog tias tus lej yog 3, 4, 5 lossis 6, kev ua haujlwm uas txuas nrog tus lej yuav xaiv tus naj npawb ntawm LED uas yuav ci. Cov haujlwm hauv tsev pab koj txuag sijhawm hauv koj cov cai thiab yog tias koj kawm lawv lawv yuav pab npaj koj cov lej rau cov phiaj xwm yav tom ntej.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

Koj yuav xav tau cov hauv qab no

- Ib Arduino Uno thiab Genuino Board

- Generic Bread board

- Cov xov hluav taws xob dav dav (Cov luv luv nyiam)

- 220 ohm resistor x6

- x6 LEDS ntawm ib qho xim

Kauj Ruam 2: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court

Nqa cov LEDS tshaj kab lawv nrog lub rooj mov ci nrog cov ceg ntev ntawm LED taw qhia rau sab xis (qhov no yuav muab tso rau hauv tus pin). Raws li koj tuaj yeem pom los ntawm daim duab saum toj saud LED nyob rau sab laug yuav txuas nrog tus pin 6 thiab LED ntawm sab xis yuav txuas nrog Pin 1. Txhua ceg luv ntawm LEDS yuav txuas nrog rau 220 ohm resistor. Lwm ceg ntawm cov neeg tawm tsam yuav txuas nrog kab hauv av. Nqa ib lub xaim thiab txuas hauv av mus rau uno thiab kev ua haujlwm tau tiav.

Pom zoo: