A Thief Caught Red Handed

Red really is a wonder dog. She can fetch the remote, the phone, or even a beer out of the fridge. But when Livy started eating table food, she wasn’t the only one. Livy liked dropping food on the floor for Red or even being so bold as to have Red eat it out of her hand. Jenny and I have always been strict about Red not getting table food, but once Livy gave her a taste she was hooked. Ever since we’ve had a problem with Red taking food off the table and the kitchen counters when we aren’t home. We’ve tried to be vigilant about not leaving things out, but inevitably we are in a hurry and something gets left out and Red can’t resist. She knows it is wrong and she is sorry as soon as we walk in the door, but she just can’t beat her addiction. I’ve been frustrated by figuring how to curb her behavior and have been trying to come up with ways to deter her. Others on the internet are just as frustrated and the best solution I could find online was to put things on the table that would fall and make noise like a can filled with rocks to scare her. From the evidence, it looked like Red was sly enough to not knock something like that off and that it probably wouldn’t scare her off anyway. So I started brainstorming my own solutions and expensive impractical solutions, such as an electric fence or a some type of rigged shock collar came to mind. Yeah, it sounds harsh, but I was at my wits end.

When I talked Jenny into letting me get a Nintendo Wii, I told her that half of it was to play games and the other half was to play with the technology in it. The remote for the Wii, called a Wiimote, is the main difference between it and other gaming systems and a large reason for its popularity. The Wiimote has an Infrared (IR) camera on the front, a 3-axis accelerometer, and connects wirelessly via Bluetooth. The Wii comes with a sensor bar which sits on top of your TV which is simply a bar with two IR LEDs, one on each side. When the Wiimote’s camera is pointed at the sensor bar it can see the IR LEDs and can tell where you are pointing it and move the cursor on the screen. The accelerometer is used to detect how you are moving it so when you are playing tennis you just swing the remote as if it were a racquet. All of this information is transmitted back to the Wii over Bluetooth. Rather than reinvent the wheel, Nintendo used an existing standard for Human Interface Devices for the Bluetooth connection. Computers with Bluetooth use the same standard and this means that the Wiimote can actually be connected to a PC. Nintendo does use a proprietary format for their data, but a good portion of the format has already been reverse-engineered and can be found on Wiili.org.  A friend of mine at work wrote a simple driver to be able to use the Wiimote in LabVIEW which can be found here. So this basically enables you to use the Wiimote as a wireless sensor.

In my case, I wanted to be able to detect when Red was getting up on the table and scold her in some way. Using the Wiimote on one end of the table and an IR light source on the other end, I could detect if anything blocked the line of sight. To create the IR light source I got a IR LED from Radioshack for $1.79 and taped it to a AA battery. In addition to that, just in case Red was really sneaking and got past the IR light beam, I used the Wiimote’s accelerometer to detect vibration as a backup. So then I wrote a little program in LabVIEW to read the data from the Wiimote and if an attempted theft was occurring it plays a sound file and logs the time. For Red, I recorded myself scolding her.

So this past Sunday I set Red up for failure. I cooked brunch before we left for Mass complete with bacon knowing that Red can’t resist bacon. Then we conveniently left some plates on table when we left, but not before we armed the new security system. But what fun would it be if we weren’t there to see Red when she got caught? So I set up the camcorder to get more evidence. I was pretty sure that she would do it right after we left the house and would go straight for where Livy ate and sure enough she did. See for yourself below. Now we’ll have to see what the long term effects are and how long it will take to completely break her table surfing behavior.


10 Responses to “A Thief Caught Red Handed”  

  1. 1 Trim

    WOW - you are a friggin’ genius JR - I’m sending this to my wife right now and we’ll see if I can use it to leverage a Wii to help keep our dog from jumping on the counter… So hilarious!

  2. 2 Johann

    That is awesome - Pavlov would be proud.

  3. 3 Sharon Gretencord

    That’s really awesome!!! I don’t think I could be more impressed with a gaming system. It actually has some practical use outside of entertainment!

  4. 4 Corry Key

    That is fantastic! I will recommend this to ALL my “bad dog” clients (including my own dog!) LOL

  5. 5 Amy

    That’s amazing! You should market this.

  6. 6 Grandma A

    J.R.: You have way to much time on your hands!!!! Good Luck!
    Hang in there “RED”.

  7. 7 Nay

    Simply Hilarious!!!! I love it!

  8. 8 Bill

    You are an Uber Geek! Very Cool!

    Great melding of several technologies.

    I found your page while looking for LabView info.

  9. 9 Norm Andrews

    J.R.
    I enjoyed the video very much, didn’t get much out of all of the technical stuff, and I am now laughing that I should get some credit for you being so gifted in technology, because here I am still feeding cattle with a scoop shovel and a bucket. You must have learned a lot from me! Or at least decided that there has to be better ways to do things.

    As always
    Dad

  10. 10 Urrv

    J.R.

    So I finally am getting around to reading your family blog - I look at your pics every month or so, but never actually read too many of your blog posts, mainly because I don’t want to get addicted. It looks like I am going to have to make it more of a habit - especially if you keep inventing new uses for your Wii remote.

    I am glad to see that all is well with the Andrews family - Molly and Livy are quite the pair!

    Take Care,
    Urrv

Leave a Reply



Categories



This site is the Andrews family's home on the web. Unless otherwise indicated all content is ©2005 by the Andrews Family.