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
  • it is defined in another file and it is working fine

    but how can i merge pwm and mpu so that it can work together.

    what i am trying to do is i want to control led brightness as per particular value of accelerometer and for particular range of accelerometer value one led should glow , for different range different led should glow. like 4 different leds for different ranges

Reply
  • it is defined in another file and it is working fine

    but how can i merge pwm and mpu so that it can work together.

    what i am trying to do is i want to control led brightness as per particular value of accelerometer and for particular range of accelerometer value one led should glow , for different range different led should glow. like 4 different leds for different ranges

Children
No Data
Related