Destroying the web with a plasma ball
http://www.tannr.com/2015/10/13/destroying-the-web-with-a-plasma-ball/
- The Arduino gets a baseline of the input voltage value on an analog pin
- The Arduino constantly scans for a drop in voltage
- If the voltage drops, it sends output via serial
- The python script (ran by Chrome) constantly reads the serial output for any data
- If data is detected, the Chrome extension sends a message to the active page with text selected to do its thing
- It needs to be executable (chmod +x on *nix)
- The manifest file needs to be moved to the appropriate location defined here: https://developer.chrome.com/extensions/nativeMessaging
- The app ID will probably may need to be changed (can be found in chrome://extensions)
- Check out the picture in the blog post
- I used a 10k ohm resistor for the Arduino analog input
- I cut a USB extender so that I didn't damage the original plasma ball cord