In the third episode of "Hack Your Home," we look at measuring the power being drawn by a device and posting that information to the Internet. If you'd like to see the reasons certain resistor values were chosen, the video covers that in detail:
Step 1: Construct the Audio Jack Breakout
Solder the audio jack to the breakout board, and solder 5 header pins to the breakout board.
Step 2: Build the Hardware
Build the hardware as shown in the diagram. Note that you can build this circuit next to the circuit from episode 2 without any negative effects.
Step 3: Write Some Code
Head to build.particle.io and create a new app. Copy in the code listed in the Attachments section.
Step 4: Run It!
Save and upload the code to your Photon. Head to console.particle.io and click on Logs. Within a few seconds, you should see power readings with units of volt-amps (VA).
Measuring the power consumption of an appliance was another step in learning how to add automation to your home of the future. In addition to just learning about which devices are using the most power, you can also do things like monitor the dryer in order to send yourself a notification via IFTTT.