0

So currently, I have already developed a uwp application in Visual C++. I ordered a raspberry pi 3 model b from Amazon and its expected to arrive on Wednesday. In my program, I have a button, when I click that button, I need to move a servo 90 degrees. I have the servo kit for raspberry pi here: https://www.amazon.com/gp/product/B01J40NPVW/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1. I've looked up documentation on how to do this with UWP but they are all in C# and seem fairly complicated. Anyone have any resources that I could follow that is specifically for C++ UWP? Thanks.

  • 1
    I do not see how that kit would work with Windows IoT. It seems to rely on servoblaster which is Linux C code to exploit special features of the Raspberry Pi. As far as I am aware there is no Windows equivalent. – joan Mar 4 at 21:58
  • If I were to use the same servos, just not the board that it comes with, would I still be able to achieve my task? Isn't the only thing that the GPIO pins are doing is sending out pulses to the motors? I have a video here that seems similar: youtube.com/watch?v=sIROjErwn4A – Richard Wei Mar 4 at 22:34
  • The youtube video is using a piece of hardware (PCA9685A) to drive the servo signals. The kit you bought seems to be using software to drive the servo signals (but the software is doing this in a highly specialised way which has not been ported to Windows). – joan Mar 4 at 22:45
  • Ok, for my current situation, how would you recommend proceeding with this project? I still have the same servos. – Richard Wei Mar 4 at 22:48
  • I would check with Monk Makes to see if their kit would work with Windows. If it won't I'd go for a PCA9685 based solution, but I would use one which had software examples available for Windows IoT. – joan Mar 4 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.