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!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Tech Contest

Participated in the
Tech Contest

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    4 Discussions

    None
    kmargie25

    5 years ago

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

    1 reply
    None
    houstoninokmargie25

    Reply 5 years ago on Introduction

    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/

    None
    kmargie25

    5 years ago

    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
    None
    houstoninokmargie25

    Reply 5 years ago on Introduction

    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.