Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Kauj Ruam Ib: Hlau Gyro mus rau Arduino
- Kauj Ruam 2: Kauj Ruam 2: Txuas cov LEDs
- Kauj ruam 3: Coding
- Kauj Ruam 4: Sib dhos thiab Tsim Kho
- Kauj ruam 5: Koj tau ua nws
Video: Accelerometer Sensor Nrog Arduino: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Kuv muaj lub tswv yim rau lub kaus mom hlau hluav taws xob uas yuav ua rau Xus Hnav khaub ncaws zoo heev. yam tsis nkag mus ntau dhau nws yuav cuam tshuam nrog teeb pom kev sib txawv nyob ntawm qhov kev taw qhia lub ntsej muag tig, yog li thaum kuv saib, lub kaus mom hlau teeb, tab sis nyob nruab nrab yog tias kuv tsis txav mus.
Khoom siv
(1) Arduino Uno thiab USB txuas qaum (1) L3G4200 triple axis gyro (muaj nyob ntawm MPJA.com, lossis txhua qhov chaw cov khoom siv no tuaj yeem muag tau)
ib txhais tes puv ntawm txiv neej/poj niam xov hlau (2+) LED Teeb thiab qhov tsim nyog tiv taus
(1) Breadboard (Qhov me me me me yog qhov zoo)
Qee hom tsev nyob rau txhua yam khoom siv hluav taws xob. Txog qhov piv txwv no, Kuv tau siv lub thawv ntawv zoo nkauj, tab sis koj tuaj yeem siv … lus txhua yam uas haum.
Ua siab ntev.
Kauj Ruam 1: Kauj Ruam Ib: Hlau Gyro mus rau Arduino
Ok yog li muaj qee qhov xov hlau uas tuaj yeem txuas ncaj qha rau Arduino, tab sis muaj ob ntu uas xav tau txuas nrog rau 3.3v chaw nres nkoj, yog li peb yuav tsum tau siv lub khob cij rau qhov ntawd. Mus tom ntej thiab txuas cov xaim liab los ntawm 3.3v chaw nres nkoj mus rau (+) kab ntawm lub khob cij. Tom qab ntawd txuas ib txoj hlua txuas txuas VCC tus pin ntawm Gyro mus rau (+) ntawm lub khob cij. Rov ua cov kauj ruam no nrog SDO tus pin ntawm Gyro. tam sim no coj tus Hlau Dub thiab txuas tus GND Pin rau (-) kab ntawm lub khob cij, tom qab ntawd txuas ib lub xaim los ntawm GND Arduino Chaw nres nkoj mus rau (-) kab ntawm lub khob cij. uas txog nws ua rau lub zog tam sim no rau cov ntaub ntawv xov hlau xav tau kom ua tiav Gyro. Hauv qab GRN ntawm lub gyro yog SDA tus pin, txuas qhov ntawd rau A4 chaw nres nkoj ntawm Arduino. Hauv qab no yog SCL tus pin, txuas qhov ntawd mus rau A5 chaw nres nkoj ntawm Arduino. Koj Gyro yog tam sim no ntsaws rau hauv.
Kauj Ruam 2: Kauj Ruam 2: Txuas cov LEDs
Ua li ntawd rau kuv txoj haujlwm, Kuv muaj ob lub LEDs uas pom nyob ntawm seb lub thawv txav mus li cas. cia mus tom ntej thiab txuas cov ntawd. Qhov no yog qhov yooj yim, txuas tus tiv thaiv zoo coj mus rau tus lej tus lej ntawm koj tus pin ntawm kev xaiv (Kuv tau xaiv 8 thiab 9 yam tsis raug cai). xaim cov ntawd rau ntawm lub khob cij, tom qab ntawv txuas ib qho LED thiab xa cov hmoov txhuas tsis zoo ntawm LED mus rau (-) ntawm lub khob cij. Qhov no yuav tso cai rau koj kom muaj lub teeb pom kev sib txawv ntawm ob lub LEDs raws li qhov ntsuas koj tau teev tseg nrog nws Arduino.
Kauj ruam 3: Coding
Ok ntawm no yog qhov uas lom zem. thiab los ntawm kev lom zem kuv txhais tau tias … um. zoo. koj puas nyiam nws lossis koj tsis nyiam. ob txoj kev ntawm no peb mus! Koj yuav tsum tau sau tus lej Gyro, uas kuv tsis paub yuav ua li cas. Tab sis, internet ua. Rau kuv qhov haujlwm, kuv tau qiv cov cai muab los ntawm jtbourke hauv Arduino lub rooj sab laj (https://forum.arduino.cc/index.php?topic=147351.0) koj tuaj yeem ua tau zoo nkauj thiab luam qhov no thiab siv nws ua lub hauv paus rau koj txoj haujlwm Los ntawm no, koj yuav tsum ntxiv ob peb kab ntawm cov cai kom haum rau koj lub hom phiaj. rau ib qho, koj xav tsim qee qhov kev hloov pauv thoob ntiaj teb, ib qho rau txhua LED koj xav tau lub teeb. Cov duab no twb muaj qhov hloov pauv rau X, Y, thiab Z ua haujlwm. koj yuav tsum tau ntxiv rau nws uas yog ib feem ntawm cov cai, Kuv pom zoo IF THEN nqe lus uas saib rau thaum koj qhov kev nrawm mus txog qhov chaw pib. qhov no yog kev sim ntau thiab ua yuam kev, yog li mus tom ntej thiab ua koj tus kheej qhaub cij thiab muab tso rau qee qhov lofi hip hop.
Kauj Ruam 4: Sib dhos thiab Tsim Kho
Nrog koj zoo siab! yog tias koj tau hla dhau cov kauj ruam kawg uas txhais tau tias koj yuav luag tiav. Tam sim no txhua yam koj yuav tsum ua yog muab txhua ntu hauv lub thawv. [Tseem ceeb] ua kom ntseeg tau tias txhua yam tseem nyob ntsaws rau hauv, ua kom ntseeg tau tias lub gyro tau nyob rau pem hauv ntej thiab nruab nrab ntawm lub cuab yeej lossis koj yuav tau nyeem tsis raug, thiab nco ntsoov tias tsis muaj dab tsi cuam tshuam rau pem hauv ntej ntawm lub gyro, vim nws yuav luv ntaus ntawv thiab koj yuav tau rov pib dua Arduino. tom qab ntawd, koj zoo nkauj heev mus.
Kauj ruam 5: Koj tau ua nws
Ua haujlwm zoo. koj ua tiav. tam sim no txaus siab rau koj lub thawv uas teeb thaum nws txav mus!
Pom zoo:
DIY Ua pa Sensor Nrog Arduino (Kev Coj Ua Knitted Stretch Sensor): 7 Cov Kauj Ruam (nrog Duab)
DIY Breath Sensor Nrog Arduino (Conductive Knitted Stretch Sensor): Qhov DIY sensor no yuav ua daim ntawv ntawm kev coj ua knitted stretch sensor. Nws yuav qhwv ncig koj lub hauv siab/plab, thiab thaum koj lub hauv siab/lub plab nthuav dav thiab sib cog lus yog li yuav lub ntsuas, thiab yog li cov ntaub ntawv nkag mus uas tau pub rau Arduino. Yog li
SENSOR SUHU DENGAN LCD DAN LED (Ua Kub Sensor Nrog LCD thiab LED): 6 Cov Kauj Ruam (nrog Duab)
SENSOR SUHU DENGAN LCD DAN LED (Ua Kub Sensor Nrog LCD thiab LED): hai, hais Devi Rivaldi mahasiswa UNIVERSITAS NUSA PUTRA dari Indonesia, di sini saya akan berbagi cara membuat sensor suhu menggunakan Arduino dengan Output ke LCD dan LED. Kuv tsis xav kom muaj kev xav hais tias xa mus, muaj cov sensor zoo li no thiab
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Cev Los Ntawm Accelerometer thiab Gyroscope MPU6050 I2C Sensor: 8 Kauj Ruam (nrog Duab)
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Accelerometer thiab Gyroscope MPU6050 I2C Sensor: Ib pliag dhau los kuv tau tshaj tawm cov lus qhia yuav ua li cas koj tuaj yeem txuas MPU9250 Accelerometer, Gyroscope thiab Compass Sensor rau Arduino Nano thiab teeb tsa nws nrog Visuino kom xa cov ntaub ntawv pob thiab tso saib nws ntawm Scope thiab Visual Instruments.The Accelerometer xa X, Y
Arduino Nano: Accelerometer Gyroscope Compass MPU9250 I2C Sensor Nrog Visuino: 11 Kauj Ruam
Arduino Nano: Accelerometer Gyroscope Compass MPU9250 I2C Sensor Nrog Visuino: MPU9250 yog ib qho ntawm kev ua tau zoo tshaj plaws ua ke Accelerometer, Gyroscope thiab Compass cov ntsuas me me tam sim no muaj. Lawv muaj ntau qhov ua tau zoo tshaj plaws, suav nrog kev lim qis dhau, tshawb pom lub suab, thiab txawm tias cov txheej txheem tshwj xeeb tuaj yeem ua haujlwm
Accelerometer-logger Nrog SD-daim npav nco: 6 Cov Kauj Ruam (nrog Duab)
Accelerometer-logger Nrog SD-daim npav nco: Chav logger rau ntsuas cov zog ntawm cov menyuam coaster thiab txuag lawv rau SD-daim ntawv.Nws tseem tuaj yeem hloov kho software hauv chav tsev yog li nws tuaj yeem ntsuas lwm yam yog tias nws tuaj yeem txuas nrog i2c-bus.Top Thrill Dragster