SlideShare a Scribd company logo
1 of 16
Transducer Using PCB
Sound-to-Light Conversion And Loudness
Representation Using Light
Ahmed, Emran
ID: 14-26236-1
Course Instructor: Rethwan Faiz
What is a TRANSDUCER
• Basically, a device to transform ENERGY
• Collective term
• Has- SENSORS and ACTUATORS
• Sensors “sense”
• Actuators “manipulate”
Major Components
• Sound Sensor FC-04
• Arduino Nano
• LEDs
FC-04- the Sensor
A DYNAMIC MICROPHONE
• Does the opposite of a loudspeaker
• Loudspeaker
• Electric Signal  Sound Waves
• The Device we built
• Sound Waves  Electrical Signal
The LEDs and the Resistor
• 120 Ohm Resistor used
• Brown-Red-Brown-Golden
• Advantages of LEDs
• Cost effective
• Low input power
• Easy to use
• Higher efficiency
Arduino Nano
The Logic
• Range of values for different levels of loudness determined
• If the last range is not the same as this range
•  Turn all off
•  Display new ON-OFF sequence
• Else
•  Display ON-OFF sequence without turning off
• const int analogInPin = A0;
• int agerVal=-1;
• int count=0;
• int sensorValue = 0;
• void turnOff()
• {
• digitalWrite(9,LOW);//green
• digitalWrite(10,LOW);//red
• digitalWrite(11,LOW);//blue next to red
• digitalWrite(12,LOW);//last blue
• }
• void setup() {
• Serial.begin(9600);
• pinMode(9,OUTPUT);
• pinMode(10,OUTPUT);
• pinMode(11,OUTPUT);
• pinMode(12,OUTPUT);
•
• digitalWrite(9,LOW);
• digitalWrite(10,LOW);
• digitalWrite(11,LOW);
• digitalWrite(12,LOW);
• void loop() {
• sensorValue = analogRead(analogInPin);
• double db = (20.00 * log10(sensorValue / 5.00));
• if(db<46){
• Serial.print("db = ");
• Serial.println(db);
• }
• if(db <= 17.1468 )//17.15//17.1468 {
• if(agerVal!=0){
• turnOff();
• agerVal=0;
• } else count++;
•
• digitalWrite(9,HIGH);
• digitalWrite(10,HIGH);
• digitalWrite(11, HIGH);
• digitalWrite(12, HIGH);
•
• delay(50);
• }
• else if(db <= 17.9 )//18.25//17.8//20
• { if(agerVal!=1){
• turnOff();
• agerVal=1;
• //delay(5);
• }
• else count++;
•
• digitalWrite(9,HIGH);
• digitalWrite(10,HIGH);
• digitalWrite(11, HIGH);
• digitalWrite(12, LOW);
• delay(50);
• }
• else if(db <= 30 ){//19.35//38
• //turnOff();
• if(agerVal!=2){
• turnOff();
• agerVal=2;
• //delay(5);
• }
• else count++;
•
• digitalWrite(9,HIGH);
• digitalWrite(10,HIGH);
• digitalWrite(11, LOW);
• digitalWrite(12, LOW);
• delay(50);
• }
• //else if(db <= 46.205 ){
• else if(db <= 40.205 ){
• //turnOff();
• if(agerVal!=3){
• turnOff();
• agerVal=3;
• //delay(5);
• }
• else count++;
•
• digitalWrite(9,HIGH);
• digitalWrite(10,LOW);
• digitalWrite(11, LOW);
• digitalWrite(12, LOW);
• delay(50);
• }
• else
• {
• if(agerVal!=-2){
• turnOff();
• agerVal=-2;
• delay(50);
• }
• //turnOff();
• //else count++;
• //delay(10);
• }
• if(count>30){
• agerVal=-1;
• count=0;
• }
• //delay(10);
• }
PROBLEMS FACED
• Time wasted to find range of values
• Easier way- Serial Monitor
• Sound sensor HIGHLY sensitive. Reacts to wind
• Sound sensor cannot differentiate between sound frequencies
• PWM not possible
• Could not find proper Arduino Nano in Proteus
• Could not find FC-04 sound sensor in Proteus
USES
• At schools, to detect chaos, i.e., classroom supervision
• Sound pollution detection and visualization
• Clapping switch
• Security
• Spying
• At concerts
• In responsive disco-balls
IMPROVEMENTS
• Use of battery after uploading into Arduino (portability)
• Battery could be used with Arduino Nano Vin and GND pins (9V would be
needed)
• Better sound sensor, with frequency detection property, PWM
enabled
• If frequency sensor used, can be used to make equalizer from sound
• Better distanced LEDs for better understanding
Thank You!

More Related Content

Similar to Transducer using PCB (Sound-to-light Conversion and Loudness Representation using Light)

Audio led bargraph equalizer
Audio led bargraph equalizerAudio led bargraph equalizer
Audio led bargraph equalizer
douglaslyon
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Mohanumar S
 

Similar to Transducer using PCB (Sound-to-light Conversion and Loudness Representation using Light) (20)

Arduino
ArduinoArduino
Arduino
 
Arduino
ArduinoArduino
Arduino
 
Lec08
Lec08Lec08
Lec08
 
Mod3
Mod3Mod3
Mod3
 
Iot 101
Iot 101Iot 101
Iot 101
 
Audio led bargraph equalizer
Audio led bargraph equalizerAudio led bargraph equalizer
Audio led bargraph equalizer
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
 
From Arduino to LinnStrument
From Arduino to LinnStrumentFrom Arduino to LinnStrument
From Arduino to LinnStrument
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacing
 
First step robotics
First step roboticsFirst step robotics
First step robotics
 
Scottish Ruby Conference 2010 Arduino, Ruby RAD
Scottish Ruby Conference 2010 Arduino, Ruby RADScottish Ruby Conference 2010 Arduino, Ruby RAD
Scottish Ruby Conference 2010 Arduino, Ruby RAD
 
The Ring programming language version 1.5.2 book - Part 177 of 181
The Ring programming language version 1.5.2 book - Part 177 of 181The Ring programming language version 1.5.2 book - Part 177 of 181
The Ring programming language version 1.5.2 book - Part 177 of 181
 
Data Converters for Solving Hard Problems
Data Converters for Solving Hard ProblemsData Converters for Solving Hard Problems
Data Converters for Solving Hard Problems
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
 
Arduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond BasicsArduino plus Delphi Mobile Apps - Beyond Basics
Arduino plus Delphi Mobile Apps - Beyond Basics
 
Arduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of MoratuwaArduino Programming for Basic Robotics - University of Moratuwa
Arduino Programming for Basic Robotics - University of Moratuwa
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5
 
Smart lamp with gsm modul sim800 l
Smart lamp with gsm modul sim800 lSmart lamp with gsm modul sim800 l
Smart lamp with gsm modul sim800 l
 

Recently uploaded

21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
rahulmanepalli02
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
Sampad Kar
 
Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...
IJECEIAES
 

Recently uploaded (20)

Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
AI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdfAI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdf
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
Low Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s HandbookLow Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s Handbook
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...Performance enhancement of machine learning algorithm for breast cancer diagn...
Performance enhancement of machine learning algorithm for breast cancer diagn...
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 

Transducer using PCB (Sound-to-light Conversion and Loudness Representation using Light)

  • 1. Transducer Using PCB Sound-to-Light Conversion And Loudness Representation Using Light Ahmed, Emran ID: 14-26236-1 Course Instructor: Rethwan Faiz
  • 2. What is a TRANSDUCER • Basically, a device to transform ENERGY • Collective term • Has- SENSORS and ACTUATORS • Sensors “sense” • Actuators “manipulate”
  • 3. Major Components • Sound Sensor FC-04 • Arduino Nano • LEDs
  • 5. A DYNAMIC MICROPHONE • Does the opposite of a loudspeaker • Loudspeaker • Electric Signal  Sound Waves • The Device we built • Sound Waves  Electrical Signal
  • 6. The LEDs and the Resistor • 120 Ohm Resistor used • Brown-Red-Brown-Golden • Advantages of LEDs • Cost effective • Low input power • Easy to use • Higher efficiency
  • 8.
  • 9.
  • 10. The Logic • Range of values for different levels of loudness determined • If the last range is not the same as this range •  Turn all off •  Display new ON-OFF sequence • Else •  Display ON-OFF sequence without turning off
  • 11. • const int analogInPin = A0; • int agerVal=-1; • int count=0; • int sensorValue = 0; • void turnOff() • { • digitalWrite(9,LOW);//green • digitalWrite(10,LOW);//red • digitalWrite(11,LOW);//blue next to red • digitalWrite(12,LOW);//last blue • } • void setup() { • Serial.begin(9600); • pinMode(9,OUTPUT); • pinMode(10,OUTPUT); • pinMode(11,OUTPUT); • pinMode(12,OUTPUT); • • digitalWrite(9,LOW); • digitalWrite(10,LOW); • digitalWrite(11,LOW); • digitalWrite(12,LOW); • void loop() { • sensorValue = analogRead(analogInPin); • double db = (20.00 * log10(sensorValue / 5.00)); • if(db<46){ • Serial.print("db = "); • Serial.println(db); • } • if(db <= 17.1468 )//17.15//17.1468 { • if(agerVal!=0){ • turnOff(); • agerVal=0; • } else count++; • • digitalWrite(9,HIGH); • digitalWrite(10,HIGH); • digitalWrite(11, HIGH); • digitalWrite(12, HIGH); • • delay(50); • } • else if(db <= 17.9 )//18.25//17.8//20 • { if(agerVal!=1){ • turnOff(); • agerVal=1; • //delay(5); • } • else count++; • • digitalWrite(9,HIGH); • digitalWrite(10,HIGH); • digitalWrite(11, HIGH); • digitalWrite(12, LOW); • delay(50); • } • else if(db <= 30 ){//19.35//38 • //turnOff(); • if(agerVal!=2){ • turnOff(); • agerVal=2; • //delay(5); • } • else count++; • • digitalWrite(9,HIGH); • digitalWrite(10,HIGH);
  • 12. • digitalWrite(11, LOW); • digitalWrite(12, LOW); • delay(50); • } • //else if(db <= 46.205 ){ • else if(db <= 40.205 ){ • //turnOff(); • if(agerVal!=3){ • turnOff(); • agerVal=3; • //delay(5); • } • else count++; • • digitalWrite(9,HIGH); • digitalWrite(10,LOW); • digitalWrite(11, LOW); • digitalWrite(12, LOW); • delay(50); • } • else • { • if(agerVal!=-2){ • turnOff(); • agerVal=-2; • delay(50); • } • //turnOff(); • //else count++; • //delay(10); • } • if(count>30){ • agerVal=-1; • count=0; • } • //delay(10); • }
  • 13. PROBLEMS FACED • Time wasted to find range of values • Easier way- Serial Monitor • Sound sensor HIGHLY sensitive. Reacts to wind • Sound sensor cannot differentiate between sound frequencies • PWM not possible • Could not find proper Arduino Nano in Proteus • Could not find FC-04 sound sensor in Proteus
  • 14. USES • At schools, to detect chaos, i.e., classroom supervision • Sound pollution detection and visualization • Clapping switch • Security • Spying • At concerts • In responsive disco-balls
  • 15. IMPROVEMENTS • Use of battery after uploading into Arduino (portability) • Battery could be used with Arduino Nano Vin and GND pins (9V would be needed) • Better sound sensor, with frequency detection property, PWM enabled • If frequency sensor used, can be used to make equalizer from sound • Better distanced LEDs for better understanding

Editor's Notes

  1. moving coil type microphone uses electromagnetic induction to convert the sound into electrical very small coil of thin wire suspended within the magnetic field of a permanent magnet sound wave hits flexible diaphragm -> diaph moves in response to sound pressure -> attached coil of wire moves within the magnetic field