Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Arduino PWM Variable LED Chaser

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,050
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 29, 2009

This project builds upon the previous one. I added in a variable pot to control the delay speed of the LED's. It introduces analog readings.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (andrew1056)

  • Actually the Arduino has a 1.5A regulator onboard so it can easily supply 60ma to the led's.

  • This code is designed for a chaser and I don't think it works well with just one led. What are you trying to accomplish?

    You could hook up just 2 pins, but I chose to hook up 3. Arduino pin to pot to ground should work.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • @j03tv The pot has 3 pins, he's applying power to 1 and 3 (ground to 1, and +5V to 3), and 2 acht as a refrence between those two

  • @pavlik6 some LED's have built-in resistors, maybe these too.

    ans you're right, only pin13 has a built in resistor

  • Thats awesome ! :) could you please tell me where you got your code. I like your green LEDs :)

  • dude, 6 led's on at once.... At least 60mA... u can say bye bye arduino

  • Hey. What is the minimum amount of digital pins required to accomplish this? I'm asking as I am going to hook a VRBot to the Arduino. I'd like vocal cue's to trigger a LED chase. How many pins will I need for this?

  • You are conecting the led direcly, with no resistense. I think that maje damage to the led, no?

    As I remmeber only the 13 pin has output resistence, am I right?

  • Also, im curious as to why you have to hook up all 3 pins of the POT. Shouldn't you only need 2? Since pin 1 and 3 just control the direction.

    Thanks

  • Hey, nice tutorial on your site.

    I have a problem though. I am only using one LED and everything works fine with readings *3 and *7, but I noticed when you change the multiplier to a higher number, say 5 thru 20, it trips up when you turn the POT about half way. The timing gets slower instead of faster and at almost full turn it does go faster but at about 2 degrees from max it slows again a little bit. Do you know of a way to correct this? I'm using 1 LED and a 10k Pot with a switch.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more