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

    Posts

    Recent Best Controversial
    • RE: Powering my mirror?

      @The-Bean
      In my case the RaPi takes less than 0.4A with very short peaks just above that. So the consumption is around 2-2.5W incl. keyboard and mouse. Add this to your screen consumption and add 20-30% on top of that. So 45W is the minimum, 50W and above should be the better choice. But it also depends how long the screen will be on. If it’s just for a couple of minutes every hour or so, 45W will do.

      The 12V/3A of your screen, are they measured values, or are they from your manual? What screen are you using?

      posted in Hardware
      M
      MadScientist
    • RE: Powering my mirror?

      @The-Bean
      They say the power supply should be able to do 20-30% more than what you need. So better aim for 45W. Something like this should do. Just check Amazon or eBay in your local country. They are usually very cheap and do the job just fine. I use 2 of those (30W) to drive LEDs for years now.

      posted in Hardware
      M
      MadScientist
    • RE: Powering my mirror?

      You could use something like this:
      alt text
      alt text

      You plug in the wall outlet and then you plug the power supply into this device. It will show you voltage, amperage, wattage, etc. They are very cheap. I think I paid for mine around 5€ 5 years ago.

      Or, if you know how much ampere is used at a known voltage, you can easily calculate the wattage by multiplying amere A with voltage V, e.g. 3A at 12V would result in 36W.

      posted in Hardware
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      This is how my setup looks like at the moment:
      alt text
      Relay: Black = GND, white = Vcc 3.3V, green = IN
      PIR: Black = GND, red = Vcc, green = out

      Gray, blue, puple = ds18b20 temperature sensor.

      I actually haven’t had a false trigger yet and the Pi is running for more than an hour now. I will keep it running the whole day. Have a multimeter connected to the relay, set to continuity test, so I should hear a beeping sound every time the relay gets triggered.

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      What independent PIR are using now? Can give me link? I was looking into it too, but couldn’t find one that runs on 12V only. They all have 230V input and 12V output. That’s not working for me.
      When you used the PIR with the GPIO pins, did you use a ferrit ring with it? Apparently that can help. I also had phantom triggers when I only used the PIR (without relay) and the MMM-PIR-sensor module. The ferrit ring resolved the phantom triggers for me 100%. Just now with the python script and the relay I get them very randomly. Sometimes after 2 minutes, sometimes after 2 hours.

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      I did that in the very beginning but then relay isn’t working at all. It only works with 3.3V. No idea why.

      posted in Tutorials
      M
      MadScientist
    • RE: Powering my mirror?

      You should check how much power your mirror, incl. screen and RaPi, consumes and buy an appropriate LED power supply. Especially the IP67 ones are very slim. My 60W power supply is only 33mm high. My whole system uses max. 30W so I decided to go bigger (46W was out of stock, 50W has the same dimensions). If you’re at max. below 30W you could aim for a 36W power supply that are even smaller (I think 20mm high).

      You could use buck-boost-converters to adjust the voltage you need for the Pi or the LCD. In my case the LCD is driven by a V59 universal controller board that runs on 12V, so it can be powered directly from the supply. The Pi will get the power also from the power supply but with a buck-converter in-between, that reduces the 12V to 5V.

      posted in Hardware
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      The is connected to pin 15 (GPIO 27), 17 (3.3V), and 20 (GND). I tried to post a link to the it, but then this post is flagged as spam. It’s just a cheap relay from Aliexpress.

      No idea if that relay is active high or low, but does it matter? It just switches between to connections, so if the relay port 1-2 or 2-3 are active shouldn’t matter, right?

      I am using a 3.1A power supply for the Pi. Later I will connected it via a 8A buck-boost-module to a 12V/5A power supply that will power the screen. The Pi will get the power from before the relay so it won’t switch itself off ;-)

      Please send a picture, I will gladly try, once I have the extra party I might need (transistor or resistor).

      posted in Tutorials
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      @__Tom__
      It’s one hour per direction. Not worth for 12.50€ but I would probably do for bigger mirrors as the shipping costs can get quite expensive.

      posted in General Discussion
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Thanks a lot to cruunnerr, who has the patience of an angel!

      I think there were two problems in my case and I write them here in case someone else has trouble getting the PIR+relay to work.

      First: By installing the MMM-PIR-sensor module I used the wrong wiring-pi. npm install wiring-pi installs an old version (2.25) which - so I’ve read - doesn’t work with the Raspberyy Pi 3. It’s best to install wiringpi according to this site.

      Second: I used a relay which was supposed to run on 3V to 7V, but apparently that’s not the case. I guess the seller shipped the wrong relay. So I had an old relay lying around which should only run on 5V but it works nicely on my RPi.

      Now everything is working, except I get some phantom triggers of the relay every couple of minutes. But I will look into it once everything is set up completely. Maybe I have something around here that can trigger the PIR sensor even if it’s covered by a cloth.

      posted in Tutorials
      M
      MadScientist
    • PIR with a relay module

      So, as in this thread I am trying to use a PIR sensor that powers off my screen via a relay. I’ve had no luck so far. The module MMM-PIR-sensor works nicely as it should, as long as I don’t use relayPIN in the config.js. I also tried doing that via external python scripts, but somehow the relay doesn’t get triggered. Well, it clicks extactly once and that’s it.

      Has anyone managed to use a PIR sensor with a relay on a Raspberry Pi 3 B? If so, how did you do that?

      Edit: Btw, gpio -g write 27 0 or gpio -g write 27 1 do absoloutly nothing. Wiringpi v 2.44 is installed.

      posted in Troubleshooting
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      I am currently fighting with the software and I still have to build the frame but I’ll post pictures once everything is done.
      I already got my mirror and it is indeed dark. Though, that should be ok as it is a tiny room with a window (our guest toilet).

      Edit: I would like to mention the very nice service of Brigla. First, it arrived only 24 hours after I placed the order but the mirror had a minor defect (one tiny spot without refective coating). So I wrote them an email about it yesterday. This morning they replied they would ship another mirror and I don’t have to return the old one. Effectively giving me two for the price of one…
      Fun fact: They are only 70km from where I live.

      posted in General Discussion
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Ok, I did all that and I do get the “…” when I run the pir.py, but the relay doesn’t get triggered. Tried the monitor_oX.sh with and without sudo. Maybe I should just start all over new. Everything seems to be a bit messed up. I reverted back to motion detector only and also that isn’t working anymore in MM.

      Edit: Started a new thread here.

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Thank you so much!

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Two minutes if you know what you’re doing…
      The problem is I don’t have a button. I did create the relay.py script and run it. It triggers the relay exactly once and then stays like this. I can’t even stop the script anymore once it’s running…

      Man, I really thought setting up the relay would be as easy as adding one line to the config. Wish I had tried to set it up earlier.

      Still need help with this. :-(

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Thanks so far. I did npm uninstall wiring-pi and installed wiringpi via git. Now I don’t get the error anymore but the relay still does nothing. It’s getting late and won’t have the time today anymore to look into it. Let me know if you have other ideas and I will continue tomorrow.

      Thanks so far.

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Hmm, I get

      Unable to determine hardware version. I see: Hardware   : BCM2835
      ,
       - expecting BCM2708 or BCM2709. Please report this to projects@drogon.net
      

      when I run gpio -g write 27 1 .

      posted in Tutorials
      M
      MadScientist
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      I would like to use the MMM-PIR-sensor module to trigger the relay to power off the LCD. However, whenever I set
      relayPIN: 27, in the config.js, the motion detector doesn’t do anything anymore. Anyone know what else I have to change in the config? It’s working just fine without the relay.

      Config working without relay (switches off HDMI):

                      {
                      module: 'MMM-PIR-Sensor',
                      config: {
                              sensorPIN: 22, 
                              relayPIN: false,
                              powerSaving: true,
                              }
                      },
      

      Not working with relay:

                      {
                      module: 'MMM-PIR-Sensor',
                      config: {
                              sensorPIN: 22,
                              relayPIN: 27,
                              relayOnState: 1,
                              powerSaving: true,
                              }
                      },
      

      The problem is I am using a V59 LCD controller board which doesn’t power on again once the HDMI is re-activated.

      posted in Tutorials
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      I don’t think the thickness of the glass influences the transmission as glass itself is very light-transmissive and the reflective layer is just a very thin coating on the glass.

      I also think that in a darker room the Mirastar should be better but this is the first time I am dealing with 2-way mirrors…

      posted in General Discussion
      M
      MadScientist
    • RE: Which 2-way mirror is the best?

      Hi Tom,

      thanks a lot for the tip with Brigla. Haven’t found them before although I was searching the web for a long time already. I have placed an order for the Mirropane Chrome Spy with a transmission of 8%. It is less than 50€ incl. shipping. Pretty amazing price! Almost a third of what I would have paid at Glas-star.de! At least I didn’t burn too much money if that’s not the right mirror. Anyhow, I’d still like to get feedback from other users about their choices. That’s also why I reply in English :-)

      posted in General Discussion
      M
      MadScientist
    • 1 / 1