Listening to Digital Signals

The buzz option on a multimeter is really useful because it tells you immediately when there is a short, without you having to read the resistance reading on the display.

The following circuits use a similar idea except that they don't check for shorts, but let you listen to digital signals in your circuit.

The main use for this circuit I have at the moment is to listen to the ICSP signal from MPLAB X when programming a chip. MPLAB X can take quite a while before it has re-built the code (C) and then started the programmer (software) and then gets around to do the actual programming (a different piece of software). All the while you are left staring at the screen waiting for the "programming complete" message to appear!

Then you can test the code out - probably finding that you left out a tiny action and therefore have to go through the whole process again!

This listener circuit lets you forget about MPLAB X so you can do another task such as examining the code you are writing or reading the datasheet etc. Since you can listen for the end of programming using this circuit it means you can save some time which is always a good thing.

Figure 1 shows use of a digital logic FET that has, as you would expect, a gate voltage that is sensitive to logic levels. For the 2N7000 Vgs is between 0.8V and 3.0V - if you need 3v3 logic the 2N7002 has Vgs from 1V to 2.5V but for typical values the typical Vgs for both parts is 2.1V

The 2N7000 is very useful as it does not draw current through the gate so it can be attached to any (logic) signal in your system. This is in contrast to the circuit shown in Figure 2 where a darlington pair is used - in this case a small current is drawn through the base via the 1k resistor

digital listener circuit 2N7000

The darlington pair (Figure 2) stops too much current being drawn through the base (as is the case when a single transistor is used) since the Beta (current gain) of each transistor multiplies the other. It is similar in operation to the FET except that its trigger voltage is ~1.4V.

digital listener circuit darlington

If you want to listen to different signals (perhaps they occur at different times) e.g. ISCP and serial output then Figure 3 shows how to use two diodes as a diode-OR gate.

digital listener circuit diode-or-gate

Note: you can use a piezo crystal (mine was attached to the case of an old watch which meant it should be louder - but it was still too quiet!)

Note: you can use any old NPN transistor eg, with Beta 100 or better.

New! Comments

Have your say about what you just read! Leave me a comment in the box below.



Privacy Policy | Contact | About Me

Site Map | Terms of Use





Subscribe to the MicroZine Newsletter and collect your free microcontroller Ebooks, download project code and more...


Visit our Facebook Page:

   Click Here

Recent Articles

  1. All about the MC78M05BDTRKG Linear Voltage Regulator

    How to use MC78M05BDTRKG for maximum current without using too large a heatsink pad and how to select the optimum input voltage.

    Read more

  2. Fixed point: A fast and easy way to save tons of microcntroller flash memory

    How to use fixed point maths to save microcontroller memory by avoiding use of the floating point library.

    Read more

  3. How to use the DHT22 (or DHT11) with an Arduino; Full code, description and device differences.

    Essential Guide to the DHT22/11 humidity sensor with library code guide and Full Arduino Tutorial. Learn how to Easily determine Humidity, Dew point and Heat Index.

    Read more

  4. The Essential I2C Tutorial: All you need to know about I2C...

    I2C tutorial: Learn all about the 2 wire I2C serial protocol. Learn how easy it is to use, how it works and when to use it...

    Read more

  5. [Arduino] : Using the 74HC595 shift register with shiftOut().

    The Essential Guide to the 74HC595; What it is and how you can easily use one in any of your projects.

    Read more

  6. How to use a DS18B20 on the Arduino for easy temperature measurement

    How to Easily Use the DS18B20 Maxim One-Wire thermometer with Arduino example code showing external or parasitic power modes.

    Read more

Readers Comments

"I wanted to thank
you so so so much
for all the information
you have provided in
your site it's

SUPERB and FANTASTIC."

- Ranish Pottath

"This site really is
the best and my favorite.
I find here many useful
projects and tips."

- Milan

bursach<at>gmail.com<

"Awesome site,
very, very easy and nice
to navigate!"


- Matt
matt_tr<at>
wolf359.cjb.net


Learn Microcontrollers

"Interested in
Microcontrollers?"

Sign up for The
Free 7 day guide:

FREE GUIDE : CLICK HERE


"I am a newbie to PIC
and I wanted to say
 how great your
site has been for me."


- Dave

de_scott<at>bellsouth.net

"Your site is a great
and perfect work.
congratulations."


- Suresh

integratredinfosys<at>
yahoo.com

"I couldn't find the correct
words to define
yourweb site.

Very useful, uncovered,
honest and clear.

Thanks so much for
your time and works.
Regards."


- Anon

Back to Top