I downloaded the new image of Picroft from the Mycroft website, and have been able to use it smoothly. However, recently I have been attempting to run GPIO pins in my custom skill and have had no success. For testing purposes, I decided to try downloading and running the Picroft_example_skill_gpio skill from GitHub - MycroftAI/picroft_example_skill_gpio: Mycroft AI demonstration Skill for using GPIO pins with the RPi 3 which I found from some documentation here: Documentation - Mycroft AI
I installed the skill by running the command msm install https://github.com/MycroftAI/picroft_example_skill_gpio.git
However, when I tried running the skill there was no output coming from the GPIO27 pin (or pin 13 if you use the GPIO.BOARD layout). Specifically, I have been using the âTurn LED ONâ command, which is supposed to send a high signal out of the GPIO27 pin, however I am only getting a low signal coming out of that pin no matter what command I use. I have a Raspberry Pi 3, and noticed there was an unanswered post about this same issue in the Mycroft forums (Mycroft and GPIO Raspberry pi 3).
Has anyone been able to use the GPIO pins with their Picroft? Or gotten this example skill working?
UPDATE:
I have been able to figure out that I am unable to locate a module named RPi.GPIO
I have made a python file called version.py
that contains the lines:
import RPi.GPIO as GPIO
a = GPIO.VERSION
print a
When I attempt running this script that should simply tell me what GPIO version I have, I get the following as a result:
Traceback (most recent call last):
File "version.py", line 1, in <module>
import RPi.GPIO as GPIO
ImportError: No module named RPi.GPIO'
I tried adding a PYTHONPATH to my âenvâ, and made this path the same as my original PATHâŚthis did not work
Any ideas?
UPDATE 2:
I was able to install pip, and use pip to install python-rpi.gpio, and now my simple version script is working. However, the example skill I downloaded does not recognize the intent anymore. For example, when I say âTurn LED ONâ Mycroft responds with âSorry I didnât catch that, please rephrase your requestâ. It seems like installing the ârpi.gpioâ module or pip itself has caused this mycroft skill to not recognize its intent, but that does not seem like a likely cause to me.
Any ideas are appriciated