Danger Level


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!



    • Clocks Contest

      Clocks Contest
    • Water Contest

      Water Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    4 Discussions

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

    1 reply

    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


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

    1 reply

    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.