Skip navigation

community

460 Views 10 Replies Latest reply: Feb 7, 2012 12:48 PM by Drew Fustini RSS
Currently Being Moderated

Feb 3, 2012 8:02 AM

Rookie Project: Inline IR/Bluetooth volume knob

So let me start by warning that I am a rookie to these forums and ive only done menial work in the hobby so far. Also, sorry in advance for the long post haha

 

I want to get into making some of my own electronics as a little hobby, and this seems like a good site to start on haha

In case I come off the wrong way,  I would never ask anyone to hold my hand and tell me exactly how to do this. All I am asking is to be pointed in the right direction. I can probably figure out the first project I am going to mention by reading the forums and doing some research, but it’s the second project that I really cant figure out how to start. Needless to say, the second project is something I really want to do haha

 

I have a nice entertainment center in my room, but I have some issues with my speakers. I don’t need speakers that are really good, so I picked up a set of some cheap cyber acoustics. Im no audiophile, so these sound great to me! (at least a lot better than the speakers built into my tv). I have them plugged into the audio ouput on my TV so anything I do on it (media center, xbox360, wii) plays through the speakers that are hooked up to it. The problem is my old Samsung LCD doesn’t change the volume on the external speakers when I change the volume on the tv.

 

I have an IR dongle rigged from an old xbox dvd dongle kit. It works great and i can adjust the volume comfortably with my remote when im using my media center, but not for anything else. I would very much like my volume to be controllable from afar no matter what im doing. right now i change volume from the wired volume knob my speakers came with. I like it, its not a big deal, but im a perfectionist and I want to learn how to make things

 

Basically, I want to make an inline volume knob to replace the one I already have, obviously making it better. I was thinking of making one from scratch, with a built in IR receiver. This way, I can control the volume by turning the dial, and also make the knob think the dial has moved one way or another  with a remote. That would solve my tiny little dilemma!

Of course I really don’t know where to start, and for some reason i haven’t found anything online to point me in the right direction. As long as its possible to do, Im sure ill figure it out eventually though.

 

The problem is that  I keep coming up with new things to add into my project, which caused my project to split into two different ones! My first project I want to add a headphone and aux jack on the knob, which shouldn’t be too difficult. I was even thinking of adding some LED lights to it (the one I am using now is lit up, and I love that!)

Perhaps that’s an easy project… but I want to do something even better! I wish I could take that knob around the room with me, like lie in bed with it by my side while I watch a movie. So my second project is to make a wireless knob with IR capabilities. Only thing is, I want to use Bluetooth… sounds ridiculous, im sure, but for what I want to do i think thats my answer.

 

I want to be able to plug in any set of headphones I have to the wirelesss knob, basically turning any headphones I have into wireless (kind of). I want to have a knob that can receive audio and send commands (and maybe even send audio) to a Bluetooth controller that handles all the volume changes. This controller would also be able to receive IR signals and change volume that way as well. The controller would take in the output of my tv as its source, manipulate volume, then pass it through to my speakers. The controller will look nice, and have a volume knob and mute button as well as headphones and aux jacks. The knob itself will obviously be battery powered, but I would like to allow it to charge via usb or the Bluetooth controller (which will have power from the wall). I would definitely want to have lights on it so I can find it at night and a hold button that would keep it from working but keep the lights on.

 

I am interested in doing the first project, but I really want to try to do the Bluetooth one. Ive never been one for baby steps haha. Like I said earlier, im not asking any of you to hold my hand. I am simply asking for your opinion on this project (for instance, is it practical? Is it possible to do yet such a pain that it wouldn’t be worth it even for the learning experience?) and for a finger in the right direction. Thank you in advance for your help. I spent some time drawing up some barbaric plans that are a little more detailed than what I just said. Thanks again!

 

FIRST PROJECT: IR VOLUME KNOB BASIC

project 1.jpg

Volume Knob:

- rotate freely left and right to control the volume

                - although it will keep turning, volume will cease to go higher or lower at certain levels.

- A hole would be cut out in the middle of the knob for a mute button

                - Mute button would not rotate with knob.

                - May consider a 2 second hold on the mute button for it to work if it gets pressed too easily

- On the side of the knob would be 2 female 3.5mm stereo jacks. One for headphones, one for aux

                - When headphone jack is plugged in, the audio will stop being sent to the speakers

                - When plugged in, the aux device will replace the normal source

- Knob would have a built in programmable IR receiver to control various volume functions via a universal remote (in my case, a harmony remote with a learning function)

                - when a signal is received, the knob will adjust the volume as if you turned it manually

- Knob gets its power from the wall

- May consider throwing some LED lights on it for fun, in which case I would need to add an on/off switch.

 

Main Adapter:

- Designed for better cable management.

- Has a male 3.5mm stereo plug that would plug into the output on the source for input.

                - This input would pass through the knob, then back to the main adapter again.

                                - This allows the knob to control the volume before being sent to the speakers

                - The main adapter has a female 3.5mm jack for speaker output that feeds from the knob output

 

 

 

PROJECT 2: WIRELESS VOLUME KNOB

project 2.png

Same functionality as the other project, this time using Bluetooth instead of wires.

 

Master Bluetooth controller:

-passes audio from the source to the speakers, adjusting the volume in the process.

- connects via Bluetooth to the Bluetooth volume knob

                - knob tells the controller how to adjust the volume

                - knob sends aux input to the Bluetooth controller (might consider removing feature)

                - controller sends audio feed to knob for headphones when needed

-    Has a built in programmable IR sensor that allows an IR remote to control volume like the knob

- Has a volume knob on it that spins freely left or right, controlling volume only up to and down to certain levels.  Also has a mute button. This is important in case you run out of batteries in the knob and lose your remote

                - Knob and button both light up via LEDs

- Has a 3.5mm female stereo jack for aux. When plugged in, aux replaces  the regular input source and/or the knobs aux source.

- Has a 3.5mm female stereo jack for headphones. When plugged in, the speakers become muted. Headphones can be used from both the controller’s jack and the knob’s jack at the same time

 

Bluetooth Knob:

- Sends Bluetooth commands to controller for volume control

- Receives audio input via Bluetooth for 3.5mm headphone jack

                - Speakers become muted if headphone is plugged in

- Sends audio via Bluetooth from aux jack. (might consider removing this feature)

                - replaces the normal source when the aux is plugged in

                - if aux is plugged in on controller as well as the knob, the aux on the knob will not play

- Knob spins freely left or right controlling volume only up to and down to certain levels

- hole cut out in center of knob for mute button. Mute button does not rotate with knob.

                - may consider requiring  user to hold mute button for 2 seconds  if its too easily  pressed.

- Lights up via LEDS when on

- Has an off switch on bottom to save batteries.

- Hold button on side to prevent accidental use while keeping the LED lights on.

- Battery powered. Not sure what kind of battery required yet. If rechargeable, then a charging port would be added to that it could charge via the Bluetooth controller and/or wall

Attributes

  • Drew Fustini Level 10 584 posts since
    Jul 31, 2009
    Currently Being Moderated
    1. Feb 3, 2012 1:02 PM (in response to T3h_Ph0x)
    Re: Rookie Project: Inline IR/Bluetooth volume knob

    Hello and welcome to element14

     

    I think your project is quite interesting.  I have a similar need where my I have external computer speakers connected to my cable box.  Unfortunately, I have no way to control the volume with a remote as I do with the builtin TV speakers.  I'm glad you posted as I had not been thinking that I should bother to figure out a solution.

     

    I like your idea of an inline volume control with remote control.  I noticed there is a kit from Ramsey that might be useful:

     

    MK163 - IR Stereo Volume Control Board Kit

    http://www.ramseyelectronics.com/cgi-bin/commerce.exe?preadd=action&key=MK163

     

    If you'd rather build it from the ground up, then I think that the Arduino prototyping platform would be a good way to go.  Do you have any microcontroller experience?

     

    The Arduino could interface with a digital potentiometer to adjust the audio volume.  There are several tutorials I can point to if interested.  Also, there are several good tutorials on how to do IR remote control of the Arduino.

     

    As for Bluetooth, if I understand correctly, then this would to interface the volume knob with the master controller?  Is that because you like RF as it doesn't require line of sight like IR?  I think you'd be better off using a different RF protocol as Bluetooth modules tend to be more pricey.  A cheaper alternative would be XBee (aka ZigBee).  There are many great tutorials for interfacing with Arduino.

     

    Finally, just a tip since you are new to element14, I think your post might be more relevant for the "Open Source Hardware" or "Embedded Systems" groups.   You can move this discussion thread if you'd like by clicking on "Move discussion" under the "Actions" box on the upper right hand side.  You might also want to create blog under your account to post about your progress - I'll definitely be interested to see how your design evolves.

     

    Cheers,

    Drew

  • Currently Being Moderated
    2. Feb 3, 2012 1:05 PM (in response to T3h_Ph0x)
    Re: Rookie Project: Inline IR/Bluetooth volume knob

    Hi

     

    I admire your enthusiasm, it nearly matches my own! I know exactly how you feel regarding the way a project grows, I guess you have an inventors soul. Do not try to stifle it!

     

    Your project is entirely possible, wether or not it is practical is something you should not worry about, as you are making it to use yourself.

     

    I have designed a Bluetooth speaker for my garden shelter, you can connect with a bluetooth phone and play what you like, I am hoping to have time to redesign and add a playlist feature.

     

    Take a look at some Bluetooth modules...search google for small form factor Bluetooth pcb modules like the MDCS51B class 2 module.

     

    Also it might help to draw yourself a flowchart, It will help your mind to focus, and will allow you to break the system down into smaller steps.

     

    Take each step at a time, and write down everything in your project notebook.

     

    And then when you need help, you will be able to ask for it in a more concise manner.

     

    Good Luck!

  • Drew Fustini Level 10 584 posts since
    Jul 31, 2009

    I just noticed the Ramsey kit uses a volume control IC which probably would work better than just a plain digital pot:

     

    http://pdf1.alldatasheet.com/datasheet-pdf/view/32185/TOSHIBA/TC9413AP.html

     

    Looks like that part is not easy to get but there seem to be several alternatives for this type of part.

  • Drew Fustini Level 10 584 posts since
    Jul 31, 2009
    Currently Being Moderated
    4. Feb 3, 2012 1:12 PM (in response to robotonics)
    Re: Rookie Project: Inline IR/Bluetooth volume knob

    As an aside, thanks for the comment on the Bluetooth module.  I've only used and seen modules which do SPP (like from SparkFun).  I really like that this one has A2DP.  Curious, what type of processor did you use in the project?

  • Drew Fustini Level 10 584 posts since
    Jul 31, 2009

    You really sparked my interest in solving my own volume control need

     

    Turns out the kit I linked to from Ramsey was made by Velleman:

     

    MK163

    http://www.vellemanusa.com/products/view/?id=521411

     

    MK164

    http://www.vellemanusa.com/products/view/?id=521414

     

    The schematic PDF shows that the full circuit which you could definitely use to guide your own custom project.  There is a PIC microcontroller that interfaces with the IR sensor and then controls the Toshiba volume control chip.

     

    MK164 comes with a complete enclosure with jacks.  This 2-channel remote looks to work with either kit:

     

    MK162

    http://www.vellemanusa.com/products/view/?id=500343

     

    I think I'm going to try to order the MK164 and MK162 from a distributor (unfortunately Ramsey doesn't have MK164).  I'll let you know how it goes in case you want to integrate into your project.

     

    Thanks,

    Drew

  • Hi Drew

     

    So many projects,and my mind is full tonight, I used a PIC30F6010A.

     

    I know it was slight overkill, however at the time I had some new samples so got to work with this chip. The system is slightly more complex as it is solar powered and also stores temp, humidity, and light intensity.

     

    SInce I joined Element 14 I have been impressed with the community as a whole, and therefore given time I will post more detailed build instructions on my site and provide links.

     

    I will start with this as it may be of use to you both to have another  'system' to ponder on.

     

    I will follow your progress with interest too!

  • Drew Fustini Level 10 584 posts since
    Jul 31, 2009
    Currently Being Moderated
    7. Feb 3, 2012 2:20 PM (in response to robotonics)
    Re: Rookie Project: Inline IR/Bluetooth volume knob

    Ah, a dsPIC.  Interesting, I've only used PIC16 and PIC18 before but had thought it would be good to try one someday.  Thanks for sharing, and I look forward to reading more about your build when you manage to find time.

     

    Thanks,

    Drew

  • Drew Fustini Level 10 584 posts since
    Jul 31, 2009
    Currently Being Moderated
    10. Feb 7, 2012 12:48 PM (in response to T3h_Ph0x)
    Re: Rookie Project: Inline IR/Bluetooth volume knob

    Hi Evocator, glad to see your mod worked and your ideas are progressing.  If you get the Velleman volume controller, then I think you could make an IR controller with a dial. 

     

    One idea would be to get the MK162 2-channel remote and control it with another microcontroller (let's say an Arduino) which has a rotary encoder attached.  The MK162 does come with a simple microcontroller already, a PIC12, which controls the IR emitter.  If you had the source code and the ability to program it, then you could probably just modify it to use a rotary encoder directly.

     

    However, it would be easier to use a secondary microcontroller like an Arduino.  Instead of placing the push buttons on the MK162, wires would go from those pads to the Arduino.  The Arduino could then trigger the remote to change volume up or down.  The Arduino would do so based on input from a rotary encoder.  Here's an Arduino example on SparkFun: http://www.sparkfun.com/products/9117

     

    This might all sound a bit bulky but you can save alot of space by constructing your own Arduino circuit on a perfboard using a kit like the Mintduino:

     

    http://www.makershed.com/Mintronics_MintDuino_p/mstin3.htm

     

    or using a small Arduino clone like the Arduino Nano:

     

    http://www.newark.com/arduino/a000005/arduino-nano-board/dp/13T9275?Ntt=arduino+nano

     

    or the Pro Mini:

     

    http://www.sparkfun.com/products/9218

     

     

    Alternatively, you could just use the MK162 remote to figure out the IR coding scheme and then integrate the IR emitter into the Arduino.  This would make for even a nicer package.  If you have access to a digital scope or logic analyzer then that should be doable.  Adafruit has a great tutorial on this:

     

    http://www.ladyada.net/learn/sensors/ir.html

     

    (BTW, if you happen to be in the market for a logic analyzer, I highly recommend the Saleae Logic: http://www.saleae.com/Logic)

     

    Cheers,

    Drew

Related Content


Related Products
Discussions
  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 50 points
  • Helpful Answers - 25 points