Cov txheej txheem:

Brightness Control PWM Raws Li Kev Tswj Xyuas LED Siv Push Buttons, Raspberry Pi thiab Kos: 8 Kauj Ruam (nrog Duab)
Brightness Control PWM Raws Li Kev Tswj Xyuas LED Siv Push Buttons, Raspberry Pi thiab Kos: 8 Kauj Ruam (nrog Duab)

Video: Brightness Control PWM Raws Li Kev Tswj Xyuas LED Siv Push Buttons, Raspberry Pi thiab Kos: 8 Kauj Ruam (nrog Duab)

Video: Brightness Control PWM Raws Li Kev Tswj Xyuas LED Siv Push Buttons, Raspberry Pi thiab Kos: 8 Kauj Ruam (nrog Duab)
Video: doubling the drop every time the PC survives #shorts 2024, Hlis ntuj nqeg
Anonim
Brightness Control PWM Raws Li Kev Tswj Xyuas LED Siv Push Buttons, Raspberry Pi thiab Kos
Brightness Control PWM Raws Li Kev Tswj Xyuas LED Siv Push Buttons, Raspberry Pi thiab Kos

Kuv tau sim nrhiav txoj hauv kev los piav qhia PWM ua haujlwm li cas rau kuv cov tub ntxhais kawm, yog li kuv teeb tsa kuv tus kheej txoj haujlwm ntawm kev sim tswj lub teeb ci ntawm LED siv 2 lub laub khawm - ib lub khawm nce qhov ci ntawm LED thiab lwm qhov ua rau nws dimming.

Txhawm rau nws, Kuv txiav txim siab sim siv Scratch. Tau ua ob peb txoj haujlwm nrog kuv Arduino, kuv xav tias qhov no yuav yog txoj haujlwm yooj yim zoo nkauj, ib qho LED thiab ob lub khawm thawb… nyuaj npaum li cas nws thiaj yog? Tub yog kuv yuam kev!

Nws coj kuv ob hnub los ua haujlwm, tab sis kuv tau kawm ntau yam ntawm txoj kev. Kuv xav qhia qhov kuv tau kawm nrog koj tam sim no

Kauj Ruam 1: Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no

Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no
Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no
Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no
Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no
Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no
Sib Sau Ua Ke Txhua Yam Koj Yuav Tsum Muaj Rau Txoj Haujlwm no

Koj xav tau Raspberry Pi thiab daim npav SD nrog Raspian thauj khoom rau nws. Kuv rub tawm qhov hloov tshiab los ntawm no thiab teeb nws rau ntawm daim npav micro SD.

www.raspberrypi.org/downloads/raspbian/

Yog tias koj yog tus tshiab rau Raspberry Pi, muaj phau ntawv qhia kev teeb tsa zoo ntawm nplooj ntawv rub tawm uas yuav qhia koj yuav ua li cas thiaj teeb tsa lub operating system. Kuv rub tawm Raspian Jessie installation file.

Thaum Raspberry Pi tau teeb tsa, koj yuav tsum rub tawm thiab teeb tsa ScratchGPIO. Txhawm rau ua qhov no ua raws cov theem hauv qab no:

Qhib lub qhov rai davhlau ya nyob twg (nyob rau sab saud ntawm lub vijtsam, zoo li lub thawv dub me me)

Nco ntsoov tias koj tau txuas nrog Is Taws Nem ces nkag mus rau cov lus txib no:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

sudo wget https://bit.ly/1wxrqdp -O isgh7.sh

sudo bash isgh7.sh

Pom zoo: