Skip to content

bastelgarage/ascii2dtmf-beta

Repository files navigation

DTMF ASCII Encoder / Decoder for Arduino (Beta)

⚠️ This project is in the beta phase and has not yet been fully completed.

Overview This Arduino project facilitates the encoding and decoding of the entire ASCII table (256 characters) into DTMF (Dual-Tone Multi-Frequency) tones. It's ideal for wireless or audio-based data transmission where using the DTMF system is required or preferred.

#Features Full ASCII Support: Each ASCII character is encoded into a unique pair of DTMF tones. Flexible Transmission Methods: Supports various transmission mediums like audio signals, radio links, etc. Easy Integration: Designed for easy integration into existing Arduino projects. Error Detection: Optional integrated mechanisms for detecting and correcting transmission errors.

How it Works

Each ASCII character is encoded into a pair of DTMF tones. The mapping is done in two steps:

The first tone is determined by the quotient of dividing the ASCII value by 16. The second tone is determined by the remainder (modulo) of dividing the ASCII value by 16.

Installation

Clone the repository and import the library into your Arduino IDE.

git clone https://github.com/bastelgarage/ascii2dtmf.git

Example

A simple example of how to encode an ASCII character and then decode it:


void setup() {
  // Initialization
}

void loop() {
  char ascii_char = 'A'; // ASCII character to encode
  DTMF_TonePair tones = encode_to_dtmf(ascii_char); // Encoding
  char decoded_char = decode_from_dtmf(tones); // Decoding
}

Contributing Improvements and pull requests are welcome. Please make sure to read the guidelines in CONTRIBUTING.md before submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Tags

Arduino DTMF ASCII Data Transmission Wireless Communication Audio Signal Processing Arduino Library Encoding Decoding

About

DTMF ASCII Encoder for Arduino

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
licence.md

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages