DIY编程器网

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 133|回复: 0
打印 上一主题 下一主题

音量指示器

[复制链接]
跳转到指定楼层
楼主
发表于 2012-1-22 00:21:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
音量指示器--Sound Level IndicatorThis project uses an LM3915 bar-graph IC driving two sets of ten LEDs for a 30dB range. The circuit is unique because it has an additional range of 20dB provided by an automatic gain control to allow it to be very sensitive to low sound levels but it increases its range 20dB for loud sounds.

The LEDs are operating at 26mA each with the brightness control at maximum, which is very bright. The circuit has a switch to select the modes of operation: a moving dot of light, or a bar with a changing length.My prototype has a little 9V Ni-Cad rechargeable battery in it to be portable and the battery is trickle-charged when the project is powered by a 9V AC-DC adapter.Circuit Description1) The electret microphone is powered by and has a load of R1 from an LM2931 5V low-dropout regulator.2) The 1st opamp stage is an audio preamp with a gain of 101.3) The 2nd opamp stage is a single-supply opamp which works fine with its inputs and output at ground and is used as a rectifier driver with a gain of 1.8. It is biased at ground. Since it is inverting, when its input swings negative, its output swings positive.4) Three 2N3904 transistors are used as emitter-followers:a) Q1 is inside the negative feedback loop of the 2nd opamp as a voltage reference for the other two transistors. Hopefully the transistors match each other.b) Q2 emitter-follower transistor quickly charges C8 which discharges slower into R13 and is used as a peak detector.c) Q3 transistor is the automatic gain control. It is also a peak detector but has slower charge and discharge times. It drives the comparators’ resistor ladder in the LM3915 to determine how sensitive it is. R15 from +5V is in a voltage divider with the ladder’s total resistance of about 25k and provides the top of the ladder with about +0.51V when there is a very low sound level detected. Loud sounds cause Q3 to drive the top of the ladder to 5.1V for reduced sensitivity.5) The LM3915 regulates the current for the LEDs so they don’t need current-limiting resistors. In the bar mode with all LEDs lit then the LM3915 gets hot so the 10 ohm/1W resistor R16 shares the heat.
                          
                       
                          
                               

Options1) You could use a switch to change the brightness instead of a pot, or leave it bright.2) You could use an LM358 dual opamp (I tried it) but its output drops above 4Khz. The MC33172 is flat to 20kHz with this high gain.3) You could add a 1uF to 2.2uF capacitor across R5 so the indicator responds only to bass or “the beat” of music. Then an LM358 dual opamp is fine.

Construction1) The stripboard layout was designed for a Hammond 1591B plastic box with space in the lower end for a rechargeable 9V battery. One bolt holds the circuit board and a second bolt was cut short as a guide.2) A second piece of stripboard was used on a diagonal to space the LEDs closely together. A few LEDs needed their rim to be filed slightly to fit.3) A third piece of stripboard was used as a separating wall for the battery and it interlocks with the LEDs stripboard to hold it in place.4) 11-wire flexible ribbon cable connects to the LEDs.5) Use shielded audio from the microphone and a rubber grommet holding it.


                          
                       
                          
                               
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享分享 支持支持 反对反对
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|文字版|手机版|DIY编程器网 ( 桂ICP备14005565号-1 )

GMT+8, 2025-9-21 19:19 , 耗时 0.082548 秒, 18 个查询请求 , Gzip 开启.

各位嘉宾言论仅代表个人观点,非属DIY编程器网立场。

桂公网安备 45031202000115号

DIY编程器群(超员):41210778 DIY编程器

DIY编程器群1(满员):3044634 DIY编程器1

diy编程器群2:551025008 diy编程器群2

QQ:28000622;Email:libyoufer@sina.com

本站由桂林市临桂区技兴电子商务经营部独家赞助。旨在技术交流,请自觉遵守国家法律法规,一旦发现将做封号删号处理。

快速回复 返回顶部 返回列表