SlideShare ist ein Scribd-Unternehmen logo
1 von 7
Downloaden Sie, um offline zu lesen
www.researchdesignlab.com Page 1
DTMFDecoder Shield For Arduino
DTMF DECODER SHIELD FOR
ARDUINO
www.researchdesignlab.com Page 2
DTMFDecoder Shield For Arduino
Contents
INTRODUCTION ...................................................................................................................... 3
FEATURES ................................................................................................................................ 3
ARDUINO I/O CONNECTIONS............................................................................................... 4
ARDUINO CODE ...................................................................................................................... 5
www.researchdesignlab.com Page 3
DTMFDecoder Shield For Arduino
INTRODUCTION
This board decodes DTMF signal either from an audio source or phone line to 4 bit binary
TTL(5V) level output. It also indicates outputs with LED. Suitable for use with microcontroller
applications.
FEATURES
 Decodes DTMF as 4 bit binary
 TTL level output for direct connection to microcontrollers
 Low power 5V DC operation
 LED indication of outputs
 Simple to use.
 High quality PCB FR4 Grade with FPT Certified.
www.researchdesignlab.com Page 4
DTMFDecoder Shield For Arduino
ARDUINO I/O CONNECTIONS
www.researchdesignlab.com Page 5
DTMFDecoder Shield For Arduino
ARDUINO CODE
/*
* Project name:
DTMF Decoder shield
* Copyright
(c) Researchdesignlab.com
* Description:
* Test configuration:
MCU: ATMEGA328
Dev.Board: Arduino uno
Oscillator: 16 MHz
Software: Arduino
*/
const int analogInPin1 = A0; // Analog input pin that the potentiometer is attached to x axis Joystick
const int analogInPin2 = A1; // Analog input pin that the potentiometer is attached to y axis Joystick
const int buttonPin_A = 2; // the number of the D0 pin
const int buttonPin_B = 3; // the number of the D1 B pin
const int buttonPin_C = 4; // the number of the D2 C pin
const int buttonPin_D = 5; // the number of the D3 D pin
const int buttonPin_E = 6; // the number of the STD pin
int sensorValue = 0; // value read from the pot
int D0,D1,D2,D3,STD; // variable for reading the pushbutton status
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
Serial.println("DTMF Decoder shield ");
Serial.println(" " );
// initialize the pushbutton pin as an input:
pinMode(buttonPin_A, INPUT);
pinMode(buttonPin_B, INPUT);
pinMode(buttonPin_C, INPUT);
pinMode(buttonPin_D, INPUT);
pinMode(buttonPin_E, INPUT);
}
www.researchdesignlab.com Page 6
DTMFDecoder Shield For Arduino
void loop() {
// read the state of the pushbutton A,B,C,D,E value:
D0 = digitalRead(buttonPin_A);
D1 = digitalRead(buttonPin_B);
D2 = digitalRead(buttonPin_C);
D3 = digitalRead(buttonPin_D);
STD = digitalRead(buttonPin_E);
if (STD == HIGH) {
delay(400);
if((D0==1)&&(D1==0)&&(D2==0)&&(D3==0))
{
Serial.print('1');
}
if((D0==0)&&(D1==1)&&(D2==0)&&(D3==0))
{
Serial.print('2');
}
if((D0==1)&&(D1==1)&&(D2==0)&&(D3==0))
{
Serial.print('3');
}
if((D0==0)&&(D1==0)&&(D2==1)&&(D3==0))
{
Serial.print('4');
}
if((D0==1)&&(D1==0)&&(D2==1)&&(D3==0))
{
Serial.print('5');
}
www.researchdesignlab.com Page 7
DTMFDecoder Shield For Arduino
if((D0==0)&&(D1==1)&&(D2==1)&&(D3==0))
{
Serial.print('6');
}
if((D0==1)&&(D1==1)&&(D2==1)&&(D3==0))
{
Serial.print('7');
}
if((D0==0)&&(D1==0)&&(D2==0)&&(D3==1))
{
Serial.print('8');
}
if((D0==1)&&(D1==0)&&(D2==0)&&(D3==1))
{
Serial.print('9');
}
if((D0==0)&&(D1==1)&&(D2==0)&&(D3==1))
{
Serial.print('0');
}
if((D0==1)&&(D1==1)&&(D2==0)&&(D3==1))
{
Serial.print('*');
}
if((D0==0)&&(D1==0)&&(D2==1)&&(D3==1))
{
Serial.print('#');
}
while(STD!=LOW)
{
STD = digitalRead(buttonPin_E);
}
}

Weitere ähnliche Inhalte

Ähnlich wie DTMF Decoder Shield for Arduino

Digital Dimmer Module
Digital Dimmer ModuleDigital Dimmer Module
Digital Dimmer ModuleRaghav Shetty
 
DIY UNO Play Breadboard ATMEGA328P with FT232 Breakout Board
DIY UNO Play Breadboard ATMEGA328P with FT232 Breakout BoardDIY UNO Play Breadboard ATMEGA328P with FT232 Breakout Board
DIY UNO Play Breadboard ATMEGA328P with FT232 Breakout BoardRaghav Shetty
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorialsAnshu Pandey
 
Analog Heart Beat Sensor
Analog Heart Beat SensorAnalog Heart Beat Sensor
Analog Heart Beat SensorRaghav Shetty
 
VVDI2 Commander Transponder Key programmer user manual-vobdii.com
VVDI2 Commander Transponder Key programmer user manual-vobdii.comVVDI2 Commander Transponder Key programmer user manual-vobdii.com
VVDI2 Commander Transponder Key programmer user manual-vobdii.comSerena Kong
 
Monitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMonitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMR Selamet
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdsiti_haryani
 
8928 a 8930a_usermanual_detailed
8928 a 8930a_usermanual_detailed8928 a 8930a_usermanual_detailed
8928 a 8930a_usermanual_detailedSchoolVision Inc.
 
Cell phone based dtmf controlled
Cell phone based dtmf controlledCell phone based dtmf controlled
Cell phone based dtmf controlledslmnsvn
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdmukhammadimam
 
Monitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMonitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMR Selamet
 
P4 m8p m7c-0227c_b
P4 m8p m7c-0227c_bP4 m8p m7c-0227c_b
P4 m8p m7c-0227c_bIsma Othman
 
Analog Light Intensity Sensor
Analog Light Intensity Sensor Analog Light Intensity Sensor
Analog Light Intensity Sensor Raghav Shetty
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3Jeni Shah
 

Ähnlich wie DTMF Decoder Shield for Arduino (20)

Digital Dimmer Module
Digital Dimmer ModuleDigital Dimmer Module
Digital Dimmer Module
 
DIY UNO Play Breadboard ATMEGA328P with FT232 Breakout Board
DIY UNO Play Breadboard ATMEGA328P with FT232 Breakout BoardDIY UNO Play Breadboard ATMEGA328P with FT232 Breakout Board
DIY UNO Play Breadboard ATMEGA328P with FT232 Breakout Board
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorials
 
Analog Heart Beat Sensor
Analog Heart Beat SensorAnalog Heart Beat Sensor
Analog Heart Beat Sensor
 
VVDI2 Commander Transponder Key programmer user manual-vobdii.com
VVDI2 Commander Transponder Key programmer user manual-vobdii.comVVDI2 Commander Transponder Key programmer user manual-vobdii.com
VVDI2 Commander Transponder Key programmer user manual-vobdii.com
 
P4 m80m4 0119c_b
P4 m80m4 0119c_bP4 m80m4 0119c_b
P4 m80m4 0119c_b
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
arduino.ppt
arduino.pptarduino.ppt
arduino.ppt
 
Arduino Programming
Arduino ProgrammingArduino Programming
Arduino Programming
 
Monitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recordingMonitoring temperature rumah dengan display lcd dan recording
Monitoring temperature rumah dengan display lcd dan recording
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
 
8928 a 8930a_usermanual_detailed
8928 a 8930a_usermanual_detailed8928 a 8930a_usermanual_detailed
8928 a 8930a_usermanual_detailed
 
Cell phone based dtmf controlled
Cell phone based dtmf controlledCell phone based dtmf controlled
Cell phone based dtmf controlled
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
 
Monitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMonitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data Recording
 
P4 m8p m7c-0227c_b
P4 m8p m7c-0227c_bP4 m8p m7c-0227c_b
P4 m8p m7c-0227c_b
 
Analog Light Intensity Sensor
Analog Light Intensity Sensor Analog Light Intensity Sensor
Analog Light Intensity Sensor
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3
 

Mehr von Raghav Shetty

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-BluetoothRaghav Shetty
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for ArduinoRaghav Shetty
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for ArduinoRaghav Shetty
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 Raghav Shetty
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration SensorRaghav Shetty
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture SensorRaghav Shetty
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCURaghav Shetty
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCURaghav Shetty
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply Raghav Shetty
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level ConverterRaghav Shetty
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float SwitchRaghav Shetty
 

Mehr von Raghav Shetty (20)

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485
 
Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
 
LCD Keypad Shield
LCD Keypad ShieldLCD Keypad Shield
LCD Keypad Shield
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
 
Force Sensor
Force SensorForce Sensor
Force Sensor
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
 

Kürzlich hochgeladen

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 

Kürzlich hochgeladen (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

DTMF Decoder Shield for Arduino

  • 1. www.researchdesignlab.com Page 1 DTMFDecoder Shield For Arduino DTMF DECODER SHIELD FOR ARDUINO
  • 2. www.researchdesignlab.com Page 2 DTMFDecoder Shield For Arduino Contents INTRODUCTION ...................................................................................................................... 3 FEATURES ................................................................................................................................ 3 ARDUINO I/O CONNECTIONS............................................................................................... 4 ARDUINO CODE ...................................................................................................................... 5
  • 3. www.researchdesignlab.com Page 3 DTMFDecoder Shield For Arduino INTRODUCTION This board decodes DTMF signal either from an audio source or phone line to 4 bit binary TTL(5V) level output. It also indicates outputs with LED. Suitable for use with microcontroller applications. FEATURES  Decodes DTMF as 4 bit binary  TTL level output for direct connection to microcontrollers  Low power 5V DC operation  LED indication of outputs  Simple to use.  High quality PCB FR4 Grade with FPT Certified.
  • 4. www.researchdesignlab.com Page 4 DTMFDecoder Shield For Arduino ARDUINO I/O CONNECTIONS
  • 5. www.researchdesignlab.com Page 5 DTMFDecoder Shield For Arduino ARDUINO CODE /* * Project name: DTMF Decoder shield * Copyright (c) Researchdesignlab.com * Description: * Test configuration: MCU: ATMEGA328 Dev.Board: Arduino uno Oscillator: 16 MHz Software: Arduino */ const int analogInPin1 = A0; // Analog input pin that the potentiometer is attached to x axis Joystick const int analogInPin2 = A1; // Analog input pin that the potentiometer is attached to y axis Joystick const int buttonPin_A = 2; // the number of the D0 pin const int buttonPin_B = 3; // the number of the D1 B pin const int buttonPin_C = 4; // the number of the D2 C pin const int buttonPin_D = 5; // the number of the D3 D pin const int buttonPin_E = 6; // the number of the STD pin int sensorValue = 0; // value read from the pot int D0,D1,D2,D3,STD; // variable for reading the pushbutton status void setup() { // initialize serial communications at 9600 bps: Serial.begin(9600); Serial.println("DTMF Decoder shield "); Serial.println(" " ); // initialize the pushbutton pin as an input: pinMode(buttonPin_A, INPUT); pinMode(buttonPin_B, INPUT); pinMode(buttonPin_C, INPUT); pinMode(buttonPin_D, INPUT); pinMode(buttonPin_E, INPUT); }
  • 6. www.researchdesignlab.com Page 6 DTMFDecoder Shield For Arduino void loop() { // read the state of the pushbutton A,B,C,D,E value: D0 = digitalRead(buttonPin_A); D1 = digitalRead(buttonPin_B); D2 = digitalRead(buttonPin_C); D3 = digitalRead(buttonPin_D); STD = digitalRead(buttonPin_E); if (STD == HIGH) { delay(400); if((D0==1)&&(D1==0)&&(D2==0)&&(D3==0)) { Serial.print('1'); } if((D0==0)&&(D1==1)&&(D2==0)&&(D3==0)) { Serial.print('2'); } if((D0==1)&&(D1==1)&&(D2==0)&&(D3==0)) { Serial.print('3'); } if((D0==0)&&(D1==0)&&(D2==1)&&(D3==0)) { Serial.print('4'); } if((D0==1)&&(D1==0)&&(D2==1)&&(D3==0)) { Serial.print('5'); }
  • 7. www.researchdesignlab.com Page 7 DTMFDecoder Shield For Arduino if((D0==0)&&(D1==1)&&(D2==1)&&(D3==0)) { Serial.print('6'); } if((D0==1)&&(D1==1)&&(D2==1)&&(D3==0)) { Serial.print('7'); } if((D0==0)&&(D1==0)&&(D2==0)&&(D3==1)) { Serial.print('8'); } if((D0==1)&&(D1==0)&&(D2==0)&&(D3==1)) { Serial.print('9'); } if((D0==0)&&(D1==1)&&(D2==0)&&(D3==1)) { Serial.print('0'); } if((D0==1)&&(D1==1)&&(D2==0)&&(D3==1)) { Serial.print('*'); } if((D0==0)&&(D1==0)&&(D2==1)&&(D3==1)) { Serial.print('#'); } while(STD!=LOW) { STD = digitalRead(buttonPin_E); } }