Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Kura PWM?(Control motors from Kura)
Kura PWM? [message #1770424] Fri, 11 August 2017 07:37 Go to next message
Milan Ggg is currently offline Milan GggFriend
Messages: 28
Registered: March 2017
Junior Member
Hi.

I am wondering is there any module in Kura that allows control of PWM pin?
I would like to control motors from Kura / Java. For now, I am using Python, but I want to do that from Kura? In Kura documentation I saw that Kura API has GPIO/PWM/I2C/SPI access, but I can't find anything in code.

Regards,
Milan
Re: Kura PWM? [message #1770749 is a reply to message #1770424] Wed, 16 August 2017 17:54 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

So, you are looking for examples of how to use GPIO from Kura? If so, we maintain an example here: https://github.com/eclipse/kura/tree/develop/kura/examples/org.eclipse.kura.example.gpio

Thanks,
--Dave
Re: Kura PWM? [message #1770795 is a reply to message #1770749] Thu, 17 August 2017 07:45 Go to previous messageGo to next message
Milan Ggg is currently offline Milan GggFriend
Messages: 28
Registered: March 2017
Junior Member
Actually, no :).
I don't want to connect DC / servo motor directly to GPIO pin, because of differences in RPi and motor current(this motor that I have has output current up to 1.8A). So I connected motors on PWM pins, and I want to know is there module for PWM pins (with methods , for example, to set frequency, set PWM and similar) ?
Re: Kura PWM? [message #1771720 is a reply to message #1770795] Tue, 29 August 2017 20:38 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

Sorry for the slow response. Kura relies on the Open JDK DIO library [1] for digital communications. You will see in the APIs that there is an interface for controlling PWM, this however is not being exported properly in Kura. We believe this is an issue in how we compiled the native libraries for JDK DIO. You are welcome to file an Issue here [2] and we will add it to the project backlog. If you are interested in trying to fix this issue, we welcome contributions from the community.

[1] http://docs.oracle.com/javame/8.0/api/dio/api/index.html
[2] https://github.com/eclipse/kura/issues

Thanks,
--Dave
Previous Topic:Compile error from Tycho plugin
Next Topic:OPCUA Driver for kura 3.0.0
Goto Forum:
  


Current Time: Wed Sep 19 18:52:13 GMT 2018

Powered by FUDForum. Page generated in 0.01443 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top