Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam:
- Kauj Ruam 2: Txoj Cai
- Kauj Ruam 3: Cov txheej txheem:
- Kauj ruam 4: Schematic Daim duab
- Kauj ruam 5: Code
Video: Tsis Siv Neeg Lub Teeb Pom Kev Taug Qab: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
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: 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 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 lub cav servo thiab lub tshuab photoresistor tig, thiab thaum kawg nres ntawm qhov kev taw qhia ntawm lub teeb ci.
Kauj ruam 4: Schematic Daim duab
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:
AI Pab Qhov Muag (Lub Khoos Phis Tawj Pom Kev Pom Kom Nco Qab Cov Neeg Ua Haujlwm kom Tsom iav Kev Nyab Xeeb): 4 Cov Kauj Ruam
AI Pab Qhov Muag (Lub Koob Yees Duab Lub Koob Yees Duab kom ceeb toom rau cov neeg ua haujlwm kom hnav tsom iav kev nyab xeeb): Nov yog qhov ua piv txwv ntawm lub kaw lus. Thaum lub kaw lus pom tias tau khaws cov laum, nws yuav txiav tawm qhov ceeb toom tsom iav kev nyab xeeb. Txhawm rau sawv cev rau qhov muaj kev ceeb toom tsom iav kev nyab xeeb, ciam teb ntawm RGB duab yog xim liab hauv qhov kev nthuav qhia v
Tsis siv neeg lub tshuab nqus dej kom taug qab Kev Siv: 6 Cov Kauj Ruam
Tsis Siv Neeg Lub Tshuab Dej los Taug Kev Siv: Nyob Zoo! Ob peb lub hlis dhau los, Kuv nyob hauv kuv chav xav txog yam haujlwm twg uas kuv xav ua rau lub luag haujlwm hauv tsev kawm. Kuv xav ua qee yam uas haum kuv thiab uas yuav muaj txiaj ntsig rau kuv yav tom ntej. Dheev, kuv niam nkag mus rau hauv chav thiab
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Lub Teeb Pom Kev Pom Kev Pom Zoo/ Handheld Photograpy Teeb: 7 Cov Kauj Ruam (nrog Duab)
Intimate Video Light/ Handheld Photograpy Light: Kuv paub koj xav li cas. Los ntawm "intimate," Kuv txhais tau tias teeb pom kev nyob ze rau qhov xwm txheej teeb pom kev nyuaj-tsis tas yuav rau "xwm txheej zoo." (Txawm li cas los xij, nws tuaj yeem siv rau qhov ntawd ib yam nkaus …) Raws li New York City tus kws yees duab-lossis
Motion Controlled Outlet - Los ntawm Lub Teeb Pom Kev Pom Kev Pom Teeb: 6 Cov Kauj Ruam
Motion Controlled Outlet - Los ntawm Lub Teeb Pom Kev Pom Kev: Xav txog tias koj yog ib tus neeg dag-lossis-coj mus rau lub tsev txaus ntshai tshaj plaws ntawm qhov thaiv. Tom qab dhau mus tag nrho cov dab, dab thiab lub qhov ntxa koj thaum kawg tau mus rau txoj kev kawg. Koj tuaj yeem pom cov khoom qab zib hauv lub tais ua ntej ntawm koj! Tab sis tam sim ntawd gho