Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Txoj Cai
- Kauj Ruam 3: Daim duab qhia chaw
- Kauj ruam 4: Cov txheej txheem
- Kauj ruam 5: Code
Video: AUTOMATIC LIGHT SOURCE TRACKING NROG ARDUINO UNO R3: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv zaj lus qhia no, peb yuav siv lub tshuab ua haujlwm servo, lub tshuab photoresistor thiab rub tawm tus neeg tawm tsam kom sib sau ua ke kom pom lub teeb pom kev zoo.
Kauj Ruam 1: Cheeb Tsam
- Arduino Uno board * 1
- USB cable * 1
- Servo tsav * 1
- photoresistor * 1
- Resistor (10k) * 1
- Daim phiaj * 1
- Jumper xov hlau
Kauj Ruam 2: Txoj Cai
Lub tshuab servo thiab lub tshuab ntsuas hluav taws xob luam theej duab thiab nrhiav lub teeb ci hauv 180 degree thiab sau qhov chaw ntawm lub teeb ci. Tom qab ua tiav kev tshuaj xyuas, lub tshuab servo thiab lub photoresistor nres ntawm qhov kev taw qhia ntawm lub teeb ci.
Kauj Ruam 3: Daim duab qhia chaw
Kauj ruam 4: Cov txheej txheem
Kauj ruam 1:
Tsim lub voj voog.
Kauj ruam 2:
Rub tawm cov cai los ntawm
Kauj ruam 3:
Tshaj tawm cov duab kos rau Arduino Uno board
Nyem rau Upload icon txhawm rau upload cov cai rau pawg tswj hwm.
Yog tias "Ua tiav uploading" tshwm nyob rau hauv qab ntawm lub qhov rais, nws txhais tau hais tias daim duab tau ua tiav tiav.
Tam sim no, yog tias koj siv lub teeb nyem kom ci lub photoresistor, koj yuav pom servo motor thiab photoresistor tig, thiab thaum kawg nres ntawm qhov kev taw qhia ntawm lub teeb ci
Kauj ruam 5: Code
/********************************************************************
* npe:
Tau Taug Qab Qhov Teeb Pom Kev
* muaj nuj nqi
: yog tias koj siv lub teeb nyem kom ci rau lub photoresistor, * koj yuav pom
servo motor thiab photoresistor tig, * thiab thaum kawg
nres ntawm qhov kev taw qhia ntawm lub teeb ci.
***********************************************************************
/Email: [email protected]
// Lub Vev Xaib: www.primerobotics.in
#suav nrog
const int photocellPin = A0;
/************************************************/
Servo myservo; // tsim cov khoom siv servo los tswj lub servo
int outputValue = 0;
int kaum = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180};
int maxVal = 0;
int maxPos = 0;
/*************************************************/
void teeb tsa ()
{
Serial.begin (9600);
myservo.attach (9); // txuas cov servo ntawm tus pin 9 rau cov khoom siv servo
}
/*************************************************/
void lub voj ()
{
rau (int i = 0;
kuv <19; kuv ++)
{
myservo.write (lub kaum ); // sau lub kaum rau servo
Cov txiaj ntsig
= analogRead (photocellPin); // nyeem tus nqi ntawm A0
Serial.println (outputValue); // luam nws
yog (outputValue> maxVal) // yog tias tus nqi tam sim no ntawm A0 ntau dua li yav dhau los
{
maxVal = outputValue; // sau tus nqi
maxPos
= kuv; //
}
ncua (200);
}
myservo.write (kaum sab xis [maxPos]); // sau lub kaum sab xis rau servo uas A0 muaj tus nqi ntau tshaj
thaum (1);
}
Pom zoo:
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card - DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: 5 Cov Kauj Ruam
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card | DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: Taw qhia: nyob zoo, qhov no yog Liono Maker, ntawm no yog YouTube txuas. Peb tab tom tsim txoj haujlwm muaj tswv yim nrog Arduino thiab ua haujlwm ntawm cov kab ke. Cov ntaub ntawv-Logger: Cov ntaub ntawv logger (tseem cov ntaub ntawv-logger lossis cov ntaub ntawv kaw) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm
ATtiny85 Wearable Vibrating Activity Tracking Watch & Programming ATtiny85 Nrog Arduino Uno: 4 Cov Kauj Ruam (nrog Duab)
ATtiny85 Wearable Vibrating Activity Tracking Watch & Programming ATtiny85 Nrog Arduino Uno: Yuav ua li cas thiaj li hnav tau cov khoom ua haujlwm taug qab saib? Nov yog lub cuab yeej siv tau tsim los ua kom muaj kev co thaum nws pom qhov tsis khov. Koj puas siv sijhawm ntau hauv computer zoo li kuv? Puas yog koj zaum ntau teev yam tsis paub nws? Tom qab ntawd cov cuab yeej no yog f
DIY Ambilight Nrog Raspberry Pi thiab Tsis Muaj Arduino! Ua haujlwm ntawm Ib qho HDMI Source: 17 Cov Kauj Ruam (nrog Duab)
DIY Ambilight Nrog Raspberry Pi thiab Tsis Muaj Arduino! Ua haujlwm ntawm Txhua Qhov Chaw HDMI: Kuv muaj qhov nkag siab yooj yim ntawm cov khoom siv hluav taws xob, uas yog vim li cas kuv thiaj txaus siab heev ntawm kuv li DIY Ambilight teeb nyob rau hauv cov ntoo ntoo yooj yim nrog lub peev xwm tig lub teeb rau thiab tawm raws li thiab thaum kuv thov. Rau cov uas tsis paub tias Ambilight yog dab tsi;
MOTORIZED CAMERA SLIDER Nrog TRACKING SYSTEM (3D Luam Tawm): 7 Cov Kauj Ruam (nrog Duab)
MOTORIZED CAMERA SLIDER Nrog TRACKING SYSTEM (3D Luam Tawm): Yeej, tus neeg hlau no yuav txav lub koob yees duab/smartphone ntawm txoj kev tsheb nqaj hlau thiab "taug qab" cov khoom. Lub hom phiaj qhov chaw nyob twb tau paub los ntawm tus neeg hlau. Cov lej tom qab cov kab ke taug qab no yooj yim heev. Peb tau tsim kev sim sim ntawm cov txheej txheem taug qab
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw