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!

Share

    Recommendations

    • PCB Contest

      PCB Contest
    • First Time Author

      First Time Author
    • Big and Small Contest

      Big and Small Contest

    4 Discussions

    0
    None
    kmargie25

    4 years ago

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

    1 reply
    0
    None
    houstoninokmargie25

    Reply 4 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/

    0
    None
    kmargie25

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

    Reply 4 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.