element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14's The Ben Heck Show
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • More
  • Cancel
element14's The Ben Heck Show
Forum Cat Litter Robot / Raspberry Pi mashup
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14's The Ben Heck Show to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 28 subscribers
  • Views 481 views
  • Users 0 members are here
Related

Cat Litter Robot / Raspberry Pi mashup

Macmuchmore
Macmuchmore over 8 years ago

Hi - I purchased a Litter Robot for my cats.  I want to use my Raspberry Pi to notify me (on my iPhone) when the waste drawer is full.

 

What I have done so far is to:

1) Take a light sensor (a TSL2561) and connect it to a Raspberry Pi

2) Wrote a python script so that the sensor looks for the flashing light (a nice feature of the Litter Robot is that when the waste drawer is full, one of its lights flashes) once per hour (so as not to send too many notifications)

3) incorporate the Pushetta API in my script to push the notification to my phone

4) Connected the Pi and sensor to the litter robot (with the sensor in front of the light that flashes)

 

The light on the Litter Robot is on constantly, then flashes when the drawer is full.  I made the script look once an hour for instances when the light is off, with the idea that it would only be off when it is flashing.  The hope was that the sensor would "catch" an instance of darkness and then send the notification.

 

This has not been a great solution.  Is there a way to have the sensor "see" the light is flashing and send the notification then?  I would love some help with this - or would love to see you guys do a show about this.

 

 

Thanks!

Andrew

  • Sign in to reply
  • Cancel

Top Replies

  • oksbwn
    oksbwn over 8 years ago +1
    Why are you checking the sensor once in an hour, as the robot led is also flashing once per hour they both might not be activated at the same time and you will miss the flash. you can use something like…
Parents
  • oksbwn
    oksbwn over 8 years ago

    Why are you checking the sensor once in an hour, as the robot led is also flashing once per hour they both might not be activated at the same time and you will miss the flash.  you can use something like interrupt to make trigger when changes happen. I am not aware of whether that is possible using python but as I use JAVA the Pi4j library provides listeners to do so.

     

    Hope it will help You

     

    Thanks

    Bikash

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 8 years ago in reply to oksbwn

    Bikash Panda wrote:

     

    Why are you checking the sensor once in an hour, as the robot led is also flashing once per hour they both might not be activated at the same time and you will miss the flash. you can use something like interrupt to make trigger when changes happen. I am not aware of whether that is possible using python but as I use JAVA the Pi4j library provides listeners to do so.

     

    Hope it will help You

     

    Thanks

    Bikash

    I don't think he meant the robot is flashing once per hour, I think that flashes constantly when the waste drawer is full. However, your suggestion is still sound and using an interrupt would be the obvious way forward here.

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rachaelp
    rachaelp over 8 years ago in reply to oksbwn

    Bikash Panda wrote:

     

    Why are you checking the sensor once in an hour, as the robot led is also flashing once per hour they both might not be activated at the same time and you will miss the flash. you can use something like interrupt to make trigger when changes happen. I am not aware of whether that is possible using python but as I use JAVA the Pi4j library provides listeners to do so.

     

    Hope it will help You

     

    Thanks

    Bikash

    I don't think he meant the robot is flashing once per hour, I think that flashes constantly when the waste drawer is full. However, your suggestion is still sound and using an interrupt would be the obvious way forward here.

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube