Jose Pino's projects & tidbits
"Great stuff from someone with an inquisitive mind"

Soundmeter

A simple soundmeter using the PIC 16F628 or 16F84 (5/20/2006)


Source: http://www.josepino.com/?sound_meter   Tags: microcontroller circuits audio

I made this project as a test to improve a technic to read analog values without analog-to-digital converter. (ADC) I ended with this "sound meter". It may not work perfectly, it needs some improvement but works anyway. It have the feature of "auto-calibration", so it detects the signal, amplify it and measures it. Because the "auto-calibration" feature, it doesn't need an amplifier or any aditional circuit to drive the signal from the electret microphone.

The capacitor can be a 103k or a 220k. A poliester capacitor works better. The code is compatible con 16F84A or 16F628 so I can't define exactly what value should have. Anyway, If you find this projects interesting, you may be able to experiment with the value of the capacitor. Here is the schematic:
Taken from http://www.josepino.com

Sound Meter Schematic

Here is a picture of the one that I build. As you can see, it was only a test, I didn't had the intentions to build this one and assemble it as a project.

Sound Meter testing

Download the HEX code for the 16F628 HERE - Right click and choose "Save as..."

Download the HEX code for the 16F84A HERE - Right click and choose "Save as..."

The config should be: INTERNAL RC and PWRT ON for 16F628. For the 16F84A the config is External RC and PWRT ON

If you want to connect this circuit to another audio circuit, you can use this adapter:

Adapter

How this works:

As I mention before, the reason of this project is becuse i'm working in a technic to read analog values directly from a signal without an ADC. Here is the method used to read analog values with a digital input output pin:

1. Connect a RC circuit to a Digital I/O pin.
2. Set the pin as OUTPUT and make it high for 1 ms (one milisecond)
3. Set the pin as INPUT and start a 16 bit counter until the input signal is low.

The value of the 16-bit counter should be the value of the input signal or the value of the RC. You can learn more about this technic at the Microchip's web page (www.microchip.com) reading the application notes at the documentation section.

< Sonic: Mushroom Swiss Double Burger.   Home   Southern Zodiac.>

Share your comments and experience:
Keep it short, Comments with bad words, spam and non-related will be deleted.

08/10/09 - 01:48:53 Carlos Roberto Soares from Brasil wrote: Obrigado por dividir conosco seus conhecimento.
Como aprendiz fico muito grato.
O senhor poderia se possível disponibilizar algum código fonte desde que não lhe cause prejuízos.

Name:   Location:
Captcha:   <-- This is the Captcha
Your Comments:

Bookmark or Bookmark and Share Suscribe to RSS Feeds

10 most viewed pages:

- How To Make a Speaker
- Hi-fidelity Homemade Loudspeaker.
- Tachometer/RPM II.
- Homemade WiFi Lid Antenna.
- Super Simple Sun Tracker.
- Led Clock
- USB LED Light.
- How To Repair Sony PSP
- Knowing Everything.
- Matrix Led Display.

Articles related:

- 'Almost No Parts' 12/24hrs LED Clock
- Audio Oscillator 2-Transistors
- LCD Clock/Calendar
- LED chaser using PIC 16F84A
- Led Chaser II
- Led Clock
- Lie Detector
- Mini Amplifier with LM386.
- PIC 16F505
- My PIC Programmer
- PIC Programmer sent by Fco. Arroyo.
- Traffic Light.
- Security Keypad.
- Security Keypad II
- Soundmeter
- Tachometer/RPM.
- Tachometer/RPM II.
- Tachometer for Bikes (circuit).
- Timebase generator.
- Water Level Control/Monitor.

All categories:

- about
- advertisement
- audio
- automobile
- bad_ones
- best
- circuits
- computer
- discover
- diy
- electronics
- fail
- food
- from_readers
- funny
- furniture
- hacks
- homemade
- how_it_works
- howto
- humor
- interesting
- lego
- light
- microcontroller
- mysql
- opinion
- php
- projects
- readings
- realmeal
- religion
- robots
- science
- scripts
- trips
- videos
- websites
- woodworking


Mr. Counter says: 2304 views.

Search Article

Additional Links:

- Mary's Creations.
- Publicidad Gráfica.
- Todito Yucatán
- Lucina Castillo's Art
- Conoce Amigos en Dalnet
- Narciso González' Alebrijes

Need to contact me?
e-mail address
Please get a good reason before sending me an e-mail.

IE, Firefox, SeaMonkey & Opera tested OK, Some features may not work with Google Chrome. © 2006 - 2009 José Pino - JPC-PHP V5.0
If any information, data, picture or design infringes a copyright material, please send me an e-mail asking to remove it along with the supporting data.