Hacker News new | ask | show | jobs
by PonyGumbo 5684 days ago
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.
2 comments

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.