Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:electronique:modules_kits:dtmf_decoder:index [2021/01/24 13:43] – [PINOUT] f1sls | documentation:electronique:modules_kits:dtmf_decoder:index [2023/01/17 06:48] (Version actuelle) – [DTMF (Dual Tone Multi Frequency)] f1sls | ||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
* 2.54” Pin pitch | * 2.54” Pin pitch | ||
* Board Dimension: 37 x 25 x 12 mm (l x w x h) | * Board Dimension: 37 x 25 x 12 mm (l x w x h) | ||
+ | |||
+ | ==== DOCUMENTATION ==== | ||
+ | * {{ : | ||
+ | * {{ : | ||
===== BLOCK DIAGRAM ===== | ===== BLOCK DIAGRAM ===== | ||
Ligne 18: | Ligne 22: | ||
{{: | {{: | ||
+ | \\ | ||
+ | {{: | ||
- | ^ PIN ^ FUNCTION | ||
- | | Q1 | Binary Bit 1 | | | ||
- | | Q2 | Binary Bit 2 | | | ||
- | | Q3 | Binary Bit 3 | | | ||
- | | Q4 | Binary Bit 4 | | | ||
- | | StQ | Delayed String Output | Represents Binary Bit 0 | | ||
- | | StQ | Power Down Input | | | ||
- | | IN | Inhibit Input | Logic high inhibits the detection of tones representing characters A, B, C and D | | ||
- | | VCC | DC Supply Input | 4.5V - 5.5V (5.0V Nominal) | ||
- | | GND | Ground | ||
^ PIN ^ FUNCTION | ^ PIN ^ FUNCTION | ||
Ligne 36: | Ligne 32: | ||
| Q4 | Binary Bit 4 | | | | Q4 | Binary Bit 4 | | | ||
| StQ | Delayed String Output | Represents Binary Bit 0 | | | StQ | Delayed String Output | Represents Binary Bit 0 | | ||
- | | <span style=" | + | | < |
| IN | Inhibit Input | Logic high inhibits the detection of tones representing characters A, B, C and D | | | IN | Inhibit Input | Logic high inhibits the detection of tones representing characters A, B, C and D | | ||
| VCC | DC Supply Input | 4.5V - 5.5V (5.0V Nominal) | | VCC | DC Supply Input | 4.5V - 5.5V (5.0V Nominal) | ||
| GND | Ground | | GND | Ground | ||
- | <span style=" | + | \\ |
+ | {{:documentation:electronique: | ||
===== INTERFACING ===== | ===== INTERFACING ===== | ||
{{: | {{: | ||
+ | |||
+ | ===== MT-8870 ===== | ||
+ | {{: | ||
+ | \\ | ||
+ | {{: | ||
+ | ===== CODE SAMPLES ===== | ||
+ | |||
+ | ==== ARDUINO LIBS ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | ==== Sample 1 ==== | ||
+ | |||
+ | {{: | ||
+ | \\ | ||
+ | {{: | ||
+ | |||
+ | <code c> | ||
+ | void setup() { | ||
+ | Serial.begin(9600); | ||
+ | pinMode(3, INPUT); | ||
+ | pinMode(4, INPUT); | ||
+ | pinMode(5, INPUT); | ||
+ | pinMode(6, INPUT); | ||
+ | pinMode(7, INPUT); | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | uint8_t number; | ||
+ | bool signal ; | ||
+ | signal = digitalRead(3); | ||
+ | if(signal == HIGH) /* If new pin pressed */ | ||
+ | { | ||
+ | delay(250); | ||
+ | number = ( 0x00 | (digitalRead(7)<< | ||
+ | switch (number) | ||
+ | { | ||
+ | case 0x01: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x02: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x03: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x04: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x05: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x06: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 7: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x08: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x09: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x0A: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x0B: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | case 0x0C: | ||
+ | Serial.println(" | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== DTMF (Dual Tone Multi Frequency) ===== | ||
+ | |||
+ | ^ Hz | ||
+ | ^ 697 | 1 | ||
+ | ^ 770 | 4 | ||
+ | ^ 852 | 7 | ||
+ | ^ 941 | * | ||