Offline
Newbie
Karma: 0
Posts: 26
|
 |
« on: March 21, 2012, 03:02:53 am » |
I would like to use my arduino to an simple volume control. I can do the programing and the digital side of project, but I don't know how can i do the variable resisting to the line signal. I attached a basic image to better understanding.  I would like to control the volume for example web or an rotary encoder or buttons but this side I can do. I don't need any amplifiering just decrease the line signal Thank you anybody to help (Sorry for my English)
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: March 21, 2012, 03:23:47 am » |
Would a digital potentiometer do the job?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #2 on: March 21, 2012, 05:59:13 am » |
In normal case I use a simple 1 MOhm potentiometer for this job. I would like to replace the potentiometer with arduino
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #3 on: March 21, 2012, 06:14:00 am » |
You could attach a servo to the shaft of the 1Mohm potentiometer, and use the Arduino to drive servo. Or you could use a digital potentiometer in place of the 1Mohm potentiometer, controlled by the Arduino.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25517
Solder is electric glue
|
 |
« Reply #4 on: March 21, 2012, 06:17:07 am » |
You need to attach something to your arduino to do this, you can't do it directly. The first suggestion of a digital pot sounds good to me.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #5 on: March 21, 2012, 06:29:21 am » |
Thanks to reply!
Can anybody sugests me an digital potentimeter solution on the web what working with arduino?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25517
Solder is electric glue
|
 |
« Reply #6 on: March 21, 2012, 06:31:10 am » |
You could always google Digital pot arduino But then what do I know?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 777
|
 |
« Reply #7 on: March 21, 2012, 12:54:42 pm » |
In normal case I use a simple 1 MOhm potentiometer for this job. I would like to replace the potentiometer with arduino No... Not 1 Meg... Not if your volume control is in-between the audio player and your headphones. Most headphones are around 32 - 64 ohms. Some "high-impedance" headphones are 600 ohms. A 100 ohm pot is more like it.  A volume control on the line-level input-side of a headphone amp would be in the range of 10k - 100k ohms. A pot on a guitar amp input might be 1M. I encourage you to experiment with a regular (mechanical) pot (or a pair for stereo) before you buy a digital pot. Also, volume controls are not regular linear pots. They have an "audio taper" (approximately logarithimic). You will need to program that into your firmware (sketch), or else "half-way" will sound too loud... But that's something you can experiment with once you get it working.
|
|
|
|
« Last Edit: March 21, 2012, 01:01:22 pm by DVDdoug »
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #8 on: March 21, 2012, 03:11:28 pm » |
Can anybody sugests me an digital potentimeter solution on the web what working with arduino? http://arduino.cc/en/Tutorial/DigitalPotentiometer
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #9 on: April 01, 2012, 08:19:02 am » |
Thank you for all suggestion. Now i bought the arduino and ad5206 100Kohm digitalpot. How can I connect the line signal to the ic? Need anythying between the ic and the audio source line signal? Sorry but I'm an amateur in the electronics, I'm just a programmer. 
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25517
Solder is electric glue
|
 |
« Reply #10 on: April 01, 2012, 01:16:35 pm » |
How can I connect the line signal to the ic? To pin A1. Pin B1 to signal ground and pin W1 to the input of the amplifier. Make sure that your signal voltages are within the range of the power supply of the chip.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #11 on: April 06, 2012, 03:05:36 pm » |
Why must to connect the signal ground all chanel pot??? On a simple potentiometer I must to connect only the signal, or not?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25517
Solder is electric glue
|
 |
« Reply #12 on: April 06, 2012, 04:01:01 pm » |
On a simple potentiometer I must to connect only the signal, or not? No idea what that means can you use some other words to try and express this please. You have to connect the ground to a pot to get a potential divider action.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 26
|
 |
« Reply #13 on: April 11, 2012, 08:39:30 am » |
Hy All!
Now I built my Arduino Shield but My SPI Pins are reserving by rfm12b transreciver. Hoe can I use the digital pot from other digital pins? I soldered the CLK to pin 7 SDI to pin 6 CS to pin 5
My idea is I write my own library what looks like the SPI library Or any other Idea?
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #14 on: April 11, 2012, 11:06:35 am » |
Hmm... Well first of all you can have more than one device use the SPI bus, you just use a different CS pin for each device but MOSI, MISO, and SCK/CLK, are shared between all devices, then you can use SPI.transfer() etc. like normal. But if you've already soldered the pins then you're stuck with what you have. In that case you can Google things like "arduino bit bang SPI" or "arduino manual SPI" if you don't want to write your own library from scratch. Here's a good one: http://little-scale.blogspot.com/2007/07/spi-by-hand.htmlGood luck!
|
|
|
|
|
Logged
|
|
|
|
|
|