The 970-HA-JOKES Payphone Project

Pages
Contributors: Nate
Favorited Favorite 7

Code

You can get the firmware on our github as well as a variety of test-out sketches from the repo.

Payphone Art Project state diagram

The firmware for the Payphone is fairly straight forward. We look for the user to lift the phone off the hook, then start tracking what number is dialed or if a coin is deposited. If a coin is deposited, allow the call to go through. If the number is allowed without a coin (ie, 911, 303-284-0979, etc) allow the call to go through. If there is no coin, and the phone number is not a 'free' type, then hang up the VOIP and connect the user to the 'Please deposit a coin' MP3.