Introduction: Danger Level

Hello Everybody!

I am a total noob when it comes to Arduino, and today I wrote my first successful sketch! I wanted to share it and become a part of the Instructables community :)

What it does is use a potentiometer to turn LEDs on and off and blink them when the "danger level" becomes way to high.

What you need:

  • 1 potentiometer
  • 3 LEDs
  • 3 330 ohm resistors
  • 8 jumper wires
  • Arduino Uno and breadboard
  • copy of code (given)

See pictures if you have questions or leave a comment!

Comments

author
kmargie25 made it! (author)2014-08-22

Neat! Just wondering what arduino and case/breadboard are you use inch?

author
houstonino made it! (author)houstonino2014-08-23

Its the Sparkfun Redboard equivalent of the Uno. I am not to sure of what type of bread board it is.... I thought they were all standard. Anyways, its the one that came with the Redboard in the Sparkfun inventors kit that you can find on their website

https://www.sparkfun.com/

author
kmargie25 made it! (author)2014-08-22

I think it's cool! But what it exactly does it do? If you could be more specific it would be great! Thanks! Cool

author
houstonino made it! (author)houstonino2014-08-22

Thanks for the comment! It doesn't do much: the arduino reads the analog numbers (0-1023) coming from the potentiometer. If the number is less than 341, then only one LED is lit. If the number is between 342 and 683, then two LEDs light up. If the number is between 684 and 1000, then three LEDs light up. If the number is over 1000, then all three blink.

About This Instructable

381views

4favorites

License:

More by houstonino:Danger Level
Add instructable to: