3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Office Phone

Step 9Put it together.

Put it together.
I am eliding some key parts of this 'ible: all of these circuits have to be put together, tested, debugged on the breadboard, then hardwired to real circuit boards and placed in the body of the phone itself. I will simply offer a few lessons hard learned:

1. when something doesn't work, apply Occam's Razor- it's probably not an elaborate error in the inner workings of your microchip.
2. Just because the component schematic says that a connection is hardwired closed does not mean you can't fry it open.
3. prepare your repeatable tests before you go far in putting things together. You'll need them. It won't work the first time. I know you think it will. It won't. Be ready to test, and re-test.


Before you seal the phone up, though, don't forget to program the microchip.

I've included my source code (in ugly pBasic) with lots of comments. The logic is simple, but there are a few tricky parts, so here is the outline:

Loop until someone triggers the PIR. Within the initial loop, generate pseudo-random numbers. Since you cannot predict the time a visitor will come by, it is random enough for government work.

When a visitor passes (detected on your PIR) randomly select an area code.
Then dial each digit of the area code, keeping the button "pressed" for long enough to dial it, and with enough space in between each "press" so as not to interfere with the others.

Dial the randomly generated number.

Enter the ring subroutine. This is the tricky part. I used software to create the right ring pattern as described before, but I also had to include a sub-loop that stopped and checked for the receiver's being off the hook many times within each ring- if you don't, a visitor will pick up the phone, but it won't know to stop ringing.

There is also some highly specific code dedicated to dialing from the specific phone system- dialing prefixes and billing suffixes (TAN, they called it). These will be specific to your system.

Now that the phone is hacked, put it somewhere and make connections.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
1
Author:bddbbd.b