Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj Ruam 2: Pib Visuino, thiab Xaiv Arduino UNO Board Type
- Kauj Ruam 3: Hauv Visuino Ntxiv Cheebtsam
- Kauj Ruam 4: Hauv Visuino Teeb Cov Khoom
- Kauj Ruam 5: Hauv Visuino Connect Components
- Kauj Ruam 6: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 7: Ua si
- Kauj ruam 8: Circuit Court
Video: Force Sensing Resistor (FSR) Arduino Yooj Yim Qhia: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv qhov kev qhia no peb yuav kawm paub yuav txheeb xyuas qhov quab yuam siv rau Force Sensing Resistor (FSR) thiab muab tso rau ntawm OLED Display + peb yuav teeb tsa txwv nrog ntsuab thiab liab LED.
Saib daim vis dis aus.
Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Arduino UNO (lossis lwm yam Arduino)
- Lub zog sensor
- OLED zaub
- Liab & Ntsuab LED
- 1K ohm tiv thaiv
- Jumper xov hlau
- Cov qhob cij
- Visuino program: Rub tawm Visuino
Kauj Ruam 2: 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 3: Hauv Visuino Ntxiv Cheebtsam
- Ntxiv "SSD1306/SH1106 OLED Display (I2C)" tivthaiv
- Ntxiv 2x "Sib piv Tus Nqi Analog" tivthaiv
Kauj Ruam 4: Hauv Visuino Teeb Cov Khoom
- Ob npaug nias rau ntawm "DisplayOLED1" tivthaiv thiab hauv "Elements" dialog window drag "Text Field" mus rau sab laug
- xaiv ntawm sab xis "Text Field1" thiab hauv cov khoom qhov rai teeb tsa loj: 3 thiab Y: 40
- Xaiv "CompareValue1" tivthaiv thiab hauv lub qhov rai qhov khoom teeb tsa Sib piv Hom: ctSmallerOrEqualand tus nqi: 0.1 "CompareValue1" yog siv los ua rau Green LED, nws txhais tau tias thaum twg tus nqi nkag tau me dua lossis sib npaug rau 0.1 ua rau LED
- Xaiv "CompareValue2" tivthaiv thiab hauv cov khoom qhov rai teeb tsa Sib piv Hom: ctBigger
thiab tus nqi: 0.1 "Sib pivValue2" tau siv los ua rau LED liab, nws txhais tau tias thaum twg tus nqi nkag tau loj dua 0.1 ua rau lub teeb liab liab
Kauj Ruam 5: Hauv Visuino Connect Components
- Txuas Arduino Analog Out pin [0] rau "CompareValue1" tiv thaiv tus pin [Hauv]
- Txuas Arduino Analog Out pin [0] rau "CompareValue2" tiv thaiv tus pin [Hauv]
- Txuas Arduino Analog Out pin [0] rau "DisplayOLED1> Text Field1" tiv thaiv tus pin [Hauv]
- Txuas "DisplayOLED1" tivthaiv rau Arduino I2C tus pin [Hauv]
- Txuas "CompareValue1" tiv thaiv tus pin [Tawm] rau Arduino tus lej digital [8]
- Txuas "CompareValue2" tiv thaiv tus pin [Tawm] rau Arduino tus lej digital [7]
Kauj Ruam 6: 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 7: Ua si
Yog tias koj ua lub zog Arduino UNO module, thiab nias lub zog ntsuas qhov ntsuas koj yuav tsum pom tus lej hloov pauv ntawm OLED zaub thiab LED ntsuab yuav tsum pom tab sis thaum koj tsoo qhov txwv liab liab yuav tsum ci.
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:
Kauj ruam 8: Circuit Court
- Txuas Arduino Tus lej Zoo [5V] rau OLED tus pin [VCC] thiab Force sensor tus pin [1]
- Txuas Arduino Negative pin [GND] rau OLED pin [GND]
- Txuas OLED Display pin [SDA] rau Arduino tus pin [SDA]
- Txuas OLED Display pin [SCL] rau Arduino tus pin [SCL]
- Txuas Force sensor tus pin [2] rau Arduino Analog tus pin [0]
- Txuas Force sensor pin [2] rau 1K ohm resistor
- Txuas lwm sab ntawm tus tiv thaiv rau Arduino Negative pin [GND]
- Txuas Ntsuab LED tsis zoo tus pin rau Arduino tus pin [GND]
- Txuas Ntsuab LED Zoo tus pin rau Arduino Digital tus pin [8]
- Txuas Liab LED tsis zoo tus pin rau Arduino tus pin [GND]
- Txuas Liab LED Zoo tus pin rau Arduino Digital tus pin [7]
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Qhov Yooj Yim Yooj Yim Yooj Yim]: 3 Kauj Ruam
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Ob Qes Yooj Yim Yooj Yim]: Puas yog koj tab tom nrhiav kom ua txoj haujlwm yooj yim thiab nthuav nrog Arduino uas nyob rau tib lub sijhawm tuaj yeem muaj txiaj ntsig tiag tiag thiab muaj peev xwm cawm txoj sia? tej yam tshiab thiab tshiab. Hauv kab ntawv no peb mus
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): 7 Kauj Ruam
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): Xav hloov pauv yam ntawm koj lub laptop lossis PC? Xav tau kev hloov pauv hauv koj qhov chaw? Ua raws cov kauj ruam no yooj yim thiab yooj yim kom ua tiav koj tus kheej lub computer ntsuas phoo
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: 3 Kauj Ruam
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: Koj Yuav Tsum Tau Li Cas - Tin ntawv ci 1 AA roj teeb (qee lub roj teeb AAA yuav ua haujlwm) 1 Mini Lub Teeb Pom Kev (lub teeb siv rau feem ntau lub teeb nyem; xa mus rau daim duab) Tus Tswj (yog xav tau)