Stop Online Productivity Avoidance
The SOPA box disables distracting websites. Pressing the red button toggles these sites on and off, while turning the key switch and pressing the red button disables these sites for 1 hour with no option to return to normal. Resetting the router will bring the internet back, but my cheap crappy router takes 15 minutes to restart, so that's incentive enough to not restart it.
Files for laser cutting your own box. Files are for 5.2mm plywood.
Arduino source files. These are embarrassingly badly written.
Python script for shutting off the internet. Uses pySerial. List of sites is in here.
- Plywood box with holes
Serial 7-segment display
- Piezo on pin D10
- 7 Segment on pin D9
- Button on pin D5
- Key on pin D4
I have used the Software Serial library to interface with the seven segment display. Unfortunately, this requires modifying the SoftSerial source code to accommodate interrupts on digital pins 0-5 (for the buttons). In /Arduino-1.0/Libraries/SoftwareSerial/SoftwareSerial.cpp, simply comment out lines 315-320. This disables software serial on pins D0-D7.