Mark Read Well-Known Member Licensed User Longtime User Apr 19, 2016 #1 Can anyone help with which libraries or code I need to control a DC Moter as detailed here: https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/overview I plan to run a headless RPi with a B4j app, controlled via a B4A app and bluetooth. Edit: Just found this, is this correct? https://www.b4x.com/android/forum/threads/iot-jpi4j-raspberry-pi-gpio-controller.37493/ Many thanks.
Can anyone help with which libraries or code I need to control a DC Moter as detailed here: https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/overview I plan to run a headless RPi with a B4j app, controlled via a B4A app and bluetooth. Edit: Just found this, is this correct? https://www.b4x.com/android/forum/threads/iot-jpi4j-raspberry-pi-gpio-controller.37493/ Many thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2016 #2 jPi4J is a wrapper for Pi4J library. Adafruit library looks quite simple: https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/using-dc-motors You can use JavaObject with #AdditionalJar to access it. Upvote 0
jPi4J is a wrapper for Pi4J library. Adafruit library looks quite simple: https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/using-dc-motors You can use JavaObject with #AdditionalJar to access it.
Mark Read Well-Known Member Licensed User Longtime User Aug 9, 2016 #3 Sorry to bump this old thread but I understood that to use the #AdditionalJar function, I need the libraries as jar files. I cannot see them on the Github page here. There are only libraries for Python. Have I missed something? Many thanks. Upvote 0
Sorry to bump this old thread but I understood that to use the #AdditionalJar function, I need the libraries as jar files. I cannot see them on the Github page here. There are only libraries for Python. Have I missed something? Many thanks.
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2016 #4 Seems like it is a Python library. You will not be able to use it from B4J. Note that you can interact with python programs: https://www.b4x.com/android/forum/threads/rpi-piface-control-and-display-cad.62610/#content Upvote 0
Seems like it is a Python library. You will not be able to use it from B4J. Note that you can interact with python programs: https://www.b4x.com/android/forum/threads/rpi-piface-control-and-display-cad.62610/#content
Mark Read Well-Known Member Licensed User Longtime User Aug 9, 2016 #5 Not quite the reply I had hoped for Erel - But I have just found this - not knowing anything about java. Any use? This as well. Last edited: Aug 9, 2016 Upvote 0
Not quite the reply I had hoped for Erel - But I have just found this - not knowing anything about java. Any use? This as well.
Erel B4X founder Staff member Licensed User Longtime User Aug 10, 2016 #6 This is a Java project. However you will need to create a wrapper in order to use this code. Note that B4R (Arduino) does support all these features. Upvote 0
This is a Java project. However you will need to create a wrapper in order to use this code. Note that B4R (Arduino) does support all these features.
Mark Read Well-Known Member Licensed User Longtime User Aug 10, 2016 #7 Thank you for your reply Erel. B4R is not an option for me and I cannot create a wrapper. Does anyone know of a board/hat which IS supported by B4J, works on the RPi and can control a DC motor or a step motor? My last hope. Upvote 0
Thank you for your reply Erel. B4R is not an option for me and I cannot create a wrapper. Does anyone know of a board/hat which IS supported by B4J, works on the RPi and can control a DC motor or a step motor? My last hope.
Mark Read Well-Known Member Licensed User Longtime User Aug 12, 2016 #8 Posted a workaround solution here ( Post#12) in the tutorials forum. Upvote 0