When I have finished building my speakers (which hasn't been shipped yet...) I will start finishing my amplifiers (the AMP10-Basic and the AMP15 PS-XP) and then sell my current Harman Kardon HK3490. That will put me without volume control and remote control. Since I don't have the need for a full-scale pre-amplifier I was thinking of just having a simple volume control that can be controlled with a remote control.
I consulted my friend Daniel who has lots of knowledge of electronics and such things and he said that we could try it right here and now.
So we started out with a simple IR remote that my friend Robin had, and then an IR-reciever and an Arduino CPU. We found a simple servo in a box too. We started with making sure the IR-reciever worked, by connecting an LED and made it blink everytime the Arduino got a signal from the IR-reciever. Robin did all the programming while I was looking and thinking of the next step. I could probably have programmed that myself but since he is way better than me at programming I let him do the job (and the computer we were using was running Linux and I have no idea how that works).
The IR-Reciever. Ignore the resistor, we had the LED placed there before but removed it before this picture was taken. |
The next step was to connect the servo to the Arduino board and get that working properly. We managed to get it moving without the remote control at first. Then we implemented that code to the IR remote control and made it possible to control the servo with the + and - buttons on the remote. It was moving very slowly and you couldn't hold the button down, you had to press again to make it move another one degree.
This is with the servo installed (servo not in the picture though, only the cables). |
Then we started working on an ON/OFF function. In the final product I guess we'll control a relay to turn it on and off but for this experiment we decided to try to turn on and off an LED diode. Unfortunately we ran out of time but we think we know how to do it. Connect the LED to an output on the Arduino board and then control the output and set it to either HIGH or LOW. The code for that is really simple and shouldn't pose any problems.
This is how we tried to connect the LED. Robin found some guide on the Interwebs saying it was possible to do like this. |
What I imagine the final product to be like is an IR remote control with volume up, volume down, on/off and mute buttons. I will then make a tiny case being the "pre-amplifier" housing a potentiometer to control the volym, a mute switch as described above and then some function to cut the power to the amplifiers.
For guidance we used this page http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
No comments:
Post a Comment