Skip to content

Comment on Keep the Cat Out of the Cradle with Arduino

Comments

This is great - I've been thinking about building something like this to keep the cat from waking us up in the middle of the night, or off of certain pieces of furniture. It would be better if the tone was in a range above human hearing, though.

Oh I would pay so much for something that keeps the cat quiet around 6am.

Ha. Mine's the same. MAybe that'll be my next project.

That's the great part. You have the source code, just change the value of 'freq'!. The piezo should be able to hit high enough frequencies.

I was wondering about that. I think I'll try it. You just have to change the second number in the playTone(1000, 500); call.

That's what I was wondering - I think I'm going to try this out.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.