Cov txheej txheem:

Pob Zeb Lcd + Acceleration Gyroscope Sensor: 5 Kauj Ruam
Pob Zeb Lcd + Acceleration Gyroscope Sensor: 5 Kauj Ruam

Video: Pob Zeb Lcd + Acceleration Gyroscope Sensor: 5 Kauj Ruam

Video: Pob Zeb Lcd + Acceleration Gyroscope Sensor: 5 Kauj Ruam
Video: When you switch your petrol scooter with an electric one 😂 2024, Lub Xya hli ntuj
Anonim
Pob Zeb Lcd + Acceleration Gyroscope Sensor
Pob Zeb Lcd + Acceleration Gyroscope Sensor

Cov ntaub ntawv no yuav qhia koj yuav siv STM32 MCU +MPU6050 ntsuas lub ntsuas cua gyroscope sensor +lub pob zeb STVC070WT qhov chaw nres nkoj txuas rau DEMO.

STVC070WT yog qhov ua yeeb yaj kiab ntawm peb lub tuam txhab, nws txoj kev txhim kho yog qhov yooj yim, siv tau yooj yim, koj tuaj yeem mus rau lub vev xaib ntawm peb lub tuam txhab rau txhua qhov sib txawv ntawm cov duab:

Kauj Ruam 1: STONE TOOL

STONE TOOL
STONE TOOL
STONE TOOL
STONE TOOL
STONE TOOL
STONE TOOL
STONE TOOL
STONE TOOL

Nws tsim nyog sau cia tias peb lub vijtsam txhawb kev sib txuas lus chaw nres nkoj. Qee cov qauv txhawb TTL/RS232/RS485, tab sis qee qhov tsuas yog txhawb RS232. Yog tias koj lub MCU qhov chaw nres nkoj txuas yog TTL qib kev xav, koj yuav tsum ntxiv MAX3232 rau kev hloov pauv qib. Yog tias koj xav paub lub vijtsam twg txhawb nqa TTL thiab uas txhawb nqa TTL thiab RS232, koj tuaj yeem tshawb xyuas nws ntawm peb lub vev xaib:

www.stoneitech.com/product/industrial-type

Peb tuaj yeem pom tias "hom kev lag luam" thiab "hom hom" cov ntxaij vab tshaus feem ntau tsuas yog txhawb RS232 lossis RS485, thiab tsuas yog "hom neeg" cov ntxaij vab tshaus tuaj yeem txhawb nqa TTL/RS232/RS485. Yog koj xaiv "hom qib siab" lossis "yam khoom lag luam", tab sis koj SCM tsuas yog txhawb TTL, tom qab ntawd koj yuav tsum ua qhov hloov pauv hauv qab no:

Lwm cov ntaub ntawv tseem ceeb tuaj yeem pom lossis rub tawm ntawm lub vev xaib raug cai:

Peb cov kauj ruam ntawm STONE display screen development:

Tsim cov duab tso tawm thiab khawm cov laj thawj nrog STONE TOOL software thiab rub tawm cov ntawv tsim tawm mus rau lub teeb pom kev pom. Qhov MCU sib txuas lus nrog STONE zaub module los ntawm cov chaw nres nkoj.

Nrog cov ntaub ntawv tau txais hauv qib 2, MCU ua lwm yam haujlwm.

Kauj Ruam 2: Kev Taw Qhia

Kev Taw Qhia
Kev Taw Qhia
Kev Taw Qhia
Kev Taw Qhia
Kev Taw Qhia
Kev Taw Qhia
Kev Taw Qhia
Kev Taw Qhia

Kev qhia ua haujlwm

Qhov kuv yuav qhia koj hnub no yog Demo ntawm lub ntiajteb txawj nqus, gyroscope, Euler Angle, Kev ua haujlwm muaj raws li hauv qab no:

  • Peb lub thawv ntawv tso saib qhov nrawm nrawm
  • Peb lub npov ntawv tso saib qhov tseem ceeb gyroscope
  • Peb lub thawv ntawv tso saib Euler Angle qhov tseem ceeb
  • Ib lub npov ntawv qhia lub sijhawm hloov tshiab tam sim no
  • Ob lub khawm hloov lub sijhawm ua tshiab

Ua ntej, peb yuav tsum siv Photoshop los tsim ob lub interface UI, thiab cov txiaj ntsig tsim tau yog raws li hauv qab no:

Thawj daim duab yog lub vijtsam tseem ceeb, thiab daim duab thib ob yog khawm khawm. Tom qab ntawd peb qhib "TOOL2019" thiab tsim cov teebmeem hauv TOOL:

Ob lub hauv paus loj tau siv:

Numerical display unit

Nthuav ntxiv khawm

Tom qab tsim, qhov ua haujlwm simulation tuaj yeem pom hauv qhov simulation interface:

Kauj Ruam 3: MPU-6050

NPE-6050
NPE-6050
NPE-6050
NPE-6050
NPE-6050
NPE-6050

Mpu-6050 yog lub ntiaj teb thawj zaug ua ke 6-axis tsab ntawv tsa suab ua. Piv nrog rau ntau qhov kev daws teeb meem, nws tshem tawm qhov teeb meem ntawm qhov sib txawv ntawm kev sib xyaw ua ke gyroscope thiab lub sijhawm ua kom nrawm dua thiab txo ntau qhov chaw ntim khoom. Thaum txuas nrog peb-axis magnetometer sijhawm, mpu-6050 muab qhov ua tiav 9-axis suab fusion tso rau I2C lossis SPI cov chaw nres nkoj (SPI tsuas muaj nyob ntawm mpu-6000).

Kev paub ntau yam

Qhov ua kom pom qhov nrawm ntawm mpu-6050 yog ± 250, ± 500, ± 1000, thiab ± 2000 °/ SEC (DPS), uas tuaj yeem taug qab qhov ua tau nrawm thiab qeeb. Ntxiv mus, cov neeg siv tuaj yeem tsim kho thiab tswj xyuas qhov ntsuas ntau ntawm cov nrawm kom ± 2g, ± 4g ± 8g thiab ± 16g. Cov ntaub ntawv cov khoom tuaj yeem xa tawm ntawm IIC txog 400kHz lossis SPI txog 20MHz (SPI tsuas yog muaj ntawm mpu-6000). Mpu-6050 tuaj yeem ua haujlwm nyob hauv ntau qhov sib txawv, qhov hluav taws xob muab VDD yog 2.5v ± 5%, 3.0v ± 5% lossis 3.3v ± 5%, thiab lub zog hluav taws xob ntawm logic interface VDDIO yog 1.8v ± 5% (VDD tsuas yog siv rau MPU6000). Mpu-6050 lub ntim loj ntawm 4x4x0.9mm (QFN) yog kev hloov pauv hauv kev lag luam. Lwm qhov tshwj xeeb suav nrog cov ntsuas kub hauv tsev thiab oscillators uas sib txawv tsuas yog ± 1% hauv ib puag ncig kev ua haujlwm. Daim ntawv thov

Txawb kev paub ua si augmented kev muaj tiag, EIS: Electronic Image Stabilization (OIS: Optical Image Stabilization) cov neeg siv kev sib tham ntawm cov neeg taug kev taug kev nrog "xoom-kov" piav tes piav taw. Smartphone, ntsiav tshuaj, khoom siv game game, game console, 3D chaw taws teeb tswj, lub tshuab nqa tau yooj yim, UAV, tsheb sib npaug.

Yam ntxwv

Cov zis tawm ntawm 6-lossis 9-axis kev sib hloov matrix, quaternion, Euler Angle forma fusion calculus cov ntaub ntawv. 3-axis angular velocity sensor (gyroscope) nrog 131 LSBs/ °/ SEC rhiab heev thiab tag nrho daim phiaj pom ntau yam ntawm ± 250, ± 500, ± 1000 thiab ± 2000 °/ SEC. Nws tuaj yeem tswj tau los ntawm txoj haujlwm, thiab thaj tsam tswj hwm qhov program yog ± 2g, ± 4g, ± 8g, thiab ± 16g. Tshem tawm qhov rhiab heev ntawm tus tsuj roj thiab lub gyroscope axis thiab txo qhov cuam tshuam ntawm Cov Chaw thiab cov cuab yeej txav mus los. DMP (Digital Motion Processing) lub cav txo lub nra ntawm cov txheej txheem fusion nyuaj, ua kom pom kev sib xws, hnov lub cev, thiab lwm yam. Cov lus tsa suab ua cov ntaub ntawv txhawb nqa lub sijhawm ua haujlwm sib txawv thiab sib nqus sensor kho qhov ua haujlwm hauv, Linux, thiab Windows. Kev ntsuas kub nrog cov zis digital thiab cov tswv yim digital Sync tus pin txhawb cov duab hluav taws xob duab ntxoov ntxoo theem ruaj khov thev naus laus zis thiab GPS programmable tswj cuam tshuam kev txhawb nqa taw tes, co, zoom hauv thiab tawm ntawm daim duab, dov, nqis qis qis cuam tshuam, high-g cuam tshuam, xoom suab hnov, kov qhov hnov, co hnov qhov. Qhov muab qhov hluav taws xob ntawm VDD yog 2.5v ± 5%, 3.0v ± 5%thiab 3.3v ± 5%. Txoj haujlwm tam sim no ntawm VDDIO yog 1.8v ± 5%: 5mA; Standby tam sim no ntawm lub gyroscope: 5uA; Kev ua haujlwm nrawm tam sim no: 350uA, lub zog txuag hluav taws xob tam sim no: 20uA@10Hz I2C hauv hom nrawm txog 400kHz, lossis SPI tus tswv tsev sib txuas mus txog 20MHz lub tshuab hluav taws xob tsim hluav taws xob ntau ntawm qhov kub tsuas yog ± 1% zaus sib txawv. Qhov tsawg kawg nkaus thiab ntim tsawg tshaj plaws (4x4x0.9mm QFN) txiav rau cov khoom lag luam tau raug kuaj kom tau raws li RoHS thiab ib puag ncig tus qauv. Txog tus pin

SCL thiab SDA txuas rau IIC interface ntawm MCU, los ntawm qhov uas MCU tswj MPU6050. Kuj tseem muaj IIC interface, AXCL, thiab XDA, uas tuaj yeem siv los txuas cov khoom siv qhev sab nraud, xws li cov ntsuas hluav taws xob sib nqus, los tsim lub cuaj-axis sensor. VLOGIC yog qhov hluav taws xob ntawm IO chaw nres nkoj, thiab tus lej qis tshaj tuaj yeem ncav cuag 1,8v wb. Feem ntau, peb tuaj yeem siv VDD. AD0 ncaj qha yog tus pin chaw nyob tswj los ntawm IIC interface (txuas nrog MCU), uas tswj qhov kev xaj qis tshaj ntawm IIC chaw nyob. Yog GND txuas nrog, tom qab ntawv IIC chaw nyob ntawm MPU6050 yog 0X68 thiab 0X69 yog VDD txuas nrog. Nco tseg: qhov chaw nyob ntawm no tsis muaj qhov xaj qis tshaj ntawm kev xa cov ntaub ntawv (qhov kev xaj qis tshaj yog siv rau kev nyeem thiab sau ntawv). Hauv qab no yog mpu-6050 module kuv siv:

Kauj Ruam 4: STM32 Microcontroller

STM32 Microcontroller
STM32 Microcontroller

STM32F103RCT6 MCU muaj lub luag haujlwm muaj zog. Nov yog qhov tsis yooj yim ntawm MCU:

Qauv: STM32F10X

Kernel: ARM - COTEX32

Ceev: 72 MHZ

Kev sib txuas lus sib txuas: CAN, I2C, IrDA, LIN, SPI, UART/USART, USB

Cov khoom siv ib puag ncig: DMA, tswj lub cev PWM, PDR, POR, PVD, PWM, ntsuas kub, WDT

Lub peev xwm khaws cov phiaj xwm: 256KB

Hom kev cim xeeb: FLASH

RAM muaj peev xwm: 48K

Voltage - fais fab mov (Vcc/Vdd): 2 V ~ 3.6 V

Oscillator: sab hauv

Ua haujlwm kub: -40 ° C ~ 85 ° C

Pob/vaj tse: 64-lqfp

Hauv txoj haujlwm no, Kuv yuav siv UART, GPIO, Saib Tus Menyuam, thiab Timer ntawm STM32F103RCT6. Cov hauv qab no yog cov ntaub ntawv txhim kho cov cai rau txoj haujlwm. STM32 Siv Keil MDK kev txhim kho software, txog qhov uas koj yuav tsum paub, yog li kuv yuav tsis qhia qhov txheej txheem teeb tsa ntawm cov software no. STM32 tuaj yeem sim online hauv j-link lossis st-link thiab lwm yam cuab yeej simulation. Cov duab hauv qab no yog STM32 pawg thawj coj txhim kho kuv siv:

Ntxiv cov tsav tsheb STM32F103RCT6 muaj ntau qhov chaw nres nkoj. Hauv txoj haujlwm no, Kuv tau siv lub chaw nres nkoj txuas PA9/PA10, thiab tus lej chaw nres nkoj baud tus nqi tau teeb tsa ntawm 115200.

Thov hu rau peb yog tias koj xav tau tus lej ua tiav:

www.stoneitech.com/contact Peb yuav teb koj tsis pub dhau 12 teev.

Kauj Ruam 5: MPU-6050 Tsav Tsheb

MPU-6050 Tsav Tsheb
MPU-6050 Tsav Tsheb
MPU-6050 Tsav Tsheb
MPU-6050 Tsav Tsheb

Txoj cai no siv IIC hom kev sib txuas lus los nyeem cov ntaub ntawv ntawm MPU6050, thiab IIC kev sib txuas lus siv SIV software simulation IIC. Muaj ntau ntau cov lej cuam tshuam, yog li kuv yuav tsis muab lawv tso rau ntawm no.

Thov hu rau peb yog tias koj xav tau tus lej ua tiav: https://www.stoneitech.com/contact Peb yuav teb koj li ntawm 12 teev.

Thov saib cov duab hauv qab no rau kev ua haujlwm zoo:

Yog xav paub ntxiv txog qhov project nyem no

Pom zoo: