Cov txheej txheem:

Yooj Yim MPU6050 IMU + Arduino GYRO Bot: 4 Kauj Ruam
Yooj Yim MPU6050 IMU + Arduino GYRO Bot: 4 Kauj Ruam

Video: Yooj Yim MPU6050 IMU + Arduino GYRO Bot: 4 Kauj Ruam

Video: Yooj Yim MPU6050 IMU + Arduino GYRO Bot: 4 Kauj Ruam
Video: Thai Sounders - Yooj Yim (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yooj Yim MPU6050 IMU + Arduino GYRO Bot
Yooj Yim MPU6050 IMU + Arduino GYRO Bot

Siv Gyro los tswj kuv cov phiaj xwm yog qhov loj ntawm kuv daim ntawv teev npe tab sis sib nrug los ntawm kev tau txais IMU tus so yog nyuaj li cov rau tes. Qhov tsis muaj cov ntsiab lus muaj txiaj ntsig ntawm kev rho tawm suab yaw suab thiab cov txiaj ntsig yob ua rau kuv ntau dua ib hlis. Tom qab ntau lub vev xaib, suav tsis txheeb cov tsev qiv ntawv thiab teeb meem kuv tau kawm kom tau txais cov ntaub ntawv los ntawm gyro thiab siv nws hauv txoj haujlwm yooj yim uas cov pib tshiab tuaj yeem yooj yim ua thiab cawm lawv tus kheej ntau qhov teeb meem.

Yog li ntawm no yog cov lus qhia kom ua rau koj pib ntawm Accelerometer - Gyroscope sensor thiab thaum kawg ntawm nws koj yuav tuaj yeem tig koj lub neeg hlau raws qhov koj xav tau. (90 degrees, 45 degrees, 180 degrees…..yog li cas)

Khoom siv

Feem ntau ntawm cov tshuab hluav taws xob tuaj yeem yuav hauv koj lub khw hluav taws xob hauv online lossis hauv online

Nov yog lawv:

Bot Chassis

DIY 4WD Ob Chav-Deck Ntse Robot Tsheb Chassis Cov Khoom Siv Ceev Encoder RC Neeg Hlau los ntawm Cov Khoom Ua Si Yam Nyiam thiab Neeg Hlau ntawm banggood.comhttps://banggood.app.link/vpw7FlkjL1

Koj tseem tuaj yeem siv 2 lub log tsheb nrog lub log caster.

Arduino - Cov

Geekcreit® Arduino Compatible UNO R3 ATmega16U2 AVR USB Development Main Board Module Board Rau Arduino los ntawm Electronics ntawm banggood.comhttps://banggood.app.link/W4pYojtjL1

IMU - MPU6050 6DOF

6DOF MPU-6050 3 Axis Gyro Nrog Accelerometer Sensor Module Rau Arduino Module Board Rau Arduino los ntawm Electronics ntawm banggood.comhttps://banggood.app.link/qoNQdMxjL1

Dupont cov xov hlau

Txiv neej rau txiv neej

Poj niam rau txiv neej

L298N Tsav Tsav Tsheb

Geekcreit® L298N Dual H Choj Stepper Tsav Tsav Tsav Rau Arduino Module Board Rau Arduino los ntawm Electronics ntawm banggood.comhttps://banggood.app.link/kCmlV4UjL1

11.1V Li

ZOP Hwj chim 11.1V 2200MAH 3S 30C Lipo Battery XT60 Plug RC Qhov Chaw los ntawm Cov Khoom Ua Si Yam Nyiam thiab Neeg Hlau ntawm banggood.com

Haum Charger

Kauj Ruam 1: Kauj Ruam 1: Sib Sau Koj Lub Chassis

Kauj Ruam 1: Sib Sau Koj Lub Chassis
Kauj Ruam 1: Sib Sau Koj Lub Chassis
Kauj Ruam 1: Sib Sau Koj Lub Chassis
Kauj Ruam 1: Sib Sau Koj Lub Chassis

Sib sau ua ke koj Bot chassis lol.

Xa cov duab fritzing saum toj no tab sis yog tias koj tawm tsam, Kuv tsuas yog cov lus hauv qab no

Kauj Ruam 2: Txhim Kho MPU6050 Lub Tsev Qiv Ntawv

Txhim kho MPU6050 Lub Tsev Qiv Ntawv
Txhim kho MPU6050 Lub Tsev Qiv Ntawv

Nws yog ib qho tseem ceeb kom nco ntsoov tias yog tias koj muaj lub tsev qiv ntawv teeb tsa rau koj li MPU6050 ROV QAB nws lossis nws yuav chij muab tso ua ke yuam kev.

Hloov chaw siv qhov txuas no rub tawm lub tsev qiv ntawv thiab ntxiv nws siv suav nrog lub tsev qiv ntawv hauv qab Sketch.

https://github.com/jarzebski/Arduino-MPU6050

Kauj Ruam 3: Kev Sib Txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Ntawm kev txhim kho lub tsev qiv ntawv mus tom ntej thiab xaim lub cev.

Cov kev sib txuas rau tus tsav tsheb tau muab rau hauv tus lej nws tus kheej.

uas = 5;

ib = 6;

hauv 1 = 7;

hauv 2 = 4;

hauv 3 = 9;

hauv 4 = 8;

ntawm no yog nws lawm:)

Cov kev sib txuas ntawm Arduino thiab lub sensor yog:

VCC - +5V

GND - NCO

SDA - A4

TSO - A5

Nco tseg - Los ntawm no peb hu rau tus neeg hlau Barney.

Kauj ruam 4: Code

Code
Code

Luam cov cai no hauv qab no thiab muab nws tso rau hauv koj daim IDE thiab rub tawm.

github.com/imalwaysontheinternet/Simple-MPU6050-Arduino-GyroBot

Ob peb Ceev faj:

Tsis txhob ntsaws koj lub sensor rau hauv lub khob cij mov raws li cov xov hlau thiab cov khoom siv hluav taws xob tuaj yeem tsim suab nrov uas yuav cuam tshuam qhov raug ntawm koj li YAW PITCH ROLL qhov tseem ceeb

Thaum khiav tus bot tsuas yog teeb tsa bot rau hauv pem teb thiab nias rov pib dua yog li lub ntsuas ntsuas ntsuas ntsuas kom raug

Peb tsuas yog siv Yaw qhov tseem ceeb rau txoj haujlwm no yog li nco ntsoov tias thaum txhim kho koj lub sensor.

Siv daim kab xev ua ob sab ua ke txhawm rau txhawm rau lub ntsej muag ntawm koj tus bot.

Cov lus qhia no qhia koj kom siv lub gyroscope hauv kev tsim cov neeg hlau yooj yim thiab koj tuaj yeem sim nrog koj tus kheej lub tswv yim raws li koj tam sim no paub qhov kev siv.

Xav tias dawb nug dab tsi hauv cov lus.

Pom zoo: