Cov txheej txheem:

RIG CELL LITE INTRO: Digital I/O: 3 Kauj Ruam
RIG CELL LITE INTRO: Digital I/O: 3 Kauj Ruam

Video: RIG CELL LITE INTRO: Digital I/O: 3 Kauj Ruam

Video: RIG CELL LITE INTRO: Digital I/O: 3 Kauj Ruam
Video: INVADA 2024, Hlis ntuj nqeg
Anonim
RIG CELL LITE INTRO: Digital I/O
RIG CELL LITE INTRO: Digital I/O

Cov tswv yim digital thiab tso tawm (digital I/O) ntawm RIG CELL LITE yuav tso cai rau koj txuas nws mus rau cov ntsuas, tus ua haujlwm, thiab lwm yam ICs. Kawm paub siv lawv li cas yuav tso cai rau koj siv RIG CELL LITE los ua qee yam muaj txiaj ntsig tiag tiag, xws li nyeem cov ntawv hloov pauv, ntsuas qhov pom kev, thiab tswj kev xa tawm.

Cov cim qhia

Tsis zoo li cov cim sib piv, uas tuaj yeem siv tus nqi hauv ntau qhov txiaj ntsig, cov cim digital muaj ob qhov sib txawv: HIGH (1) lossis LOW (0). Koj siv cov cim digital hauv cov xwm txheej, qhov twg cov tswv yim lossis cov ntawv tso tawm yuav muaj ib qho ntawm ob qhov txiaj ntsig. Piv txwv li, ib txoj hauv kev uas koj tuaj yeem siv lub cim digital yog tig lossis qhib LED.

rau cov lus qhia no, peb yuav sim siv lub pob ua lub tswv yim, thiab LED ua qhov tso tawm.

Qhov Yuav Tsum Tau Ua Koj yuav xav tau cov hauv qab no:

  • 1 x Breadboard
  • 1x Rig Cell Lite
  • 1 x LED
  • 5x Jumper Xov
  • 2x 220 ohm resistors
  • 1x laub khawm

Kauj Ruam 1: Teem CIRCUIT (HARDWARE)

Teem Teem CIRCUIT (HARDWARE)
Teem Teem CIRCUIT (HARDWARE)

Kev sib txuas yooj yim ntawm lub khob cij, peb tuaj yeem txuas LED mus rau tus pin tso tawm ntawm Arduino.

Txuas cov hlua jumper los ntawm RIG CELL LITE tus pin txuas D8 rau tus pin zoo ntawm tus LED raws li qhia. Txuas lwm lub jumper hlau los ntawm RIG CELL LITE tus pin GND rau tus pin polarity tsis zoo ntawm LED. circuitit yuav tsis ua ib yam dab tsi txog thaum koj tau xa cov cai rau hauv pawg thawj coj, uas tau ua tiav nyob rau theem tom ntej

Kauj Ruam 2: DIGITAL I/O (CODE)

DIGITAL I/O (CODE)
DIGITAL I/O (CODE)

Peb yuav siv cov software arduino IDE los hlawv cov lej hauv, raws li peb tus piv txwv yav dhau los ntawm kev teeb tsa ib puag ncig rau kev sau coding. https://www.instructables.com/id/RIG-CELL-LITE-INT… ntawm no yog qhov txuas rau arduino IDE software teeb tsa.

Kuv tau txuas cov cai ntawm no.

  • Txhua yam uas koj yuav tsum ua yog qhib nws nrog qhov program kos duab arduino.
  • txuas koj lub xov tooj ntawm tes rig nrog lub khoos phis tawj.
  • xyuas kom tseeb tias koj lub rig cell lite tau kuaj pom los ntawm koj lub computer
  • teeb tsa koj lub rooj tsav xwm rau arduino nano hauv pawg tswj hwm xaiv.
  • nyem upload rau lub tswv yim software.

Kauj Ruam 3: RESULTS: D

Tom qab ua tiav xa cov digital_IO.ino code ntawm RIG CELL LITE, sim thawb lub pob. yog tias txhua yam nyob rau hauv kev txiav txim, sai li sai tau thaum koj nias lub laub, koj yuav pom cov coj yuav ci. thaum koj tshem koj tus ntiv tes los ntawm kev thawb lub pob, cov coj yuav tua.

Yog tias nws tsis yog, xyuas kom koj tau teeb tsa lub Circuit kom raug thiab txheeb xyuas thiab muab cov lej tso rau hauv koj lub rooj tsavxwm, lossis saib ntu kev daws teeb meem.

Pom zoo: