10 Output Shift Registers
By this stage I'm nearing the point where pretty much everything needed to connect a call over two phones is in place; on the source phone I can detect OH (and potentially send a dial tone) as well as detect a dial pulse train. On the destination phone I can send it ringing current to operate the bells and detect OH if the call is answered. What I'm going to need next are some outputs to activate the relays to bridge and route calls, send ringing current and operate the dialing tones.
To the left of the input shift register I have also added the tones relay that will be used to generate the tones cadence. It's a dual relay IC but one of the relays wasn't working but that's ok as I only the one.
Probably you might have noticed by now I haven't really said anything about the OS behind the exchange. The OS code is written in C (I've never felt the need to learn C++) and really does not a lot more than manage the inputs and outputs to and from the optocouplers and relays in order to sequence a call. Saying that it still ended up being relatively complex code using up around 80% of the Arduino's RAM. I'm not going go into any detail about it as there are plenty of coding sites about if it's something you are interested to learn more about.
Comments
Post a Comment