Hello All!
I'm new to Arduino but I have been doing a great deal of research and have a project mostly thought out (and partially programmed) but was needing some expert advice on the best way to finalize the programming.
Project
Project is based on adding a "volume knob" to my Clarion Car Stereo; which only has "push buttons" currently. I have a sketch and breadboard wired up that reads the rotary encoder (new volume knob) and understands the clockwise/counterclockwise turns and displays each click as a positive increment or negative increment on an LCD screen.
Got this information from : FarrellF.com
Goal/Help Needed
My goal (and what I need help with) is adding code to the sketch that will allow an IR emitter to transmit the appropriate "remote code" to the IR receiver on the car stereo. I have the Clarion remote codes, so basically, I need help with how to tell the IR to send a "Volume Up" command if the encoder is turned clockwise. Likewise, I would need the IR to transmit a "volume down" command if the encoder is turned counterclockwise.
I plan on keeping the small LCD to have a graphical display of the encoder reading, but my car stereo also has a 7: LCD that will show the volume increasing/decreasing if everything is transmitted correctly.
Options?
Originally, I bounced a few ideas around on how to send the commands to the stereo. I could tap into the existing volume buttons (which is still an option), tap into the Steering Wheel Control inputs (don't know the protocol Clarion uses for this input), or use the IR receiver that was originally used for the wireless remote ( which died about 6 months after purchasing the unit). Since I know the remote codes and I can easily add additional functions with IR commands, this seemed the easiest and most expansive option for the short and long term.
So, can anyone assist me in what I need to add to the sketch to allow for the IR to transmit the appropriate remote codes based on the encoder's output? Again, I used the diagram and sketch from FarrellF.com This is where I am at this point.
Thank you very much in advance!!!!!