element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs DIY Test Equipment: The ByEar 2000 - A Logic Probe
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jc2048
  • Date Created: 20 Jul 2017 9:58 PM Date Created
  • Views 4218 views
  • Likes 14 likes
  • Comments 17 comments
  • diytestequipch
  • digitalfeverch
Related
Recommended

DIY Test Equipment: The ByEar 2000 - A Logic Probe

jc2048
jc2048
20 Jul 2017

I hadn't even realised that we were on to Doug's DIY Test Equipment Challenge and, look, shabaz has finished already with his Cyclops-1000: An Electronic Eye for Rotational Speed Measurement. I bet he's sitting there thinking he's won. We can't let that go unchallenged, so here's my first try. I don't expect it will win; not just because I'm posting it in the wrong place and technically I can't win, but also because I've just thrown it together without all the careful thought and consideration that Shabaz put into his (and I'm not even going to try and match all his fancy graphics).

 

I proudly present the ByEar 2000. It's a logic probe and its unique selling point is that the output isn't LEDs but rather sounds from a loudspeaker. It's not a new idea (I build something similar back in the 1980s and it wasn't original even then) and you probably don't even need a logic probe anyway but, it's a nice simple circuit, it will cost you hardly anything to build, and it can be the basis for experimenting with comparators even if you don't have boards full of logic to test. (It's 2000 because I reckoned we needed to get some name-inflation into this competition and 2000 is twice as good as 1000, isn't it.)

 

The other thing about it is that there's no processor and no programming - this is just pure hardware. [Sorry if you were looking forward to seeing me struggle to install IDEs and mangle code into shape - somebody else will have to do that one.]

 

Here's the circuit diagram

 

image

The parts represented by triangles are comparators. Operation of a comparator is quite simple, the two inputs are compared and the output driven depending on which is higher than the other. This part that I've chosen is a quad comparator - that just means that there are four of them in the package and they share the power connections. The LM339 is very low cost and is available in a DIP package, so it's nice to experiment with. One thing you need to know is that I've drawn the circuit using the TI-TINA simulator that's available from TI and that package isn't intended for PCB layout, so each comparator you see on the circuit has been given the same pin numbering (a proper layout package would understand about multiple comparators in a single package and allocate the pin numbers accordingly). I've drawn on the pinning that I used for the prototype.

 

How does the circuit work? We can consider it composed of two halves. U1 and U2 compare the input to fixed voltages from the potential divider made up of R1, R7, and R8. If the input is below 30% of the supply voltage the output of U2 is set low. If the input is above 70% of the supply voltage the output of U1 is set low. If the input is between those two levels, both outputs are off (they are off rather than high because the output can't go high - it's just the collector of a transistor and the output would only go high if there was a pull-up resistor there). The other half of the circuit is U3 which is working as a relaxation oscillator - this is what is producing the waveform that will be turned to sound by the loudspeaker. The frequency of oscillation is controlled by R2 and a capacitor to ground. In this case, the outputs of U1 and U2 connect either C1 or C2 to ground, so we get a different tone for the high logic level to the low level (the high level sound will be about an octave above the low level sound). When the input is between the logic levels, no capacitor is selected and the output will be silent. For the output, I used a miniature 40 ohm loudspeaker.

Power comes from the circuit being tested (so the logic levels will relate to that supply voltage). The comparators will operate on anything from 3V up to 30V, so you could even use it with old 4000-series CMOS designs working on voltage rails higher than 5V. The levels here are for CMOS. If you wanted to use it with TTL levels you'd need to adapt it a bit - I'm going to leave that as an exercise for the reader.

 

Before I built it I tried in in a simulator. Here's the first half - the logic level comparison - with voltmeters to tell us what the output of each comparator is doing.

 

image

 

Here are the waveforms with a triangle wave as an input. You can see how U1 output goes low when it gets above about 3.5V and U2 goes low when it's below about 1.5V. That gives me confidence that it will work when I build it.

 

image

 

Here is the second half - the oscillator. I've just connected it with the 22nF capacitor. There's a voltmeter to measure the voltage across the speaker and an ammeter to show us the current through it.

 

image

 

Here are the waveforms. The waveform in the middle is computed by the simulator - I just asked it to multiply the volts by the amps to show power. It looks like the average power to the speaker is about 7mW. That's not all that much but we should be able to hear it and it keeps the power consumption of the probe quite low.

 

image

 

Now for the proof of the pudding. Here's the circuit built on a prototyping block

 

image

 

And, finally, here's the video of it beeping just to prove that it works. It's not very good but it will have to do. I'm touching the input (the yellow wire) on to the positive and negative supply wires in turn so you can hear the sound.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

If you don't like the design decisions I've made then it's simple - change it! The simplest starting point for experimentation is with the two capacitors that set the tone. Try different values and see what happens. If you've got an oscilloscope, maybe probe around the oscillator and see if you can understand what it's doing and why it oscillates. There's also a spare comparator in the package, so there's scope for adding functionality if you think it should be more capable. If you want to experiment further with comparators, download the datasheet here

 

http://www.ti.com/lit/ds/symlink/lm339.pdf

 

and you'll see that there are lots of handy circuit suggestions in it there that you can use directly or adapt. Any questions? Ask in the comments and I'll do my best to answer.

  • Sign in to reply

Top Comments

  • jc2048
    jc2048 over 8 years ago in reply to jw0752 +10
    This is the one I built a long, long time ago, in case you want ideas for the case. The tin originally contained tobacco (it came from my paternal grandfather who smoked a pipe). Personally, I'd use a…
  • shabaz
    shabaz over 8 years ago +7
    Drat. Now I need to come up with a xyz-4000 : ) A friend was shopping for a hair-dryer today, and it was a model xyz 3200 or something, which initially the store assistant assumed was 3200W, when really…
  • jw0752
    jw0752 over 8 years ago +7
    Hi Jon, I'm really starting to love this challenge as we now have at least two really neat little tools I can build. I like the idea of a logic level probe with sound as a lot of times one has to look…
  • mike_lm
    mike_lm over 8 years ago

    Well done, Jon!

     

    Nice project!

     

    Miguel

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 8 years ago

    I was going to suggest a logic probe for this project but you've beat me to it and done an excellent job too.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 8 years ago

    I like that it doesn't have one of those microwhatyoucallit things.

    They're just a fad and won't last anywhere near as long as valves.

     

    Logic probes certainly do have a purpose, and like all test equipment used correctly can assist in diagnosing the problem.

     

    I think you should enter it.

     

    Mark

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 8 years ago in reply to Jan Cumps

    Learn to love your simulator and you'll be able to do plots like this.

     

     

    image

     

    That's the step response of your Programmable Load with one of the capacitors being varied from 1nF to 5nF in steps of 1nF. Try telling me that's not useful. [That's a taster for the blogs I'm currently writing on its dynamic behaviour.]

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 8 years ago in reply to jc2048

    For those that can't find a suitable speaker, there is a 64 ohm speaker64 ohm speaker  that is low cost, I picked up a couple a while back (wanted to make a simple amplifier for some project that I can't recall. It is not as small as the headphone type though (about twice the diameter maybe).

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube