Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv thiab Qhov Yuav Tsum Tau:
- Kauj Ruam 2: Neopixel Rings
- Kauj Ruam 3: Kev Sib Txuas
- Kauj Ruam 4: Txoj Cai:
- Kauj Ruam 5: Muab Txhua Yam Ua Ke:
Video: Cov Tsom iav So So - ITTT: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
HKU Project - ITTT (Yog Qhov No Yog Li No) - Julia Berkouwer, 1B
Koj puas tau muaj kev ntxhov siab thiab koj tsuas yog tsis paub yuav ua li cas rau koj tus kheej, tom qab ntawd koj yuav tsum sim cov tsom iav so kom txaus! Koj muab lawv tso rau thiab kaw koj lub qhov muag, tom qab ntawd cov qauv ua pa yuav ua si. Los ntawm ua raws cov qauv kev ua pa no koj cov pa ua pa yuav nqes mus ua pa tawm thiab tawm 6 zaug hauv ib feeb. Ua qhov no nws tso tawm kev ntxhov siab txhua hnub.
Koj tseem tuaj yeem taug qab koj txoj kev ua pa hnyav los ntawm kev tig ntawm qhov hloov pauv, siv fsr-sensor.
Nrog rau qhov toturial no kuv yuav coj koj los ntawm kev tsim koj tus kheej tsom iav qhov kev so ib kauj ruam.
Kauj Ruam 1: Cov Ntaub Ntawv thiab Qhov Yuav Tsum Tau:
Cov ntaub ntawv:
1x arduino ib;
1xbreadboard lossis PCV;
3 x 10 k resistor
Cov xov hlau (nyiam dua cov xim sib txawv yog li nws yooj yim dua los qhia seb yam twg mus rau hauv av thiab uas yuav mus rau tus pin sib txawv, thiab lwm yam);
Qee cov cua sov ntsws ntsws;
2x NeoPixel Ring - 16 x 5050 RGB LED nrog Cov Tsav Tsheb Sib Koom;
1x hloov;
1 x FSR sensor;
1x Cov tsom iav SteamPunk (Koj tuaj yeem yuav cov no ntawm lub khw muag khoom noj khoom haus, lawv yooj yim siv vim tias lub nplhaib neopixel haum haum ntawm lub tsom iav. Koj ib txwm sim siv lwm lub iav lossis tsim koj tus kheej.);
1x qee yam ntawm cov (elastick) qhab los tso ncig koj lub hauv siab.
Cov cuab yeej: -Laptop
-Soldering hlau
-Arduino IDE software
Koj yuav pom ob lub nyees khawm thiab hloov ntawm kuv lub pvc, Kuv tsuas yog siv khawm sab laug los txuas nws mus rau qhov hloov pauv, Kuv tsis siv lub pob thib ob ntawm sab xis ntawm daim duab. Kuv tso cov nyees khawm ntawm pvc ua ntej paub tias kuv tsis xav tau lawv thiab kuv xav tau siv lub hloov pauv.
Hauv qab no koj yuav pom cov duab ntawm txhua yam kuv tau siv:
Kauj Ruam 2: Neopixel Rings
Cov xaim dawb txuas nrog hauv av nyob tom qab ntawm lub nplhaib neopixel.
Cov kab xev txiv kab ntxwv txuas nrog 5V.
Thiab cov xaim xim av tau txuas nrog cov ntaub ntawv nkag
Kauj Ruam 3: Kev Sib Txuas
Nov yog qhov kuv daim ntawv qhia zaub mov zoo li thaum ua qauv, koj tuaj yeem siv qhov no los ua kev siv.
Kuv kuj tau teeb tsa qhov thaiv ntawm qhov nws yuav tsum zoo li nrog tsuas yog ib lub pob.
Kauj Ruam 4: Txoj Cai:
Tej zaum nws tsis yog qhov ua tau zoo tshaj plaws, tab sis nws ua haujlwm rau kuv. Challange koj tus kheej thiab sim ua kom nws ua tau zoo dua; P
#suav nrog
// Koj
tus pin ntawm Arduino txuas nrog NeoPixels?
#define ua
PIN 6
// Koj
tus pin ntawm Arduino txuas nrog lub khawm
#define ua
BUTTON_PIN 9
// Yuav ua li cas
ntau NeoPixels tau txuas nrog Arduino?
#define ua
NUMPIXELS 16
// Thaum twg
peb teeb tsa NeoPixel lub tsev qiv ntawv, peb qhia nws pes tsawg tus pixels, thiab tus pin twg siv los xa cov cim.
// Nco tseg
tias rau cov kab ntawv NeoPixel qub koj yuav xav hloov qhov ntsuas thib peb-saib cov ntawv pov thawj
//
piv txwv rau cov ntaub ntawv ntau ntxiv ntawm qhov muaj peev xwm ua tau.
Adafruit_NeoPixel
pixels = Adafruit_NeoPixel (NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
koj paus
= 1; // ncua 2
int ib
ncua 2 = 80; // nqes mus thaum siv fsr
int ib
ncua 3 = 150; // ua thaum fsr raug siv
int ib
ncua = 4; // ncua 1
int ib
fsrPin = 0; // FSR thiab 10K pulldown txuas nrog a0
int ib
fsrReading;
tsis muaj dab tsi
teeb tsa () {
pinMode (BUTTON_PIN, INPUT);
Serial.begin (9600);
pixels.begin (); // Qhov no pib ua ntej
NeoPixel lub tsev qiv ntawv.
pixels.show ();
}
bool
khawm (int tus pin) {
rov digitalRead (tus pin);
}
tsis muaj dab tsi
loop () {// nyeem seb tus pin nkag yog qhov tseeb lossis tsis tseeb
fsrReading = analogRead (fsrPin);
Serial.print ("Analog nyeem ntawv =");
Serial.print (fsrReading);
yog tias (khawm khawm (BUTTON_PIN) == muaj tseeb) {
// lub teeb pom kev zoo thaum siv fsr sensor
yog (fsrReading> 50) {
pixels.setPixelColor (0, 1, 0, 1);
pixels.setPixelColor (15, 1, 0, 1);
pixels.setPixelColor (1, 1, 0, 1);
pixels.setPixelColor (14, 1, 0, 1);
pixels.show ();
ncua (ncua 3);
}
yog (fsrReading <52) {
pixels.setPixelColor (0, 0, 0, 0);
pixels.setPixelColor (15, 0, 0, 0);
pixels.setPixelColor (1, 0, 0, 0);
pixels.setPixelColor (14, 0, 0, 0);
pixels.show ();
ncua (ncua 2);
}
yog (fsrReading> 57) {
pixels.setPixelColor (2, 1, 0, 1);
pixels.setPixelColor (13, 1, 0, 1);
pixels.setPixelColor (3, 1, 0, 1);
pixels.setPixelColor (12, 1, 0, 1);
pixels.show ();
ncua (ncua 3);
}
yog (fsrReading <59) {
pixels.setPixelColor (2, 0, 0, 0);
pixels.setPixelColor (13, 0, 0, 0);
pixels.setPixelColor (3, 0, 0, 0);
pixels.setPixelColor (12, 0, 0, 0);
pixels.show ();
ncua (ncua 2);
}
yog (fsrReading> 65) {
pixels.setPixelColor (4, 1, 0, 1);
pixels.setPixelColor (11, 1, 0, 1);
pixels.setPixelColor (5, 1, 0, 1);
pixels.setPixelColor (10, 1, 0, 1);
pixels.show ();
ncua (ncua 3);
}
yog (fsrReading <67) {
pixels.setPixelColor (4, 0, 0, 0);
pixels.setPixelColor (11, 0, 0, 0);
pixels.setPixelColor (5, 0, 0, 0);
pixels.setPixelColor (10, 0, 0, 0);
pixels.show ();
ncua (40);
}
yog (fsrReading> 79) {
pixels.setPixelColor (6, 1, 0, 1);
pixels.setPixelColor (9, 1, 0, 1);
pixels.setPixelColor (7, 1, 0, 1);
pixels.setPixelColor (8, 1, 0, 1);
pixels.show ();
ncua (ncua 3);
}
yog (fsrReading <85) {
pixels.setPixelColor (6, 0, 0, 0);
pixels.setPixelColor (9, 0, 0, 0);
pixels.setPixelColor (7, 0, 0, 0);
pixels.setPixelColor (8, 0, 0, 0);
pixels.show ();
ncua (20);
}
}
lwm tus {
ua pa_blue (20, 100, 0, 1, 1); // qub
cov nyhuv
}
}
// Ncua
= ncua ntawm kev hloov pauv
// Cov kauj ruam
= tus naj npawb ntawm cov kauj ruam
// R, G, B = Tag nrho-ntawm RGB tus nqi
// De void ua pa yog voor het licht effect als de
fsrsensor niet gebruikt wordt. Deze void wordt hauv de void loop () weer aangeroepen.
tsis muaj dab tsi ua pa_blue (int ncua, int cov kauj ruam, byte R, byte G, peb B) {
int ib
tmpR, tmpG, tmpB; // Temp qhov tseem ceeb
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuvpixels.setPixelColor (0, tmpR, tmpG+1, tmpB);
pixels.setPixelColor (15, tmpR, tmpG+1, tmpB);
}
pixels.show ();
ncua (4);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuvpixels.setPixelColor (1, tmpR, tmpG+1, tmpB);pixels.setPixelColor (14, tmpR, tmpG+1, tmpB);
}
pixels.show ();
ncua (4);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuvpixels.setPixelColor (2, tmpR, tmpG+2, tmpB);pixels.setPixelColor (13, tmpR, tmpG+2, tmpB);
}
pixels.show ();
ncua (3.5);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuvpixels.setPixelColor (3, tmpR, tmpG+3, tmpB+5);pixels.setPixelColor (12, tmpR, tmpG+3, tmpB+5);
}
pixels.show ();
ncua (3);
}
rau (int i = 0;
kuvpixels.setPixelColor (0, 0, 0, 0);pixels.setPixelColor (15, 0, 0, 0);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuv
pixels.setPixelColor (4, tmpR, tmpG+3, tmpB+15);pixels.setPixelColor (11, tmpR, tmpG+3, tmpB+15);
}
pixels.show ();
ncua (3);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuvpixels.setPixelColor (5, tmpR, tmpG+4, tmpB+20);pixels.setPixelColor (10, tmpR, tmpG+4, tmpB+20);
}
pixels.show ();
ncua (2);
}
rau (int i = 0;
kuvpixels.setPixelColor (1, 0, 0, 0);
pixels.setPixelColor (14, 0, 0, 0);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuvpixels.setPixelColor (6, tmpR, tmpG+2, tmpB+40);
pixels.setPixelColor (9, tmpR, tmpG+2, tmpB+40);
}
pixels.show ();
ncua (ncua sij hawm);
}
rau (int i = 0;
kuvpixels.setPixelColor (2, 0, 0, 0);pixels.setPixelColor (13, 0, 0, 0);
}
// Fade tau
rau (int s = 1; s <= cov kauj ruam; s ++) {
tmpR = (R * tus) /
cov kauj ruam; // Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0;
kuv
pixels.setPixelColor (7, tmpR, tmpG, tmpB+44);pixels.setPixelColor (8, tmpR, tmpG, tmpB+44);
}
pixels.show ();
ncua (ncua sij hawm);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (7, tmpR, tmpG, tmpB);
pixels.setPixelColor (8, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (1);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (6, tmpR, tmpG, tmpB);
pixels.setPixelColor (9, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (1);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (5, tmpR, tmpG, tmpB);
pixels.setPixelColor (10, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (2);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (4, tmpR, tmpG, tmpB);
pixels.setPixelColor (11, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (2);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (3, tmpR, tmpG, tmpB);
pixels.setPixelColor (12, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (3);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; //
Muab tus lej ua ntej kom tsis txhob txiav qhov yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (2, tmpR, tmpG, tmpB);
pixels.setPixelColor (13, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (3);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (1, tmpR, tmpG, tmpB);
pixels.setPixelColor (14, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (4);
}
// Fade down
rau (int s = cov kauj ruam; s> 0; s--) {
tmpR = (R * s) / cov kauj ruam; // Muab thawj zaug kom tsis txhob raug txiav tawm
yuam kev
tmpG = (G * s) / cov kauj ruam;
tmpB = (B * s) / cov kauj ruam;
rau (int i = 0; i
pixels.setPixelColor (0, tmpR, tmpG, tmpB);
pixels.setPixelColor (15, tmpR, tmpG, tmpB);
}
pixels.show ();
ncua (4);
}
}
Kauj Ruam 5: Muab Txhua Yam Ua Ke:
Koj tuaj yeem tso tag nrho koj cov xov hlau txuas nrog koj lub rooj noj mov lossis PVC, uas yog ntawm koj (Kuv tau xaiv muab PVC tso rau sab saum toj ntawm arduino nws zoo thiab zoo li ntawd).
Cov kauj ruam tom ntej yog tso cov cua sov ua kom cov hlab nyob ib ncig ntawm txhua cov xov hlau kom nws tsis muaj kev cuam tshuam.
Yog tias koj xaiv siv PVC, koj yuav tsum tau muab txhua yam ua ke tam sim no.
Tom qab ntawd koj muab lub nplhaib neopixel tso rau sab nrauv ntawm lub tsom iav (xyuas kom tseeb tias cov leds tau ua raws ntawm lub hauv qab) thiab ua kom lawv ruaj khov nrog qee kab xev lossis kua nplaum (Kuv siv kab xev).
Koj tuaj yeem xaiv los lo lub fsr-sensor mus rau txoj hlua khi nrog qee daim kab xev lossis tsuas yog tso nws tawm ntawm nws tus kheej.
Txaus siab rau koj cov tsom iav:)
Pom zoo:
Tsom iav tsom iav Siv Daim Kab Xev: 5 Kauj Ruam (nrog Duab)
Tsom iav tsom iav Siv Daim Kab Xev: Muaj qee yam uas ua rau muaj kev ntxhov siab ntau dua li siv hmo ntuj thaij duab saum ntuj nrog koj lub tsom iav raj, tsuas yog txhawm rau pom tias txhua yam ntawm koj cov duab tsuas yog tsom me ntsis … nyuaj
Tsom iav tsom iav: 14 Kauj Ruam (nrog Duab)
Cov tsom iav Radar: Lub caij ntuj sov dhau los thaum caij so hauv Maine, peb tau ntsib lwm khub niam txiv: Mike thiab Linda. Linda tau dig muag thiab tau dig muag txij thaum yug los (kuv xav) lawv thawj tus menyuam. Lawv tau zoo heev thiab peb tau luag ntau ua ke. Tom qab peb los txog tsev, kuv ua tsis tau
Tsom iav tsom iav Scrappy: 4 Kauj Ruam
Scrappy Camera Sunglasses: Nov yog txoj hauv kev yooj yim los tswj lub koob yees duab lub koob yees duab nrog tsuas yog qee qhov hloov pauv. Cov koob yees duab qub tuaj yeem pom ntawm cov khw muag khoom thiab E-bay pheej yig heev. Kuv tau them 10 xees rau thawj zaug thiab 2 duas las rau thib ob. Txhua lub koob yees duab ntawm hom no rub tawm lo ntsiab muag thaum koj qhib nws, e
Nunchuck Tswj tsom tsom tsom iav qhov muag: 6 Cov kauj ruam (nrog Duab)
Nunchuck Controlled Telescope Focuser: Yog tias koj tau sim siv koj lub tsom iav raj ntawm qhov siab loj (> 150x) koj yuav tau pom tias yuav kho tus kheej li cas rau koj lub tsom iav tsom iav tuaj yeem ua rau mob tiag tiag hauv caj dab
Cov Khaub Ncaws Crystal Glass rau Amblyopia (Hloov Kev Ua Haujlwm Qhov Tsom iav) [ATtiny13]: 10 Cov Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Crystal Glass rau Amblyopia (Hloov Qhov Kev Kawm Ua Haujlwm Qhov Tsom iav) [ATtiny13]: Amblyopia (tub nkeeg qhov muag), qhov tsis pom kev uas cuam tshuam kwv yees li 3% ntawm cov pej xeem, feem ntau kho los ntawm qhov muag yooj yim lossis atropine poob. Hmoov tsis zoo, cov txheej txheem kev kho mob suav nrog lub qhov muag muaj zog ntev, tsis cuam tshuam lub sijhawm, tsis muaj