Cov txheej txheem:

Teeb pom kev pom lub teeb pom kev zoo (LED) Nrog C Stamp Microcontroller: 5 Kauj Ruam
Teeb pom kev pom lub teeb pom kev zoo (LED) Nrog C Stamp Microcontroller: 5 Kauj Ruam

Video: Teeb pom kev pom lub teeb pom kev zoo (LED) Nrog C Stamp Microcontroller: 5 Kauj Ruam

Video: Teeb pom kev pom lub teeb pom kev zoo (LED) Nrog C Stamp Microcontroller: 5 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
Teeb pom kev teeb pom kev zoo (LED) Nrog C Stamp Microcontroller
Teeb pom kev teeb pom kev zoo (LED) Nrog C Stamp Microcontroller

Nov yog thawj Txoj Haujlwm Tsim thiab Ua Haujlwm los ntawm CS310XXX (μC 101) Cov Lus Qhia Qhia Los Ntawm A-WIT Technologies, Inc.

Hauv cov lus qhia no, peb yuav teeb lub teeb Emitting Diode (LED) nrog C Stamp Microcontroller. C Stamp Microcontroller tau teeb tsa hauv ib pawg ntawm C hu ua WC. Raws li qhov tshwm sim ntawm C Stamp cov neeg siv nyiam, peb yuav siv nws los ua lub hom phiaj ntawm qhov ua piv txwv no.

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

Txhawm rau ua kom tiav Cov Lus Qhia no, cov hauv qab no xav tau:

1 Pawg Tswj Xyuas Kev Kawm Txhim Kho - Microcontroller Fundamentals - 101C 101 1 9 Volt DC 200 mA Lub Hwj Huam Fais Fab - 120V AC Input (Asmeskas, thiab lwm yam) 1 USB Cable (6 Taw USB rau Serial DB -9 Adapter) 1 Ntsuab LED 1 287 OHM 1/4W ± 1% Hlau Zaj Duab Xis Resistor 2 Nruab Nrab Ntev Hlau --------------------------------------------------- ----------------------------------------------------------------------- ---------------------------------------------- Cov lus saum toj no yog liab qab yam tsawg kawg nkaus uas xav tau los ua kom tiav Cov Lus Qhia no. Txawm li cas los kom kawm tiav thiab sim nrog C Stamp Microcontroller Microcontroller Activity Kit - USB Connector - 120V Fais Fab Khoom (Asmeskas, thiab lwm yam) tau pom zoo. Cov khoom siv no tsis tsuas yog suav nrog cov ntu saum toj no tab sis kuj yog txhua ntu uas tsim nyog kom ua tiav txhua yam haujlwm hauv CS310XXX (µC 101) Cov Ntawv Qhia Txog Kev Qhia Ntxiv nrog rau lwm yam A-WIT Technologies Instructables

Kauj Ruam 2: Teeb Lub Teeb Pom Kev Pom Kev Diode (LED)

Txuas lub teeb Emitting Diode (LED)
Txuas lub teeb Emitting Diode (LED)
Txuas lub teeb Emitting Diode (LED)
Txuas lub teeb Emitting Diode (LED)
Txuas lub teeb Emitting Diode (LED)
Txuas lub teeb Emitting Diode (LED)

Rau qhov kev qhia no daim kab xev daim duab tau qhia hauv qab no

Daim duab kab hluav taws xob tau ua tiav hauv Pawg Thawj Coj Kev Kawm raws li qhia hauv qab no.

Kauj Ruam 3: Tsim Txoj Haujlwm

Tsim Txoj Haujlwm
Tsim Txoj Haujlwm

Siv MPLAB Compiler, tsim qhov program uas muaj nyob hauv phau ntawv qhia raws li qhia hauv qab no.

Kauj Ruam 4: Programming C Stamp

Programming C Stamp
Programming C Stamp

Tom qab tsim lub program, tam sim no koj tau npaj rau program C Stamp.

Qhib CSTAMP (TM) Tus Kws Ua Haujlwm Ceev. Koj yuav raug nthuav qhia nrog cov haujlwm hauv qab no. Txhawm rau program C Stamp, ua raws cov theem no. 1) Xaiv koj qhov chaw nres nkoj COM thiab rov ua dua tshiab. 2) Qhib HEX Cov Ntaub Ntawv uas koj xav siv. (Qhov no yuav nyob hauv phau ntawv teev npe ib yam li thaj chaw ua haujlwm uas koj tau tsim hauv MPLAB.) 3) Txuas rau koj li C Stamp. 4) Sau Ntawv Tom qab ua tiav cov kauj ruam dhau los thiab tos rau txoj haujlwm kom ua tiav kev sau ntawv, nws yuav tsum hais tias "YUAV TSUM NYEEM" qhov twg nws hais "WRITE STATUS". Nrog koj zoo siab! Tam sim no koj yuav tsum muaj LED uas ci txhua ob. Yog xav paub ntxiv txog C Stamp mus ntsib

Kauj ruam 5: Txhua yam ua tiav

Ua Tiav!
Ua Tiav!

Tom qab ua tiav cov kauj ruam dhau los thiab tos rau qhov program kom ua tiav kev sau ntawv, nws yuav tsum hais "WRITING COMPLETE" qhov twg nws hais "WRITE STATUS".

Nrog koj zoo siab! Tam sim no koj yuav tsum muaj LED uas ci txhua ob. Yog xav paub ntxiv txog C Stamp mus ntsib

Pom zoo: