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. Hmm, I see. Then how about uploading your Keil project in your original question or provide us a remote repository, such as GitHub or Bitbucket, link to see your code?

    Without seeing your code, I think it will be hard to go further. Although I don't have an MPU sensor right now, some Nordic devteam members or community members have it to test your code. I will download your code on the PCA10040.

    By the way, are you planning to use SoftDevice on your project in the future or are you using the SoftDevice currently?

    -Best Regards

Reply
  • Hi, Rahul. Hmm, I see. Then how about uploading your Keil project in your original question or provide us a remote repository, such as GitHub or Bitbucket, link to see your code?

    Without seeing your code, I think it will be hard to go further. Although I don't have an MPU sensor right now, some Nordic devteam members or community members have it to test your code. I will download your code on the PCA10040.

    By the way, are you planning to use SoftDevice on your project in the future or are you using the SoftDevice currently?

    -Best Regards

Children
No Data
Related