Cov txheej txheem:
Video: Pwm2pwm: 4 Steps
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hloov cov tswv yim PWM teeb liab mus rau lwm qhov PWM teeb liab tso tawm nrog Encoder.
Txoj haujlwm no yug thaum kuv yuav kuv thawj lub tshuab txiav laser. Nws tsis yooj yim los teeb lub PWM zog, thawj zaug, raws li cov khoom koj xav txiav. Yog li kuv xav tsim lub cuab yeej me me los hloov lub zog thaum ua tiav.
Kauj Ruam 1: Sau Cov Npe
Rau qhov haujlwm no koj xav tau:
- 1 x Oled zaub, hauv kuv rooj plaub I2C
- 1 x Arduino, hauv kuv rooj plaub arduino mini pro rau qhov me me.
- 1 x Trimmer nrog khawm.
- 3 x 10k resistor, 2 rau rub-up ntawm lub trimmer thiab ib qho rau rub tawm.
Hauv daim duab ntawm cov kauj ruam no koj pom lwm tus Arduino mini pro, hu ua laser, vim tias kuv tau sim qhov kev txawj ntawm lub laser tswj (pwm hauv teeb liab) nrog Arduino no.
Kauj ruam 2: Kev sib txuas
Nco ntsoov txuas 3 tus tiv thaiv, rub tawm thiab rub tawm, hauv cov txheej txheem no.
Thawj thawj zaug, kuv pom zoo kom koj txuas qhov thib ob Arduino (hu ua laser hauv qib ua ntej) los ntsuas yog tias cov cai thiab kev sib txuas ua haujlwm ib yam nkaus.
Yog tias koj paub ntau dua nrog cov duab pom, qhib pwmTOpwm.svg.
Kauj ruam 3: Arduino Sketch
Koj tuaj yeem luam kuv cov cai yooj yim los ntawm GitHub nplooj ntawv:
Cov txuj ci tseem ceeb ntawm txoj cai no yog kev koom ua ke ntawm "pulseIn" hais kom ua, cov ntaub ntawv ntxiv:
Thaum koj sim ntsuas PWM teeb liab nkag mus rau Microcontroller koj yuav tsum suav ntev npaum li cas lub teeb liab nyob (lossis qis) nyob rau lub sijhawm. Koj tuaj yeem siv qhov hais kom ua "pulseIn".
Yog tias koj sim ua lub ntsiab lus mem tesIn koj tuaj yeem pom qee yam tsis ruaj khov.
Txhawm rau kho qhov teeb meem no peb yuav tsum siv lub lim nruab nrab, hauv kuv qhov xwm txheej nthuav dav txav nruab nrab (EMA).
Koj tuaj yeem sim qhov txias thiab lim tau yooj yim nrog qhov piv txwv no:
Tsis txhob txhawj xeeb, lub lim dej twb tau koom ua ke hauv cov cai: p.
Yog tias koj siv Arduino thib ob (laser) koj tuaj yeem tso rau hauv qhov arduino qhov piv txwv no:
Kauj Ruam 4: PCB
Kuv xav sau ib lub PCB rau txoj haujlwm no, nrog KiCad, thiab qhia tawm.
Yog tias kuv hloov pauv rau PCB kuv yuav qhia lawv ntawm GitHub nplooj ntawv.
Pom zoo:
Game Game in Flick in 5 Steps: 5 Kauj Ruam
Kev Tsim Game hauv Flick hauv 5 Kauj Ruam: Flick yog txoj hauv kev yooj yim heev ntawm kev ua si, tshwj xeeb yog qee yam xws li kev sib dhos, kev pom tshiab, lossis kev ua si lom zem
Deej Box - 5 Sliders: 8 Steps (with Pictures)
Deej Box - 5 Sliders: Nov yog kuv coj ntawm Deej qhov haujlwm uas tso cai rau koj los tswj hwm PC program txhua ntu ntawm tus kheej thiab tau teeb tsa kom haum rau tus neeg xav tau yooj yim heev. Kuv tus qauv nta 5 sliders nrog sib nqus, cov ntawv pauv tau los txheeb xyuas txhua tus swb. Nws yog con
Tap Tap Rainbow - a 2 Player Quick Reaction Game: 4 Steps (with Pictures)
Tap Tap Rainbow - a 2 Player Quick Reaction Game: 2 lub lis piam dhau los kuv tus ntxhais muaj lub tswv yim ntse los ua qhov kev ua si nrawm nrog cov xim zaj sawv (nws yog tus kws tshaj lij zaj sawv: D). Kuv tam sim nyiam lub tswv yim thiab peb pib xav txog yuav ua li cas peb tuaj yeem ua nws mus rau hauv kev ua si tiag. Koj muaj zaj sawv hauv
DIY Vanity Mirror in Easy Steps (siv LED Sawb Teeb): 4 Cov Kauj Ruam
DIY Vanity Mirror hauv Cov Kauj Ruam Yooj Yim (siv LED Sawb Teeb): Hauv kab ntawv no, Kuv tau ua DIY Vanity Mirror nrog kev pab los ntawm LED strips. Nws txias heev thiab koj yuav tsum sim lawv ib yam
UAV: 8 Steps
UAV: Nyob zoo, Feem coob ntawm cov neeg paub UAV (lub tsheb tsis siv lub dav hlau) nws tseem hu ua DRONE.background zaj dab neeg: Kuv pom drone thawj zaug thaum kuv muaj 14 xyoos. Hnub ntawd pib kuv sim bluid drone tab sis kuv poob ntau sijhawm vim kuv