Do you mean in serial with the cap? Will 100K be enough?hippy wrote:Perhaps it needs a resistor to limit that.
Code: Select all
import RPi.GPIO as GPIO
import time
import datetime
import sys
from gpiozero import LightSensor
from mpd import MPDClient
from subprocess import Popen, PIPE, call
Thank you a lot! I've adopted your notes, will see if it helps.paddyg wrote: I don't know if these comments are relevant to your issue but it is MUCH easier to debug simple tidy code than code with lots of repeated blocks.
Thanks for the idea! Actually I've already implemented a load/memory monitoring. RAM usage never gets higher 300M, CPU sits at 8-10% load.DougieLawson wrote:If they're not due to hardware problems (lousy power supply) then random freezes are usually a symptom of a memory leak.