This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MPU9250 with PWM logic

Hello friends,

i am new to embedded programming and trying to learn the new things in embedded for this i am doing 1 project in which i am using mpu9250 with pwm.

is it possible to glow 4 different LEDs using single pwm module having four channels and how it can work at same time for same duty cycle.

i am also using mpu9250 for accelerometer values, how can i change this like if change in x direction then only 1 LED will glow and if change in y direction then different LED will glow.

i was trying by manipulating examples but only one LED is glowing. how can i implement this with proper logic.

please help me with this

thank you

Parents
  • Hi, Rahul. Before answering, what version of SDK, IDE (Keil MDK 5, IAR EWARM 7, etc.), MCU (nRF52832-QFAA, nRF51822-QFAB) do you use?

    After you leave a comment about this, the answer can be more specific.

    These are the reasons why;

    • Nordic's latest SDK supports MPUxxxx libraries

    • the nRF52 MCU has a PWM driver whereas the nRF51 has to use a timer to create a software PWM

    Hope to see your comments.

    -Best Regards

Reply
  • Hi, Rahul. Before answering, what version of SDK, IDE (Keil MDK 5, IAR EWARM 7, etc.), MCU (nRF52832-QFAA, nRF51822-QFAB) do you use?

    After you leave a comment about this, the answer can be more specific.

    These are the reasons why;

    • Nordic's latest SDK supports MPUxxxx libraries

    • the nRF52 MCU has a PWM driver whereas the nRF51 has to use a timer to create a software PWM

    Hope to see your comments.

    -Best Regards

Children
No Data
Related