- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
If I can program it using Intel XDK Iot Edition, how can I program it. What should I import? Can you please paste the code. Thank you!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi R@niel,
If you are using the XDK, you can use the MRAA library to manage the PWM pins on Edison. There is, in the XDK, an example code that shows how to use the Edison PWM using the MRAA library. I recommend you to check it.
Additionally, in the following site, there are a couple of example codes for servo motors that use MRAA, however the example codes are for Python: https://github.com/MakersTeam/Edison/tree/master/Python-Examples/Servo https://github.com/MakersTeam/Edison/tree/master/Python-Examples/Servo. You could check them and use them as a reference to write your own code in the XDK. Since the code is based on the MRAA library, you could adapt it to work on JavaScript easily.
Additional examples of MRAA can be found here: https://github.com/intel-iot-devkit/mraa/tree/master/examples/javascript https://github.com/intel-iot-devkit/mraa/tree/master/examples/javascript. The API documentation for JavaScript can be found here: http://iotdk.intel.com/docs/master/mraa/node/ http://iotdk.intel.com/docs/master/mraa/node/
Regards,
Diego
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi R@niel,
If you are using the XDK, you can use the MRAA library to manage the PWM pins on Edison. There is, in the XDK, an example code that shows how to use the Edison PWM using the MRAA library. I recommend you to check it.
Additionally, in the following site, there are a couple of example codes for servo motors that use MRAA, however the example codes are for Python: https://github.com/MakersTeam/Edison/tree/master/Python-Examples/Servo https://github.com/MakersTeam/Edison/tree/master/Python-Examples/Servo. You could check them and use them as a reference to write your own code in the XDK. Since the code is based on the MRAA library, you could adapt it to work on JavaScript easily.
Additional examples of MRAA can be found here: https://github.com/intel-iot-devkit/mraa/tree/master/examples/javascript https://github.com/intel-iot-devkit/mraa/tree/master/examples/javascript. The API documentation for JavaScript can be found here: http://iotdk.intel.com/docs/master/mraa/node/ http://iotdk.intel.com/docs/master/mraa/node/
Regards,
Diego

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page