loading

We will make a Remote Control LED brightness controller, it is very simple. Comment below your question if you have any, I will love to answer them all. My blog for Latest Tech News and Some Projects Electronics Time.

Step 1: Things You Need

  • Arduino
  • IR sensor
  • LED
  • Any Remote Control
  • Battery
  • Battery clip
  • Arduino Power Cord
  • Bread board
  • Some connecting Wires

Step 2: Circuit Daigram

Simply Hooking up IR receive pin to pin 11 and other two pins of IR Sensor to 5V Supply and Ground of arduino. Connect LED to pin 9 and Ground.

Step 3: Code

Simply run the code in your Arduino IDE and see the beautiful project i action. But, first check your remote control signal by using the IR library on Github. FYI the IR library runs on Arduino IDE 1.0.5 so, if you have arduino IDE version 1.0.6 then downgrade it to 1.0.5 after saving your projects to other place in your PC. Link For Previous versions of IDE.

Step 4: Video Tutorial.

Subscribe to my blog Electronics Time for latest projects and TECH news. Hope you Enjoy the project.

<p>Looking For This T_T<br>Tnx ^_^</p>
<p>Here is the code for Latest 1.6.4 IDE </p><p>#include &lt;IRremote.h&gt; // use the library for IR</p><p>int RECV_PIN2 = 11; // pin 1 of IR receiver to Arduino digital pin 11</p><p>const int ledPin = 9;</p><p>int Led = 4;</p><p>int fadeValue;</p><p>int lastCounter = 1;</p><p>int counter;</p><p>IRrecv irrecv2(RECV_PIN2); // create instance of 'irrecv'</p><p>decode_results results2;</p><p>void setup()</p><p>{ </p><p> Serial.begin(9600);</p><p> pinMode(ledPin, OUTPUT);</p><p> irrecv2.enableIRIn();</p><p>}</p><p>void loop()</p><p>{</p><p> counter = lastCounter; </p><p> if (irrecv2.decode(&amp;results2))</p><p> {</p><p> if (results2.value == 1234924810)</p><p> {</p><p> counter ++;</p><p> }</p><p> if (results2.value == 4127085536)</p><p> {</p><p> counter --;</p><p> }</p><p> irrecv2.resume(); </p><p> }</p><p> if (counter == 5)</p><p> {</p><p> digitalWrite( Led , HIGH);</p><p> delay(500);</p><p> digitalWrite( Led , LOW);</p><p> delay(100);</p><p> }</p><p>if (counter &gt; 5){ //maximum for counter = 5</p><p> counter = 1;</p><p> }</p><p> if (counter &lt; 2){ //minimum for counter = 1</p><p> counter = 1;</p><p> }</p><p> switch (counter){ //depending on the counter the fadevalue is sent to the led</p><p> case 1:</p><p> fadeValue = 00;</p><p> break;</p><p> case 2:</p><p> fadeValue = 50;</p><p> break;</p><p> case 3:</p><p> fadeValue = 120;</p><p> break;</p><p> case 4:</p><p> fadeValue = 185;</p><p> break;</p><p> case 5:</p><p> fadeValue = 255;</p><p> break;</p><p> }</p><p> analogWrite(ledPin , fadeValue); //set led with PWM value</p><p> lastCounter=counter;</p><p>}</p><p>Thankx for the concept</p>

About This Instructable

6,314views

13favorites

License:

Bio: I am a student of Electronics and Communication Engineering. Who loves Travelling, Nature and above all ELECTRONICS and SOLDERING :p. Want to make a breakthrough ... More »
More by DivasG:Ultra-Portable Led Lamp Control LED brightness with Remote and Arduino Control RGB LED with arduino and Processing. 
Add instructable to: