Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Circuit Court
- Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type
- Kauj Ruam 4: Hauv Visuino ADD & Txuas Cheeb Tsam
- Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 6: Ua si
Video: Tswj LED Blinking Nrog Potentiometer thiab OLED Zaub: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tswj tau LED Blinking nrog lub hwj chim thiab tso saib tus nqi mem tes zaus ntawm OLED Zaub.
Saib daim vis dis aus.
Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Arduino UNO (lossis lwm yam Arduino)
- LED
- PotentiometerJumper xov hlau
- OLED Zaub
- Visuino program: Rub tawm Visuino
Kauj ruam 2: Circuit Court
- Txuas tus pin potentiometer [DTB] rau arduino analog pin [A0]
- Txuas tus pin potentiometer [VCC] mus rau tus pin arduino [5V]
- Txuas tus pin potentiometer [GND] mus rau tus pin arduino [GND]
- Txuas LED tus pin zoo rau Arduino tus pin [7]
- Txuas LED tus pin zoo rau Arduino tus pin [GND]
- Txuas OLED zaub tus pin [VCC] rau arduino tus pin [5V]
- Txuas OLED zaub tus pin [GND] rau arduino tus pin [GND]
- Txuas OLED zaub tus pin [SDA] rau arduino tus pin [SDA]
- Txuas OLED zaub tus pin [SCL] rau arduino tus pin [SCL]
Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type
Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:
Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2
Kauj Ruam 4: Hauv Visuino ADD & Txuas Cheeb Tsam
- Ntxiv "Pulse Generator" tivthaiv Hauv lub qhov rai khoom xaiv "Zaus" thiab nyem rau ntawm tus lej pin thiab xaiv "Float SinkPin"
- Ntxiv "Multiply Analog By Value" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 10
- Ntxiv "OLED zaub I2C" -Double click on the DisplayOLED1 component-In the element window expand "Text" and drag "Text Field" to the left side-Select "Text Field1" at the left side and in the properties window set size to: 2 Kaw lub ntsiab qhov rai
- Txuas Arduino AnalogIn [0] rau "MultiplyByValue1" tus pin [Hauv]
- Txuas "MultiplyByValue1" tus pin [Tawm] rau DisplayOLED1> Text Field1> pin In
- Txuas "MultiplyByValue1" tus pin [Tawm] mus rau "PulseGenerator1" tus pin [Zaus]
- Txuas DisplayOLED1 tus pin I2C Tawm rau Arduino I2C Hauv
- Txuas "PulseGenerator1" tus pin [Tawm] rau Arduino tus lej digital [7]
Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE
Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)
Kauj ruam 6: Ua si
Yog tias koj ua lub zog Arduino UNO tus qauv, thiab hloov pauv lub zog potentiometer txoj haujlwm LED yuav hloov pauv nws qhov ntsais ntsais thiab tus nqi potentiometer (zaus) yuav tshwm ntawm OLED zaub.
Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:
Pom zoo:
Tswj LED Blinking Pulses Nrog Potentiometer: 6 Cov Kauj Ruam
Tswj LED Blinking Pulses Nrog Potentiometer: Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tswj tau LED Blinking pulses nrog potentiometer
Loj hlob Zaub Zaub Ntxiv Hauv Qhov Chaw Tsawg Los Yog Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg): 10 Kauj Ruam
Loj Hlob Ntau Cov Zaub Zaub Hauv Tsawg Chaw lossis … Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg).: Qhov no yog kev tshaj lij tshaj lij rau Kev Loj Hlob Tshaj Ntiaj Teb, Kev Tsim Khoom Sib Tw, xa los ntawm Cov Lus Qhia. Kuv tsis tuaj yeem muaj kev zoo siab dua los tsim rau thaj chaw cog qoob loo thiab tshaj tawm kuv thawj Cov Lus Qhia. Yuav pib, kev sib tw nug peb kom
Tswj LED Brightness Nrog Potentiometer thiab OLED Zaub: 6 Cov Kauj Ruam
Tswj LED Brightness Nrog Potentiometer thiab OLED Zaub: Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tswj tau qhov ci LED nrog lub hwj chim thiab qhia tus nqi ntawm OLED Zaub
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau