# DTMF code generator using an ATtiny1614 - dtmfgen\_dac

**URL:** <https://forum.arduino.cc/t/dtmf-code-generator-using-an-attiny1614-dtmfgen-dac/1406768>\
**Category:** Showcase\
**Created:** [September 18, 2025, 9:00pm UTC](https://forum.arduino.cc/t/dtmf-code-generator-using-an-attiny1614-dtmfgen-dac/1406768 "2025-09-18T21:00:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![6v6gt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/6v6gt/32/225488_2.png) [@6v6gt](https://forum.arduino.cc/u/6v6gt)\
**Post date:** [September 18, 2025, 9:00pm UTC](https://forum.arduino.cc/t/dtmf-code-generator-using-an-attiny1614-dtmfgen-dac/1406768/1 "2025-09-18T21:00:36Z")

</div>

DTMF code generator using an ATtiny1614 - dtmfgen\_dac

I've created a simple DTMF library plus example program using one of the tinyAVR 1 series chips, namely an ATtiny1614. These chips have a built in DAC so the project is relatively easy to put together which a minimum of components .

I've tested it with a DTMF decoder which I published here: [DTMF decoder library - #75 by 6v6gt](https://forum.arduino.cc/t/dtmf-decoder-library/118979/75) and it appears to work reliably.

The example sketch shows how to initialise and use the library. It includes an example of a bulk check to send all 16 characters and a part which sends groups of user selected characters from the serial console command line.

The library was "inspired" by this work: [GitHub - dilshan/dtmfgen: Library to generate DTMF tones only using Arduino Uno.](https://github.com/dilshan/dtmfgen/) and has been discussed in the following thread: [DTMFgen not working](https://forum.arduino.cc/t/dtmfgen-not-working/1406198) . One main difference is that there is no external DAC resistor ladder.

To use it, put the files "dtmfgen\_dac.h" and "dtmfgen\_dac.cpp" into the same folder as the .ino file and follow the usage instructions in the .ino file.

I hope someone finds it useful or interesting.

Files:

[dtmfgen\_attiny1614\_v0\_01p.ino](https://forum.arduino.cc/uploads/short-url/v7PEPNfBPnMR8RUt0alpZrhdYJA.ino) (4.2 KB)

[dtmfgen\_dac.cpp](https://forum.arduino.cc/uploads/short-url/dhxnPe745YKs0obM6P9JzByPj6b.cpp) (5.3 KB)

[dtmfgen\_dac.h](https://forum.arduino.cc/uploads/short-url/tVkTXQWgYNT9CHDvMWawnujKxZM.h) (2.3 KB)

---

<div class="post-metadata">

**Author:** ![ShermanP](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShermanP](https://forum.arduino.cc/u/ShermanP)\
**Post date:** [September 18, 2025, 9:09pm UTC](https://forum.arduino.cc/t/dtmf-code-generator-using-an-attiny1614-dtmfgen-dac/1406768/2 "2025-09-18T21:09:50Z")

</div>

Thanks very much. I will study the files carefully. But as you know, I need to send the output through the transformer out to the VOIP phone line. Anything you can suggest about the circuit to do that would be appreciated.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [September 18, 2025, 10:47pm UTC](https://forum.arduino.cc/t/dtmf-code-generator-using-an-attiny1614-dtmfgen-dac/1406768/3 "2025-09-18T22:47:29Z")

</div>

A simple audio amplifier with low gain could serve as the impedance converter, although an AVR port pin should have no problem driving a 600 Ohm load.

I did not look up what the line audio voltage level should be(\*), but if a couple of volts RMS will work, just use appropriate capacitive coupling. 270 nF has impedance 600 Ohms at 1 kHz, which is a handy reference point.

 ![Capture](https://europe1.discourse-cdn.com/arduino/original/4X/2/2/3/223e8a3fd829c5043f497f9b8be61201437e6019.jpeg)

(\*) 5V logic has been used to generate tones for serial data modems since about 1970.
