So my office lamp is in an awkward location behind a sofa. Instead of re-arranging my office furniture like a sensible person, I decided instead to just install one of those cute $20 tp-link plug that let you toggle stuff via a smart app. Of course, it turns out that the smart app takes an eon to load and I only have my phone on me about half the time.

So the answer of course, instead of re-arranging my office furniture, was to dig through the spare parts bin and make a physical button for my now smart lamp. I chose a particle photon since it speaks UDP (and has a nifty control panel, and I had one.) However, unlike the fancy new models from Particle, this doesn’t have any support for a lithium polymer (lipo) battery so we’re going to use a tp4056 package from Amazon to give us the ability to recharge our LiPo and not draw too much current from it at once. We’ll also need a button.. since that’s kind of the whole bit of this.