Build Your Own Particle Sharknicorn to Track Uber API Events

Cameron Coward
Sep 6, 2018 · 2 min read

Many of your favorite online services have an API that you can utilize to create projects that take advantage of their platform. You could, as a completely unbiased example, use the Wolfram Alpha and Twitter APIs to turn an ancient terminal into a personal assistant. That’s because an API allows you to use a service outside of their usual website or app. In this fun guide from Particle, you can learn how to build an awesome sharknicorn hat that lights up when your Uber driver is nearby.

Like many APIs, Uber’s has events that can be used as triggers. They’re based on what you see in the app: you requested a ride, the driver accepted, your driver is arriving, you’re in the car, and you’ve arrived at your destination. This build uses a Particle Photon to monitor those events, and then lights up the horn of the sharknicorn hat with the trigger you choose. So, you can have it light up when your driver arrives, or when you reach your destination so everyone knows you’re ready to party.

To make your sharknicorn hat, you’ll need a Particle Photon kit, a NeoPixel stick, a battery, a semi-translucent horn that can be 3D-printed, and some sort of hat. Obviously a shark hat works best, but you can also be boring and choose a horse hat. From there, you can follow the guide to wire everything up — don’t worry, the wiring is easy. Then, you can use the provided code to setup trigger events with the Uber API. The Particle Photon doesn’t have GSM, so if you want the trigger to work after you leave your home you’ll need to use your smartphone’s hotspot. Whichever trigger you choose, this is a fun way to celebrate going out for the night.

Hackster Blog

Hackster.io, an Avnet community, is the world’s largest network for hardware & software developers. With 1 million members and 17,000+ projects, beginners and professionals can learn and share how to build robotics, industrial automation systems, AI-powered machines, and more.

Cameron Coward

Written by

Author, writer, maker, and a former mechanical designer. www.cameroncoward.com @cameron_coward

Hackster Blog

Hackster.io, an Avnet community, is the world’s largest network for hardware & software developers. With 1 million members and 17,000+ projects, beginners and professionals can learn and share how to build robotics, industrial automation systems, AI-powered machines, and more.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade