PWM pins

Ohad
New Member Posts: 2
Hi
I'm trying to operate a https://www.ebay.com/itm/Servo-MG995-Gear-Metal-High-Speed-Torque-For-RC-Helicopter-Car-Airplane-/272664108295?epid=849617018&hash=item3f7c0c1d07:g:G90AAOSwzaJX4jwcservo through the board. As these servos are PWM operated, how can I control it through the board:
1. Which pins are PWM pins?
2. How can I control these pins output using, say c (I would like to avoid using python)?
Thanks,
Ohad
I'm trying to operate a https://www.ebay.com/itm/Servo-MG995-Gear-Metal-High-Speed-Torque-For-RC-Helicopter-Car-Airplane-/272664108295?epid=849617018&hash=item3f7c0c1d07:g:G90AAOSwzaJX4jwcservo through the board. As these servos are PWM operated, how can I control it through the board:
1. Which pins are PWM pins?
2. How can I control these pins output using, say c (I would like to avoid using python)?
Thanks,
Ohad
Comments
-
hi there, i'm new here. and trying to do the same thing.
anybody can help a beginner?thank!
-
You can find the pinout in the wiki:
https://wiki.up-community.org/PinoutThere is also an example there how to use PWM using sysfs.
If you want to use it in your code, you could use mraa:
https://wiki.up-community.org/MRAA/UPM
The examples in the wiki are for python, but you can also use mraa in C/C++
Categories
- All Categories
- 105 Announcements & News
- 54 Product News - New Product/Product Change Notice/ End-of-life
- 186 Welcome Developers!
- 55 Unboxing & Project Sharing
- 50 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral