The Barkley Project Page!
Thanks to the Kickstrarter pledges who made this campaign possible. The Barkley was not designed with intent to turn animals, but rather as an educational took, with the secondary function of trying to help with training dogs not to bark. You'll need your own Arduino UNO to work with the Barkley. A few pieces of sample code can be found below, along with project videos. The Barkley has an ultrasonic transducer/transmitter installed on it, along with a voltage booster that, when enabled, allows for you to heighten the "volume" of the transmitter. You can also select a 5v source for lower volume. There is a piezo-electric buzzer installed as well which is used for lower frequency output. You have the control over the duration of the pulses, the frequency of the pulses, and the sound sensitivity level for the trigger bark. You can also play music with the Barkley! Before you get started, please watch this video, as you will need to make an adjustment to your Barkley before you get started!:
Microphone Adjustment Video!
Below is the Getting-Started video. It also serves as the assembly video for those of you who have DIY soldering kits. It is highly recommended that you watch this video before you get started on your Barkley Journey!
Getting Started/Assembly Video:
Sample Code:
Below are three pieces of sample code. All three pieces of code are demonstrated in the video below. The first is the main sample. Don't let the '3' confuse you. There is a list within the header file of the below code sample that outlines which GPIO and ADC pins are used, and what their functions are. Keep this in mind when adding external circuitry to your shield. The below video talks about what the jumpers are used for, and how to use them. This code will sample the surrounding volume. You can change the sound sensitivity by adjusting the SENSE resistor. Play around with this. You can set the sensitivity so that a whisper will set it off, or a loud bark/shout. There are some DIP switch settings to be aware of, so check the code out. The video explains this. Please note that you likely won't be able to hear the ultrasonic frequency coming from the transducer. You'll be able to hear audio from the buzzer, but not so much from the transducer, as it has a high center frequency of 40khz, and won't produce an audible sound under 30khz or so.
barkley3.ino | |
File Size: | 9 kb |
File Type: | ino |
Code sample#2 uses the buzzer to create music. This is an altered piece of code that comes with your Arduino under File/Examples/Digital/Tone Melody. It plays the same tune over and over again, and talks about how you can make your own.
barkley_music.ino | |
File Size: | 2 kb |
File Type: | ino |
The third code sample outputs a constant drive signal that can be varied by adjusting the FREQ variable resistor. It is a very simple piece of code that allows for you to play with a rather large range of frequencies.
barkley_adjustable_frequency_only.ino | |
File Size: | 4 kb |
File Type: | ino |