Author Topic: mpu6050 interrupt help ?  (Read 4131 times)

0 Members and 1 Guest are viewing this topic.

Offline koray692Topic starter

  • Contributor
  • Posts: 13
mpu6050 interrupt help ?
« on: February 19, 2016, 02:39:47 pm »
hello friend ..I want to take data in period 10 ms from the  sensor I check the register map I didnt understand..Sensor has the pin "int" how can I use this pin...which register arrange I am some confused...
« Last Edit: February 19, 2016, 03:08:12 pm by koray692 »
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: mpu6050 interrupt help ?
« Reply #1 on: February 19, 2016, 03:03:53 pm »
What?
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline koray692Topic starter

  • Contributor
  • Posts: 13
Re: mpu6050 interrupt help ?
« Reply #2 on: February 19, 2016, 03:09:12 pm »
I arrange it :)  it put "?" insted of "I"
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: mpu6050 interrupt help ?
« Reply #3 on: February 19, 2016, 03:16:57 pm »
Still doesn't make sense.
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline koray692Topic starter

  • Contributor
  • Posts: 13
Re: mpu6050 interrupt help ?
« Reply #4 on: February 19, 2016, 03:29:57 pm »
how can I get sample from the mpu6050 sensor at every 10 ms ?(by using interrupt)
 

Offline ChristofferB

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: dk
  • Chemistry phd student!
    • My channel:
Re: mpu6050 interrupt help ?
« Reply #5 on: February 20, 2016, 12:56:04 pm »
That sounds kinda contradictory. Getting data every time interval sounds like polling, and getting data via interrupt is based on an event. Though I haven't worked with that part, so I could be wrong.

--Christoffer
--Christoffer //IG:Chromatogiraffery
Check out my scientific instruments diy (GC, HPLC, NMR, etc) Channel: https://www.youtube.com/channel/UCZ8l6SdZuRuoSdze1dIpzAQ
 

Online mikerj

  • Super Contributor
  • ***
  • Posts: 3468
  • Country: gb
Re: mpu6050 interrupt help ?
« Reply #6 on: February 20, 2016, 06:20:11 pm »
That sounds kinda contradictory. Getting data every time interval sounds like polling, and getting data via interrupt is based on an event. Though I haven't worked with that part, so I could be wrong.

--Christoffer

It's quite possible to poll a device using a timer interrupt.
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 628
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: mpu6050 interrupt help ?
« Reply #7 on: February 20, 2016, 09:26:37 pm »
The MPU6050 outputs data at 1kHz (when the digital low pass filter is enabled). To make it send data slower you write a division ratio to the SMPLRT_DIV register.

Sample Rate = Gyroscope Output Rate / (1 + SMPLRT_DIV)

To enable the Data Ready interrupt you must set bit 0 (DATA_RDY_EN) in the INT_ENABLE register. You may also need to modify other bits in this register, depending on what type of interrupt signal you want.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf