How to Turn an Old Rotary Phone right into a Numeric Keypad
Retro know-how is “in” lately. Vinyl records, print books, and even movie pictures have all made a comeback. And “renew, reuse, and recycle” is a pattern that acknowledges the worth and aesthetic of older gadgets. In holding with that idea, I’ve in my possession a 1951 classic Western Electric mannequin 302 rotary dial phone that I’m giving new life to.
The cellphone “mind” is a form of circuit, however not of the sort acquainted to us present-day electron jockeys. It is actually an analog pc that converts stepped rotational movement into digital information. It is a mechanical analog-to-digital processor.
Amazingly, earlier than I dug into it and disconnected the interior wiring, the cellphone was nonetheless 100% operational. All it wanted was an analog POTS (plain outdated phone service) landline. While all long-distance cellphone transmission and most native visitors is digital lately, the cellphone system can nonetheless present analog POTS landlines from an area trade to households. These POTS traces are nonetheless absolutely appropriate with gear that’s practically 100 years outdated. I don’t have such a line into my home, but when I did, I may plug the unit in and make and obtain calls.
Inside the phone. DUANE BENSON
Giving an Old Phone a New Purpose
I’d wish to make use of the cellphone as greater than a desktop dialog piece. To that finish, I’ve put an ESP32 system-on-chip (SoC) module into the cellphone. The ESP32 reads the numbers from the dialing motion and sends them on to my pc as an HID (human interface gadget). In different phrases, I’ve turned it right into a numeric keypad.
Related:Building a Wall/Desk Clock With a Customized Arduino and NeoPixel Displays
As the cellphone sits idle with the handset in its cradle (referred to as being “on hook”), the cellphone is successfully disconnected from the cellphone line by the hook change within the cradle. The line from the native phone trade is charged with a DC voltage of round 48 volts, able to offering not more than about 100 mA. When the handset is picked up (referred to as being “off hook”), the usually closed (NC) cradle switches shut and a present loop is created between the cellphone and the native cellphone trade. At this level, the DC present loop is energetic and an analog tone, referred to as a dial tone, is modulated onto the road on the trade.
The cellphone is dialed (sure, that is the place the time period “dial a cellphone” comes from) by putting a finger in one of many numbered holes on the dial, rotating the dial to the top level, and releasing the dial. As the spring-loaded dial rotates again to its house place, it passes an interrupter change that breaks the present loop for about 40 ms. The present loop passes the interrupter as soon as for every depend of the selected digit. The break is roughly 60 ms between breaks. The timing is regulated by the mechanical clock spring that spins the dial again to its house place.
Related:Bringing Back a Classic Tube Radio as a Bluetooth Speaker
If you flip it to the quantity 3, for instance, it can spin again to its house place and break the present loop 3 times, as soon as for every quantity it passes. Zero (0) is within the final spot and will get ten pulses. That signifies that in an analog rotary cellphone system, numbers one by means of ten are represented, however the MSB for ten is actually stripped off to show it right into a zero.
A: Hook change, B: Dial in use change, C: Digit pulse change, D: Cam to interact/disengage digit pulse change, E: Cam (behind change bar) to manage dial in use change, F: Dial return spring. DUANE BENSON
The electrical circuitry is primitive, to say the least. It consists of a transformer, two capacitors (mixed right into a single lead container), an electromagnetic bell, the hook change, and the dial change.
The switches are a set of mechanical relays, with the rotary dial change being fairly elaborate. The hook change (A, above) is a double-pole, single-throw change. Both switches are open when the handset is within the cellphone cradle, known as being on hook, and closed when the handset has been picked up, off hook.
The dial setup is way more elaborate. It has a number of switches managed by a set of cams (D and E). One of the switches (B) is often open, however closed when the dial is wherever aside from the house place. The different change (C) is a double throw such that one is often open and the opposite usually closed. The flip states as soon as for every digit handed because the dial rotates from most to house. This change generates the pulses that I depend. I take advantage of the usually closed half and depend pulses that transition from excessive to low.
Related:This Engineer Built His Own Roller Coaster
The ESP32 Circuit
Before going additional, you may wish to obtain code from my GitHub web site. The software program is written in Adafruit CircuitPython, model 8.X. You can discover it on my Github web page.
For my setup, I take advantage of the hook change (A) as my “sleep” vs. “awake” change. I don’t use the ESP32 sleep mode on this incarnation. It’s a USB wired connection, so I don’t want to fret about conserving battery energy. I could in some unspecified time in the future flip this right into a Bluetooth gadget after which an actual sleep mode can be vital. For now, I simply wait in a “sleep” loop till the handset is picked up. Switch A is closed whereas on hook and open whereas off hook, so my whereas loop waits whereas not off hook.
Once off hook, I wait in a second whereas loop till the dial motion is taken. Within the code, I ignore every part except change B has closed. Switch B is often open and closed when dialing. It’s closed within the photograph above as a result of dialing is in progress.
When change B is closed, I depend any adjustments within the state of change C. C is double pole, so I monitor the closed aspect and depend a unfavorable, or “off” pulse. It’s vital to notice that after studying any of the switches, I pause for five milliseconds to account for change bounce.
Once change B is open once more, I do know that dialing is finished, so I’ve my digit. I add 0x1d (29 decimal) to the quantity. That’s the offset to get to at least one (1) in the usual HID keyboard code. The cellphone makes use of 10 pulses to characterize zero (0) and, conveniently, so does the HID keyboard code.
Parts List for Turning an Old Rotary Phone right into a Numeric Keypad
-
1950’s classic Western Electric mannequin 302 rotary cellphone (one which’s degraded sufficient to not be of historic worth)
-
CircuitPython with the Adafruit CircuitPython library bundle
ESP32 in protoboard, wired to dial. DUANE BENSON
Wiring It Up
I solely want three wire pairs to the ESP32. I additionally put a 0.01 uF ceramic capacitor on the ESP32 energy rail to assist fight noise. Switch A is related with the stable inexperienced wire, as seen within the photograph above, to the ESP32 +3.3 V bus and the white/inexperienced wire to ESP32 pin IO3. Switch B is related with stable blue to the ESP32 +3.3 V bus and white/blue the ESP32 pin IO4. Switch C is related with the stable orange wire to the ESP32 +3.3 V bus and white/orange to ESP32 pin IO5. Now, plug the cellphone right into a USB port or hub, choose up the handset, and dial a quantity. The pc sees it as a quantity coming from a typical keyboard. That’s all there’s to it.
What’s Next for the Project
At some level I wish to flip this right into a Bluetooth HID gadget. Unfortunately, CircuitPython doesn’t but absolutely help the ESP32 Bluetooth within the TinyS3 board. I’ve to attend a bit for that help or change both the language I take advantage of or the board selection. Most ESP32s can run CircuitPython, MicroPython, or Arduino code. You also can develop in native C. I simply want to seek out some mixture with good Bluetooth help. I don’t anticipate greater than about an hour being essential to replace the code. At that time, I’ll want a correct deep sleep mode for the microcontroller. It ought to in any other case be the identical in operation.
Vinyl
through designnews https://ift.tt/V78iZhO
April 9, 2024 at 02:04AM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT








