Posts | Comments

Planet Arduino

Archive for the ‘dog’ Category

Riley, an 8 lb pug, has more beauty than brains, and a palate as unrefined as crude oil. While we hate criticizing others’ interests and tastes, his penchant for eating cat poop needed to stop. After a thorough exploration of a variety of options, including cat food additives that make its excrement taste worse (HOW? WHY? Clearly taste wasn’t the issue!), automatic litter boxes that stow the secretions, and pet doors that authenticate access to the room with the litter box, [Science Buddies] eventually settled on a solution that was amenable to all members of the family.

The trick was in creating a door mechanism with a blacklist of sorts rather than a whitelist. As the cat didn’t like to push the door open itself, the solution needed to have the pet door open by default. A magnet on Riley’s collar would trip a sensor attached to an Arduino that would control servos to swing the door shut immediately if he attempted to access the defecated delights. Of course safety was a consideration with the door swinging in Riley’s face.

We’ve covered a few pet screeners, including one for the same purpose that used IR sensors (but a much bigger dog also named Riley), and a flock of solutions for chickens. We’ve also seen [Science Buddies] in previous posts, so they’re not on the tips line blacklist.

If there’s one demographic that has benefited from people being stuck at home during Covid lockdowns, it would be dogs. Having their humans around 24/7 meant more belly rubs, more table scraps, and more attention. Of course, for many dogs, especially those who found their homes during quarantine, this has led to attachment issues as their human counterparts have begin to return to work and school.

[Clairette] has had a particularly difficult time adapting to her friends leaving every day, but thankfully her human [Nathaniel Felleke] was able to come up with a clever solution. He trained a TinyML neural net to detect when she barked and used and Arduino to play a sound byte to sooth her. The sound bytes in question are recordings of [Nathaniel]’s mom either praising or scolding [Clairette], and as you can see from the video below, they seem to work quite well. To train the network, [Nathaniel] worked with several datasets to avoid overfitting, including one he created himself using actual recordings of barks and ambient sounds within his own house. He used Eon Tuner, a tool by Edge Impulse, to help find the best model to use and perform the training. He uploaded the trained network to an Arduino Nano 33 BLE Sense running Mbed OS, and a second Arduino handled playing sound bytes via an Adafruit Music Maker Featherwing.

While machine learning may sound like a bit of an extreme solution to curb your dog’s barking, it’s certainly innovative, and even appears to have been successful. Paired with this web-connected treat dispenser, you could keep a dog entertained for hours.

Students at the University of Illinois at Urbana-Champaign have a brain-computer interface that can measure brainwaves. What did they do with it? They gave it to Alma, a golden labrador, as you can see in the video below. The code and enough info to duplicate the electronics are on GitHub.

Of course, the dog doesn’t directly generate speech. Instead, the circuit watches her brainwaves via an Arduino and feeds the raw data to a Raspberry Pi. A machine learning algorithm determines Alma’s brainwave state and plays prerecorded audio expressing Alma’s thoughts.

Alma’s collar duplicates — to some degree — the fictional collar from the movie Up. Of course, Dug was a bit more loquacious. It isn’t very clear from the video how many states the program classifies. A quick peek at the code reveals five audio clips but only one appears to be wired to the recognizer — the one for a treat. We think it might be a harder problem to figure out when the dog does not want a treat.

The last time we saw a talking dog collar it was phone-controlled. If you really want to probe a brain — canine or human — you could do worse than to check out OpenHardwareExG.

Oh. By the way. Good dog! Very good dog!

Part of the joy of owning a dog is feeding it. How often do you get to make another living being that happy? However, sometimes you can’t be there when your best friend is hungry. [El Taller De TD] built an auto dog feeder using an Arduino and stepper motor. The video and links are in Spanish, but if your Spanish is rusty, YouTube’s caption autotranslation isn’t bad and Google Translate can help you with the web site.

The electronics are reasonably simple: an Arduino, a Bluetooth module, and a stepper motor driver. Mechanically, the motor and some PVC pipe are all you need. There’s a small phone application to drive the Bluetooth using App Inventor.

This would be a pretty straightforward first project and — of course — could be useful for any kind of animal. For dog use, we might have hardened the external wires and circuit boards a bit though. In addition there are plenty of things you could do in software, for example you could feed every 8 hours. It seems like you could add a sensor to tell when you are out of food, or perhaps if the food was not feeding for some reason.

We’ve looked at using App Inventor with Bluetooth before and it is pretty easy. We might have been tempted to go with Blynk to have more options for communication, but either way is pretty easy.

[Johan Beyers] built an elegantly simple Dog Speedometer project that uses a POV display to display a running dog’s speed without the benefit of an accelerometer. Using an Arduino (looks like it might be a D-love) and a line of 5 LEDs, [Johan] built a dirt-simple POV — 39 lines of code — that times out the flashes so that an immobile viewer sees the dog’s speed. How do you know your pup’s loping speed? That’s the beauty of this project.

Instead of putting all of the LEDs in a line, they are arranged in a V-shape. Because of this spatial offset, the patterns flashed out only “look right” at the right speed. Each number is flashed at a different speed, so you just look for the least distorted numeral.

[Johan]’s code does only what it needs to get the job done. The character data are stored in arrays that are played back directly to the pins of PORTD — avoiding most of the usual Arduino-style complexity with pin definitions and other foolery.

POV displays can be leveraged to add pizzazz to any project — this CD-ROM POV clock and this wind-powered POV weather station come to mind.


Filed under: Arduino Hacks
Nov
08

Dog Tracker Knows Where the Dirt is

arduino hacks, arudino, dog, gps hacks, Home Automatoin, pet, poop, tilt sensor Comments Off on Dog Tracker Knows Where the Dirt is 

DogPoop

[Eric] is well on his way to making one of the less pleasant chores of pet ownership a bit easier with his dog tracking system. The dog tracker is actually a small part of [Eric's] much larger OpenHAB system, which we featured back in July.

As a dog owner, [Eric] hates searching the yard for his pet’s droppings. He had been planning a system to make this easier, and a local hackerspace event provided just the opportunity to flesh his ideas out. The Dog Tracker’s primary sensor is a GPS. Most dogs remain motionless for a few seconds while they go about their business. [Eric's] Arduino-frgbased system uses this fact, coupled with a tilt sensor to determine if the family pet has left any presents.

The tracker relays this information to the home base station using a HopeRF RFM69 transceiver. The RFM69 only has about a 900 foot range, so folks with larger properties will probably want to spring for a cellular network based tracking system. Once the droppings have been tracked, OpenHAB has an interface

[Eric] has also covered runaway dogs in his design. If Fido passes a geo-fence, OpenHAB will raise the alarm. A handheld dog tracker with its own RFM69 can be used to chase down dogs on the run. Future plans are to miniaturize the dog tracker such that it will be more comfortable for a dog to wear.


Filed under: Arduino Hacks, gps hacks
Oct
09

Flora-Powered TARDIS Dog Costume

arduino, Art & Design, dog, dr. who, General, Kids & Family, knitting, pet, Tardis Comments Off on Flora-Powered TARDIS Dog Costume 

flora_spidey-sweater-dualHow To: Doctor Who TARDIS costume for dogs complete with TARDIS sounds and lights

Read more on MAKE



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook