Using interrupts with an LDR (pro min)



  • Hi all,

    I want to use an analog LDR to detect when my mailbox is opened and I want to run it on batteries. Hence I would like to wake only on sensor detection. The pro mini only has digital interrupt pins (not sure how analog would work anyways - thresholds?) - Anyone know any way of setting this up? I know I could use reed switches etc but I'm curious about this now!

    Thanks!



  • @shabba Why not use the LDR on a digital interrupt ? LDR should be able to swing the voltage enough to trigger a state change.



  • @maltimus Because on a dark day I was concerned this would not be enough to trigger. I intend to test it though!


Log in to reply
 

Suggested Topics

  • 3
  • 4
  • 1
  • 1
  • 9
  • 21
  • 6
  • 5

248
Online

9.8k
Users

10.3k
Topics

106.7k
Posts