MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. randomnoise
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 62
    • Groups 0

    Topics

    • randomnoiseR

      Odd GPIO issue with 5V supply working with MMM-PIR-Sensor

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      1
      0 Votes
      1 Posts
      849 Views
      randomnoiseR
      Hope someone can point me in the right direction here… As I’ve been having issues with a module I decided to do a new clean install of Raspian Jessie light & then go through the full set up procedure again. I used a new SD card for the install so I could retain the old one in event of any issues (and I’m glad I did). Got all my module sorted & it came to me getting MMM-PIR-Sensor working again. I cloned the git repository & ran the npm install from the folder. Now I noted that trying to run a “gpio readall” gave me a bash command not found error, so I instead followed the link in the pir sensor git hub page to wiring-pi (the node.js binding version of wiringpi). I installed this but then when running my gpio readall i got another error relating to not having the correct chip (I think wiring-pi is outdated & I’m running a pi 3 so it didnt install the correct up to date version of wiringpi), so I instead went direct to the wiringpi by drogon git page & installed it that way. Now gpio readall etc works fine. Note- I’ve given this story in case it’s relevant to my issue. Now my MMM-PIR sensor does function as it should if I sent the timeout value to some thing short like 10 secs so no issues with the module or wiring pi itself etc. Screen goes off, come back on when pir sensor activated. The issue I’m having is that every 2 mins or so, the PIR sensor itself is triggered (I know because it has a red LED which lights up). The sensor is becoming activated even if I’m not in front of it (I have also put it inside something to ensure its not getting any rogue heat to trigger it). It’s pretty regular - approx every 2 mins it goes off. This means that the mirror is constantly switching the screen back on. To troubleshoot I have used an identical PIR sensor which gives the exact same issue. I also tried a different 5V GPIO pin. Now the reason I know this is not a hardware fault is, if I put my old SD card in (with my old Jessie & MM install) it works absolutely fine, no rogue triggers. So my question is- what could be causing this? I know the PIR sensor will ‘trigger’ and the LED light up when it is first powered up so I can only imagine that somehow the 5V is not stable & is causing the sensor to power cycle every 2 mins or so. What I don’t get is that hardware-wise everything is the same. I’m using a good stable power supply with plenty of available current. So what software setting for my PI could be different in my new build? I may have done something in my previous build that I’m missing in this case (I had done lots of things from various web links to get other aspects of the mirror working), but I’m not sure exactly what I’ve missed this time around. I welcome your suggestions! Thanks.
    • randomnoiseR

      MMM-Hive - error loading data

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      2
      0 Votes
      2 Posts
      3k Views
      randomnoiseR
      Temporary fix seems to be using outside url with http instead of https.
    • randomnoiseR

      MMM-UkNationalRail - stops updating on mirror

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      26
      0 Votes
      26 Posts
      15k Views
      nwoottonN
      @randomnoise Glad you got the answer from Transport API. I had a quick look at the code, but not having a Pi/Mirror available to run soak tests I’ve not been able to fully test it. I’ll drop the edits. N
    • 1 / 1