Hi all,
On a zero w pi I am running:
- Tinycorelinux 9.x (armv6)
- python-RPi.GPIO
- wiringpi
- apache2.4-mod-php5
When i start a simple python GPIO script a kworker cpu-load of ~40% starts and keeps running at this level until reboot.
Apache and python seem to work fine, but after some time the Pi becomes instable (i expect this is due to the kworker cpu-load).
I tried to troubleshoot this problem, but can't seem to find the issue.
- Is there a way to see/check what is the source/cause of this kworker process?
- Can anybody help me point in the right direction to troubleshoot this issue?
Tried this, but nothing came up:
- sudo python script.py >> logfile.log 2>> error.log
Thanx for helping!
script.py:
import sys
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)
GPIO.setup(15, GPIO.OUT)
GPIO.output(15,GPIO.LOW)
sleep(1.3)
GPIO.output(15,GPIO.HIGH)
sleep(0.1)
GPIO.cleanup()
sys.exit()