element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Beginner need some help getting started
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 416 subscribers
  • Views 462 views
  • Users 0 members are here
Related

Beginner need some help getting started

e14 Contributor
e14 Contributor over 13 years ago

I need some help on how to get started, I've done some minor electrical work and scripting so I have some of the very minor basics but don't really know how to get started.

 

What I am trying to do is use and Arduino to capture presses from a single button and blink 1 to 4 LED's based on the amount and length of presses and then use a long press to accept input and to turn on up to 1 to 4 relays that will power external lights on my car.

 

So I have 1 switch that I would like to use to control the 4 lights.

 

I'm not sure if this is possible and what is needed to make it all work right but here is my idea.

 

1 - 4 short button presses (like 1 second tap) followed by a longer press (like 2 second press) would flash the appropriate 1 - 4 LED.  I would like to be able to continue to short press and then Long press to select which other LED's to blink, so that I could blink ON LED's 1 and/or 2 and/or 3 and/or 4 and/or OFF 1 and/or 2 and/or 3 and/or 4 (so turn off the LED's if they were already blinking, if I turned on one I didn't want).  Once I can visually see which LED's are blinking then I want to accept the results by a long press (2 seconds press only, no short press) the LED's would then go solid (so no longer blink) and activate their corresponding relays to turn on the external lights my car.  A very Long Press (like 5 second press) would cancel/turn off all LED's if they were in the blinking state and/or solid state.

 

What devices would I need to accomplish this and are there any code examples that would help me accomplish this.

 

Am I over my head here this being my first project and all?

  • Sign in to reply
  • Cancel

Top Replies

  • ntewinkel
    ntewinkel over 13 years ago +1
    Hi Jeremiah, That's probably not too difficult as a first project goal. If you've never used Arduino before, I recommend trying the different pieces separately first. Oomlout has a great tutorial that…
  • ntewinkel
    ntewinkel over 13 years ago in reply to ntewinkel +1
    Oops, almost forgot - you will need some resistors: something in the order of 560 Ohm per LED, and a 10k Ohm for the button (the examples show how and where to use them)
  • ntewinkel
    ntewinkel over 13 years ago in reply to e14 Contributor +1
    Hi Jeremiah, Yes, that kit is designed to go with the Oomlout tutorial so it's kind of like buying a starter course in Arduino, which is nice. There is a bit of markup you pay for the convenience, as you…
  • ntewinkel
    0 ntewinkel over 13 years ago

    Hi Jeremiah,

     

    That's probably not too difficult as a first project goal.

     

    If you've never used Arduino before, I recommend trying the different pieces separately first. Oomlout has a great tutorial that covers the essentials. Specifically for your project you might want to try circuit 1 (LEDs) and circuit 7 (push buttons).

    http://www.oomlout.com/a/products/ardx/

     

    Also, keep in mind that pushbuttons do not provide clean on-off signals - when you press a button the microscopic sparking at push and at release can be interpreted as several on-off events. Check out this example on "debouncing" on how to get around that: http://arduino.cc/en/Tutorial/Debounce

     

    You won't need much to get started with this:

    A basic Arduino Uno

    USB connection cable (often included with the Arduino)

    the 4 LEDs you want to control

    the pushbutton

    Wires to hook it all up (the cheap solution is to use some old CAT5 solid-core wires, the better nicer solution is to buy the ones with nice ends on them)

     

    I think that's it!

     

    Good luck, let us know how it goes image

    If you keep a blog, maybe share your project results and source code to help others get started too!

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 13 years ago in reply to ntewinkel

    Oops, almost forgot - you will need some resistors: something in the order of 560 Ohm per LED, and a 10k Ohm for the button (the examples show how and where to use them)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to ntewinkel

    Great, thanks for the info, will this kit get me started?  http://www.abra-electronics.com/products/ARD%252d100-Experimenter%27s-Kit-for-Arduino-UNO.html

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 13 years ago in reply to e14 Contributor

    Hi Jeremiah,

     

    Yes, that kit is designed to go with the Oomlout tutorial so it's kind of like buying a starter course in Arduino, which is nice.

     

    There is a bit of markup you pay for the convenience, as you could probably source the parts separately for less, but the convenience might be worth it image

    The same kit is also available from other sources, like Adafruit (http://www.adafruit.com/products/170) and element14 (http://canada.newark.com/adafruit-industries/170/adafruit-ardx-v1-3-experimentation/dp/53W5761) - that's the Canadian e14/newark, so yours might be different.

     

    Many parts can also be found in household electronics. The motor can be removed from an old powered toothbrush, for example. The usual cautions apply, and you might want to stick with only scavenging parts from low-voltage devices.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube