Project tutorial
SMD LED Hacked!

SMD LED Hacked! © CC BY

I soldered SMD LED directly to wire and made them into THT LED, then used an Arduino to fade them.

  • 2,242 views
  • 0 comments
  • 6 respects

Components and supplies

About this project

Normally, we require a PCB for SMD LED so I tried to do something completely different by adding wire to them and connecting them in parallel configuration.

These LEDs are of.5 watt each.

Well, watch the video....

Code

CodeC/C++
its just the fade sketch but you can do a lot with these led, just use your creative imagination
int led = 9;           // the PWM pin the LED is attached to
int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

// the setup routine runs once when you press reset:
void setup() {
  // declare pin 9 to be an output:
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  // set the brightness of pin 9:
  analogWrite(led, brightness);

  // change the brightness for next time through the loop:
  brightness = brightness + fadeAmount;

  // reverse the direction of the fading at the ends of the fade:
  if (brightness <= 0 || brightness >= 255) {
    fadeAmount = -fadeAmount;
  }
  // wait for 30 milliseconds to see the dimming effect
  delay(30);
}

Schematics

Schematics
Arduino pwm led qb4ms4jidh

Comments

Similar projects you might like

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 17,299 views
  • 4 comments
  • 34 respects

LED Emergency Lights using WS2812 RGB LED Module

Project tutorial by bigboystoys13

  • 10,004 views
  • 5 comments
  • 20 respects

LED Blink Pattern

Project tutorial by Matt Arnold

  • 30,331 views
  • 14 comments
  • 84 respects

LED Cube

Project tutorial by Praditha Alwis

  • 5,037 views
  • 0 comments
  • 12 respects

Very First Hands On Arduino - Voice Activated LED

Project tutorial by Liren Yeo

  • 3,731 views
  • 2 comments
  • 18 respects

4x4x4 LED cube with Arduino Uno and 1sheeld

Project tutorial by Hassan Ibrahim

  • 29,722 views
  • 6 comments
  • 60 respects
Add projectSign up / Login