element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
  • 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
Spy Nerd
  • Challenges & Projects
  • Project14
  • Spy Nerd
  • More
  • Cancel
Spy Nerd
Blog Bad Kitty Counter Spy .....another fabulous WRONGCO product
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Spy Nerd to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: robogary
  • Date Created: 27 Oct 2021 4:14 AM Date Created
  • Views 3048 views
  • Likes 4 likes
  • Comments 6 comments
  • spynerdch
Related
Recommended

Bad Kitty Counter Spy .....another fabulous WRONGCO product

robogary
robogary
27 Oct 2021

For the Spy Nerd Project Competition, WRONGCO introduces another revolutionary ludicrous product .........

 

the BAD KITTY COUNTER SPY.

 

The Bad Kitty Counter Spy sits unnoticed, silently and innocently pushed back into the shadows on your kitchen counter.

....BUT it is watching. 

If that bad kitty, in my case 3 bad kitties, ........or dog, or ferret, or piglet, even your demonic pre school child,

climbs onto the kitchen counter, Bad Kitty Counter Spy will trigger and email the photo of the culprit to you.

 

Bad Kitty Counter Spy can provide incriminating photos in the day and also in the darkest of night using infared night vision.

Here is some example photos of the Bad Kitty Counter Spy in action:

imageimage

imageimage

CAUGHT IN THE ACT !!!  actual untouched photos emailed to me from the Bad Kitty Counter Spyimage

imageimage

image

the pink/purple photos are taken in the dark

imageimage

 

So you want to know more about this incredible and sensational product's features and construction ?  Keep on reading. 

 

The truely unique features of this product:

1) Photo triggering is accomplished with a SR602 PIR motion detector. The SR602 is compatible with the Raspberry Pi 3.3V GPIO.

   This PIR has a 100 degree field of vision, which would normally cause alot of undesired triggering.

     The PIR is mounted inside a plastic tube lined with tar paper to act as a lens and limit the field of vision to be in front of the countertop.

2) The cardboard box used to build the project enclosure is a recycled CHEWY box. How is that for irony ?

3) I was going to build an IR LED module for night vision, but a 36 IR LED assembly with photoresistor control was purchased from Amazon for $4.

I could not come close to to building one for that price. It came with no instructions so I did have to do some evaluation testing.

The IR LED module only comes on at night, and the software turns on the MOSFET driver only for a 1/2 sec before taking the photo, then turns it off again afterwards.

 

If you'd like to build this project yourself, this was my starting place:

https://www.bc-robotics.com/tutorials/sending-email-attached-photo-using-python-raspberry-pi/

Once this code was running, then I built the hardware.

 

 

One issue was the IRD540 MOSFET for turning on the IR LED module,  wouldnt fully gate on using 3.3V GPIO to the gate, so the IR LED assembly wasnt as bright as it should be.  Inserting a LEVEL shifter to boost the gate signal to 5V fixed that problem.

 

Here is the project schematic:

image

 

My biggest modification to the python code is the decison to trigger and the IR LED module control:

while True:

    if ((GPIO.event_detected(17)) or (GPIO.event_detected(27))):

        GPIO.output(4,GPIO.HIGH)

        time.sleep(.5)

        image = '/home/pi/Desktop/image.jpg'

        camera.capture(image)

        time.sleep(0.1)

        GPIO.output(4,GPIO.LOW)

        sendTo = 'xxxxxxxxxxxxxx@gmail.com'

        emailSubject = "Bad kitty Detected!"

        emailContent = "This is the guilty kitty: " + time.ctime()

        sender.sendmail(sendTo, emailSubject, emailContent, image)

        print("Email Sent")

   

Here is a test on the IR LED module to determine load VS volts curve, min volts, and get an idea of light intensity cutoff:

 

 

image

 

Here are some photos of the project construction:

 

imageimage

 

imageimage

image

  • Sign in to reply
  • Andrew J
    Andrew J over 3 years ago in reply to robogary

    I Can’t stand the cat on he counters and it knows not to do it when someone is around.  At night, when we are in bed, up it goes.  I know, because I often wake up during the night and go down so as not to disturb the wife and that always surprises the cat!  A squirter would be good but I suspect my wife would be most unamused.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • robogary
    robogary over 3 years ago in reply to Andrew J

    I thought you'd appreciate this:

    When I did the photo op with the cats for this project, I had to bait the countertop with kitty treats.

    The cats get up on the countertop, but only when there is something irresistible there and no one is watching. One cat is fond of bread.

    They know better than to get on the counter (prior experience with squirt bottles)

     

    My wife was not at home when I did the project photo op.

    I didnt want to hear all the objections and fussing. After the photo op, I cleaned the counter off, disinfected, etc, and put everything back like I found it.

     

    This morning, there was a package of kiddy snacks ( not kitty snacks) on the counter that we were to be dropped off at preschool later today.

    The big cat got to it when no one was looking.

    My wife knows what I was building and wanted me to activate the Bad Kitty Counter Spy, but with a squirter or other defense mechanism.

     

    Thank goodness I didnt share about the photo-op or I'd be pushing up daisies.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to robogary

    " The brainstorming is what makes these projects fun :-) "

    tilting table top

    conveyor belt

       phase 1 - kitty-be-gone

       phase 2 - dish-o-matic

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • robogary
    robogary over 3 years ago in reply to Andrew J

    Brilliant. Absolutely. I just happen to have a 60 g/hr aquarium pump from a project done this past summer. ( E14 Make me smile competition) A relay module turns it on.

    I was given another request to add a nerf gattling gun, another fine suggestion.

    Maybe an audio player of a dog barking would have a good result too.

    The brainstorming is what makes these projects fun :-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Andrew J
    Andrew J over 3 years ago

    Bbrill.  Our cat just can’t leave the counter top alone.  Could you suggest a water squirt upgrade that will target the identified bad kitty?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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