Cov txheej txheem:
- Kauj Ruam 1: Muab Voltage
- Kauj Ruam 2: Sab Hauv Kub
- Kauj Ruam 3: Sib Piv Sib Piv (cuam tshuam)
- Kauj ruam 4: Txee
- Kauj Ruam 5: Ua Ntej Ua Ntej
- Kauj Ruam 6: Khaws Hloov pauv hauv RAM Los Ntawm Kev Pib dua
- Kauj Ruam 7: Nkag Mus Rau Lub Teeb Meem
- Kauj Ruam 8: Port Internal Structure ntawm ATmega328P
- Kauj Ruam 9: On-Board (builtin) LED Raws Li Photodetector
Video: Arduino Lesser Paub Nta: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Qhov no yog ntau daim ntawv teev npe tsis yog li feem ntau hais txog cov yam ntxwv ntawm Arduino platforms feem ntau siv (piv txwv li Uno, Nano). Cov npe no yuav tsum ua raws li kev siv thaum twg koj xav tau los saib cov yam ntxwv no thiab nthuav tawm lo lus.
Saib cov cai txhawm rau pom cov piv txwv rau txhua qhov ntawm cov yam ntxwv zoo li kuv tau siv lawv hauv ob peb ntawm kuv cov haujlwm ntawm no ntawm kev qhia (piv txwv li Arduino 1-wire Display (144 Chars)). Cov theem hauv qab no piav qhia ib qho tshwj xeeb.
Kauj Ruam 1: Muab Voltage
Arduino tuaj yeem ntsuas nws tus kheej lub zog hluav taws xob hauv txoj kev tsis ncaj. Los ntawm kev ntsuas cov ntaub ntawv sab hauv nrog cov khoom siv hluav taws xob raws li kev siv sab saud koj tuaj yeem tau txais qhov sib piv ntawm kev siv sab hauv thiab cov khoom siv hluav taws xob (cov khoom siv hluav taws xob ua raws li kev khi rau kev sib piv/ADC nyeem). Raws li koj paub tus nqi tseeb ntawm qhov ntsuas hluav taws xob sab hauv koj tuaj yeem suav qhov ntsuas hluav taws xob.
Rau cov lus qhia ntxaws txog yuav ua li cas nrog rau cov piv txwv piv txwv saib:
- Secret Arduino Voltmeter-Ntsuas Roj Teeb Voltage:
-
Can Arduino ntsuas nws tus kheej Vin ?:
Kauj Ruam 2: Sab Hauv Kub
Qee qhov Arduino tau nruab nrog lub ntsuas kub sab hauv thiab yog li tuaj yeem ntsuas lawv sab hauv (semicoductor) kub.
Rau cov lus qhia ntxaws txog yuav ua li cas nrog rau cov piv txwv piv txwv saib:
Internal Kub Sensor:
Can Arduino ntsuas nws tus kheej Vin ?:
Kauj Ruam 3: Sib Piv Sib Piv (cuam tshuam)
Arduino tuaj yeem teeb tsa qhov sib piv sib piv ntawm tus pin A0 thiab A1. Yog li ib qho muab qib hluav taws xob thiab lwm qhov raug tshuaj xyuas rau kev hla ntawm qhov hluav taws xob no. Kev cuam tshuam tau nce nyob ntawm seb qhov kev hla hla yog nce lossis poob ntug (lossis ob qho tib si). Qhov cuam tshuam tuaj yeem raug ntes los ntawm software thiab ua raws.
Rau cov lus qhia ntxaws txog yuav ua li cas nrog rau cov piv txwv piv txwv saib:
Analog Comparator Interrupt:
Kauj ruam 4: Txee
Tau kawg AVR muaj ntau qhov suav nrog. Feem ntau lawv tau siv los teeb tsa lub sijhawm ntawm ntau zaus thiab nce kev cuam tshuam ntawm qhov xav tau. Lwm qhov yuav yog qhov qub siv heev yog siv lawv tsuas yog suav nrog yam tsis muaj khawv koob ntxiv, tsuas yog nyeem tus nqi thaum koj xav tau (pov npav). Ib qho kev siv siab heev ntawm qhov no tuaj yeem yog de-bounce nyees khawm xws li Sib piv piv txwv cov ntawv no: AVR Piv txwv T1 txee
Kauj Ruam 5: Ua Ntej Ua Ntej
Muaj qee qhov kev hloov pauv ua ntej uas tuaj yeem siv los ntxiv cov ntawv thiab muab cov ntaub ntawv tso rau koj qhov project.
Rau cov lus qhia ntxaws txog yuav ua li cas nrog rau cov piv txwv piv txwv saib:
Serial.println (_ DATE_); // sau hnub tim
Serial.println (_ TIME_); // sau sijhawm
StringOne = Txoj hlua (ARDUINO, DEC);
Serial.println (stringOne); // arduino ide version
Serial.println (_ VERSION_); // gcc cov version
Serial.println (_ FILE_); // file compiled
cov cai snipplets no yuav tso cov ntaub ntawv ntawd mus rau lub console.
Kauj Ruam 6: Khaws Hloov pauv hauv RAM Los Ntawm Kev Pib dua
Nws paub zoo tias Arduino Uno (ATmega328) muaj EEPROM sab hauv uas tso cai rau koj khaws cov txiaj ntsig thiab teeb tsa thaum lub hwj chim tawm thiab rov kho lawv ntawm lub zog tom ntej. Qhov tsis paub zoo txog qhov tseeb yuav yog qhov nws tuaj yeem khaws tau tus nqi thaum rov pib dua txawm tias nyob hauv RAM - txawm li cas los xij qhov txiaj ntsig tau ploj thaum lub zog hloov pauv - nrog cov syntax:
unsigned ntev variable_that_is_preserved _attribute_ ((ntu (".noinit")));
Qhov no tso cai rau koj piv rau suav tus lej RESETs thiab los ntawm kev siv EEPROM kuj yog tus lej ntawm kev txhawb zog.
Rau cov lus qhia ntxaws txog yuav ua li cas nrog rau cov piv txwv piv txwv saib:
- Khaws Hloov Pauv Hloov Hauv Ram los ntawm Rov Pib dua:
- EEPROM Library:
Kauj Ruam 7: Nkag Mus Rau Lub Teeb Meem
Arduinos thiab lwm qhov AVR (zoo li ATtiny) muaj lub moos sab hauv tso cai rau koj los khiav lawv yam tsis siv lwm qhov siv lead ua oscillator. Tsis tas li ntawd nyob rau tib lub sijhawm lawv kuj tseem tuaj yeem txuas lub teeb liab no mus rau sab nraud los ntawm muab nws tso rau ntawm tus pin (piv txwv li PB4). Qhov tsis yooj yim ntawm no yog qhov koj yuav tsum tau hloov cov chips fuse cov khoom txhawm rau txhawm rau ua kom lub ntsej muag ntawd thiab hloov cov khoom siv fuse txhua lub sijhawm ua rau muaj kev pheej hmoo ntawm txhuam cov nti.
Koj yuav tsum pab kom CKOUT fuse thiab txoj hauv kev yooj yim tshaj plaws los ua qhov no yog ua raws cov lus qhia ntawm Yuav Ua Li Cas Hloov Fuse Cov Khoom ntawm AVR Atmega328p - 8bit Microcontroller Siv Arduino.
Rau cov lus qhia ntxaws txog yuav ua li cas nrog rau cov piv txwv piv txwv saib:
- Tuning ATtiny sab hauv oscillator:
- Yuav Ua Li Cas Hloov Fuse Cov Khoom ntawm AVR Atmega328p-8bit Microcontroller Siv Arduino:
Kauj Ruam 8: Port Internal Structure ntawm ATmega328P
Paub txog cov chaw nres nkoj sab hauv tus qauv ntawm ATmega328P tso cai rau peb mus dhau tus qauv siv txwv. Sib tham ntu ntu txog Capacitance Meter rau Range 20 pF txog 1000 nF kom paub meej ntxiv thiab cov txheej txheem ntawm sab hauv Circuit Court.
Qhov piv txwv yooj yim yog siv cov nyees khawm nrog cov chaw nres nkoj digital tsis xav tau ib tus neeg tawm tsam vim kev siv sab hauv rub tawm tus tiv thaiv raws li qhia los ntawm Kev Nkag Mus Los Pullup Serial Piv txwv lossis cov lus qhia Arduino Button Tsis Muaj Cov Tiv Thaiv.
Kev paub ntau ntxiv yog kev siv cov kev paub no raws li tau hais los ntsuas cov ntsuas hluav taws xob me me li 20 pF thiab ntxiv mus yam tsis muaj kev txuas ntxiv! Txhawm rau kom ua tiav qhov kev ua tau zoo, qhov piv txwv ua rau siv sab hauv/tawm tswv yim impedance, sab hauv rub tawm tus tiv thaiv thiab cov neeg tawm tsam. Piv rau Arduino CapacitanceMeter Tutorial uas tsis tuaj yeem qis dua li ob peb nF.
Kauj Ruam 9: On-Board (builtin) LED Raws Li Photodetector
Ntau ntawm Arduino cov laug cam muaj nyob rau hauv-board lossis builts LEDs uas tuaj yeem tswj tau los ntawm cov cai, piv txwv li. Uno lossis Nano cov laug cam ntawm tus pin 13. Los ntawm kev ntxiv ib qho xaim los ntawm tus pin no mus rau tus lej nkag sib piv (piv txwv li A0) peb kuj tseem tuaj yeem siv qhov LED no ua tus photodetector. Qhov no tuaj yeem siv rau hauv kev sib txawv ntawm ntau txoj hauv kev zoo li; siv los ntsuas qhov pom kev ib puag ncig, siv LED ua khawm, siv LED rau kev sib txuas lus sib tham (PJON AnalogSampling), thiab lwm yam.
Pom zoo:
Lub Hnub Qub Paub Paub Siv Lub Zeem Muag Computer (OpenCV): 11 Kauj Ruam (nrog Duab)
Star Recognition Siv Computer tsis pom kev (OpenCV): Qhov no instructable yuav piav txog rau koj yuav ua li cas rau tsim ib tug computer tsis pom kev pab cuam yuav tau qhia hais tias lub hnub qub qauv nyob rau hauv ib tug duab. Txoj hauv kev siv OpenCV (Qhib-Qhov Khoos Phis Tawj Lub Zeem Muag Lub Zeem Muag) lub tsev qiv ntawv los tsim cov txheej txheem ntawm HAAR cascades uas tuaj yeem
Cov Kws Paub Paub Qhov No!: 24 Kauj Ruam
Cov Kws Tshaj Lij Paub Qhov No!: Hnub no peb yuav tham txog "ESP32 automated ADC calibration". Tej zaum nws yuav zoo li yog ib qho kev qhia paub tab, tab sis kuv xav tias nws tseem ceeb heev rau koj kom paub me ntsis txog nws qhov no vim tias nws tsis yog hais txog ESP32, lossis txawm tias ADC calibr
Pc -Tsis pub twg paub - Arduino Automated Tsis pub twg paub rau koj lub khoos phis tawj: 5 Kauj Ruam (nrog Duab)
Pc -Tsis pub twg paub - Arduino Automated Tsis pub twg paub rau koj lub khoos phis tawj: Qhov teeb meem: Yog tias koj nyob nrog lwm tus neeg lossis muaj koj tus kheej lub chaw haujlwm koj yuav paub txog qhov teeb meem ntawm tib neeg tshwm nyob rau hauv koj chav thaum koj ua haujlwm ntawm cov ntaub ntawv tsis pub lwm tus paub lossis tsuas yog muaj qee qhov cov khoom coj txawv txawv qhib ntawm Lub Vev Xaib 2nd los ntawm h
Kev Paub Paub Lub Suab Qeb: 4 Kauj Ruam (nrog Duab)
Kev lees paub lub suab cais pawg: Rau chav kawm TfCD ntawm IPD Master ntawm TU Delft. Nov yog cov lus qhia yuav ua li cas thiaj ua lub suab lees paub lub kaw lus. Peb piav qhia qhov pib thiab yuav teeb tsa txoj haujlwm no li cas nrog kev pab ntawm Arduino thiab BitVoicer. Tom qab ua tiav cov hauv paus peb ntseeg
Tus Saib Xyuas V1.0 --- Txhim Kho Qhov Rooj Peephole Lub Koob Yees Duab Nrog Arduino (Kev Tshawb Fawb Kev Tshawb Fawb & Hluav Taws Xob Nta): 5 Kauj Ruam
Tus Saib Xyuas V1.0 ||| Txhim Kho Qhov Rooj Peephole Lub Koob Yees Duab Nrog Arduino (Kev Tshawb Fawb Tsab Ntawv Teev Tseg & Nta Hluav Taws Xob Nta): Kuv tau xaj lub koob yees duab peephole tab sis thaum kuv siv nws, pom tau tias tsis muaj qhov pib ua haujlwm (qhib los ntawm kev ntsuas pom). Tom qab ntawd kuv pib tshawb xyuas nws ua haujlwm li cas. Txhawm rau kaw cov vis dis aus, koj yuav tsum 1- khaws lub zog khawm yuav luag 2 vib nas this