Can I use Arduino to silence a barking dog?

My dog barks if we leave him home alone, and it bothers the neighbor. :frowning:

The only thing that works consistently to stop his barking is Pet Corrector (which emits a spray of pressurized air). But the Pet Corrector must be pressed manually, so it isn't helpful when we leave him home alone.

So... could I automate it? Could I use an Arduino, to detect noise above a certain decibel level, and then have it move a mechanical lever to press down on the nozzle (of the can of pressurized air)?

I'm new to this, so any advice is awesome! :pray:

Also, what obstacles/problems might I encounter as I try to set this up?

You need to realise that an Arduino is not a power supply. So you basically can't draw much current from either its 5V or 3.3V pin, especially if you power it on Vin (or the barrel if applicable). Therefore an external power supply is advisable. The Arduino can also not drive big loads (20 mA is a safe maximum) so you might need a driver board; it depends on what you use to drive the mechanical lever.

I would stay away from Unos, Megas and Leonardos. Wiring is easy but there is always the risk that a wire comes loose asnd it does no longer work. I think that a classic Nano might work.

1 Like

No. You can't:

https://www.petsathome.com/shop/en/pets/pet-corrector-spray-50ml

(my emphasis)

3 Likes

the Pet Corrector should be used to teach the dog a desired behavior and the dog should be rewarded (with a treat) when he stops barking.
it is not right to use the Pet Corrector if the dog barks because he is scared or sad.

5 Likes

Indeed - they specifically say that it should not be used in this situation:

1 Like

This is an advisory, not a definite. I agree, there are no bad dogs, only bad owners. My advice:

(and drugs)

2 Likes

Electric solenoid valve and air compressor should work well. Might need a level shifter or SSR to interface, but yeah, should work. Check McMaster.com or granger.com for electric valve.

I’ve wondered if a loud ultrasonic sound that comes on when a dog barks would dismay them from barking ?

Maybe hang a collar with this circuit on the dog’s neck.

:thinking:

1 Like

there is such a thing as a bark collar, some "invisible fence" systems have that as an option.

Buy a 10W amplifier and a speaker and connect it to the arduino.
Have the arduino generate a hissing sound.
No need for the can or valves

1 Like

and the neighbour will complain about the rumbling compressor instead?

double noise, both the dog and the speaker?

1 Like

Every time the dog barks, the Arduino feeds it.

When the dog gets fat, it will not be able to bark anymore :thinking: .

3 Likes

It might get too fat………. And start burping.

1 Like

Or worse!

2 Likes

I don't think that's a good idea. It could make the dog more aggressive and depressed.
It would look like you are torturing the dog

1 Like

Which is, presumably, why the Pet Corrector people tell you not to use their product in this way?

1 Like

One word. Training.

3 Likes

I don't see how this is an Arduino problem.
The dog doesn't need fixing, the owner does.
It's cruel to leave a dog home alone.
If you can't be there all the time, then don't get a dog.
Leo..

8 Likes

Hi Wawa. I need your help. Can you give me your email please?