SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
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);
}
}

Más contenido relacionado

Similar a 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
 

Similar a 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
 

Más de 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
 

Más de 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
 

Último

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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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
 
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
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Último (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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
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
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

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); } }