Pages: [1]   Go Down
Author Topic: Need programmatic volume control of a PWM driven speaker  (Read 611 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry if this has been asked before, or there is an obvious answer as I did not find it. I would like programmatic control of the volume of a speaker that is driven from a PWM channel (probably through a simple audio amp chip circuit). It seems like I should be able to control volume through an analog channel as a gain control but I have no clue how I would do it. Please keep in mind that this is a small portable toy application for my grand daughter so I'm trying to keep the cost down. Thanks.
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It seems like I should be able to control volume through an analog channel as a gain control but I have no clue how I would do it.

It seems like unless you figure out how to control the volume for sure, there is no point in discussing how to program your arduino to control it.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

..."but I have no clue how I would do it" refers to how to create the circuit.

My question wasn't worded very well. I don't want to know how to program it, just how I would connect it up so could write a program to control it.
« Last Edit: November 11, 2012, 07:42:13 pm by ddmcf » Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My answer definitely wasn't worded very well. Without knowing how to control it, it makes no sense to connect them and to write any program to control it.
Logged

Offline Offline
Sr. Member
****
Karma: 6
Posts: 429
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If I am interpreting your question correctly...

I`ve given a similar answer in the audio section of the forum.
PWM - low pass filter - voltage controlled amplifier.
http://arduino.cc/forum/index.php/topic,131626.0.html
or
Amp with digital volume control
http://www.ebay.com/itm/170850491058
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Perfect! Sorry for the duplicate question.
Logged

Pages: [1]   Go Up
Jump to: