Sniffur – dog tracker
By Russell Barnes. Posted
Matt Reed always knows where Bean the dog is, thanks to his beacon-powered Sniffur system
Advertisement
Get started with Raspberry Pi – everything you need to know to start your journey!
We love animals here at The MagPi, so when we heard about a Raspberry Pi dog-tracker called ‘Sniffur’, we had to learn more.
Sniffur uses tracking technology called ‘beacons’; these are relatively new devices being placed in department stores to track the precise location of customers.
The full article can be found in The MagPi 42 and was written by Lucy Hattersley
Sniffur flips this idea on its head, by putting the beacon on a moving object and using three Raspberry Pis to detect where it is. The object in question is Bean, an adorable greyhound adopted by Redpepper, a marketing agency in Nashville, Tennessee.
“We’re a culture-first company,” says Matt Reed, the project’s maker. “A lot of us have dogs or pets in some form, so part of us being happy is knowing our pets are happy. It doesn’t hurt that our CEO also has two dogs.
“Bean is absolutely the sweetest dog. Very shy, timid, loving. She wanders around into people’s offices and just stands next to their desks waiting for rubs, then just wanders on to the next spot.”
But all dogs like to go out and play. “When [greyhounds] do, they are very hard to catch because they are so fast,” Matt tells us. “They are the second-fastest land animal after the cheetah: top speed 43mph. Greyhounds also have a high prey drive; if they see a squirrel then it’s ‘bye bye’.
“The need to know where she is at any moment and see if she’s close to the front doors is the reason Sniffur was built,” continues Matt. “We have done retail experiments using Estimotes and constantly keep a stock of beacons available in our lab for experimentation.
“I grabbed one of the Estimote beacons from the lab and zip-tied it to Bean’s collar. Usually, beacons are attached in stationary physical locations, but Bean is now a mobile beacon transmitting a polling signal everywhere she goes.
“I put a Bluetooth USB dongle into three Raspberry Pis and coded them to listen for Bean’s Unique Beacon ID,” reveals Matt.
One value transmitted by a beacon is RSSI (received signal strength indicator). This is the distance of a beacon from the antenna. “I’ve referred to it as triangulation because everyone knows what that means,” says Matt, “but I’ve recently learned on Hackaday that ‘trilateration’ is the correct term, because I’m calculating distance instead of geometry.”
Matt built an app for the iPad to display Bean’s location. “It’s just an HTML, JavaScript and CSS page that connects over the local WiFi network to the three Raspberry Pis,” he explains.
“I think this could be a fun project for anyone looking to familiarise themselves with beacons. A cheaper version would be to use one Pi to generate a single radius distance from that antenna.
You could also set an antenna by an exit and just throw an alarm, flash lights or lock the door, whenever the roaming beacon comes within range.
“Hmm,” ponders Matt, “that is actually not a bad idea. I think Sniffur is fun from a visualisation standpoint, but from a practical standpoint something more proactive might be better.”
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Get started with Raspberry Pi in Raspberry Pi Official Magazine 161
There’s loads going on in this issue: first of all, how about using a capacitive touch board and Raspberry Pi 5 to turn a quilt into an input device? Nicola King shows you how. If you’re more into sawing and drilling than needlework, Jo Hinchliffe has built an underwater rover out of plastic piping and […]
Read more →
Win one of three DreamHAT+ radars!
That’s right, an actual working radar for your Raspberry Pi. We reviewed it a few months ago and have since been amazed at some of the projects that have used it, like last month’s motion sensor from the movie Aliens. Sound good? Well we have a few to give away, and you can enter below. […]
Read more →
RP2350 Pico W5 review
It’s Raspberry Pi Pico 2, but with a lot more memory
Read more →
