Arduino Input & Output

Drawing from last week’s project, I decided to use the Arduino to make the switch do what I wanted it to. I wanted the red LED to light when a goal was scored.

The input is the switch. When the switch is on the red LED turns on, making redLED the output. When a goal is scored the switch is engaged, thus the red LED turns on. Simultaneously, the Serial Monitor prints the text “GOOOAAAALLLL!!” when a goal is scored.

Screen Shot 2015-09-23 at 2.06.29 PM
Here is the my code to the right. The Serial Monitor is displayed on the left. GOOOAAAALLLL!!!!

Here is a video of the project. You will notice when the ball hits the net/foil the red LED turns on. It’s a little difficult to view here. I also show how the program is responding to the ball touching the goal. While the ball can be heard rolling in the background, we see the Serial Monitor updating and printing more lines of “GOOOAAAALLLL!!!”

Input/Output from hnikita on Vimeo.

Though this is a simple circuit, it allowed me to review the basics of coding we learned last week. My creativity might not be top notch (yet) but the brain is keeping up with the learning!!! 🙂

142 thoughts on “Arduino Input & Output”

  1. I enjoy you because of all of your effort on this blog. Debby delights in conducting internet research and it’s easy to see why. A number of us hear all about the compelling manner you create effective guides by means of the blog and boost contribution from other ones about this area of interest and my child has been becoming educated a lot of things. Have fun with the remaining portion of the new year. You are conducting a really good job.

  2. Needed to send you this very little word to finally thank you so much the moment again relating to the striking things you have shared on this site. This has been simply tremendously open-handed with you to present unreservedly what most people would have sold for an electronic book to help with making some profit on their own, primarily seeing that you might well have tried it in the event you wanted. Those techniques likewise worked to become a great way to recognize that someone else have the same passion similar to my very own to see somewhat more with regard to this problem. I know there are some more pleasurable situations up front for people who see your website.

  3. I enjoy you because of all of the effort on this blog. Betty delights in carrying out internet research and it’s easy to see why. A lot of people hear all about the compelling form you convey both interesting and useful guidelines by means of the blog and attract contribution from other individuals about this area and my child has always been becoming educated a great deal. Enjoy the remaining portion of the new year. You’re carrying out a dazzling job.

  4. I am just writing to make you understand what a outstanding experience my wife’s girl obtained using your web site. She noticed so many pieces, which included what it is like to possess an excellent helping nature to let other people with ease learn specific specialized things. You truly surpassed people’s expected results. Thank you for producing these precious, trusted, informative and in addition fun tips about this topic to Lizeth.

  5. I simply wanted to thank you so much once more. I am not sure the things that I would’ve made to happen without the type of smart ideas revealed by you over that situation. It seemed to be an absolute hard issue in my opinion, however , seeing the very specialised strategy you resolved that made me to leap over gladness. I am just happy for this information and then pray you know what a great job you are getting into instructing others through the use of your site. I know that you have never encountered all of us.

  6. It is the best time to make some plans for the future and it’s time to be happy. I’ve read this post and if I could I want to suggest you some interesting things or suggestions. Perhaps you could write next “오피업소“articles referring this article. I wish to read even more things about it!

  7. I will immediately take hold of your rss feed as
    I can not to find your e-mail subscription link or newsletter service.
    Do you have any? Please allow me know so that I may just subscribe.
    Thanks.

  8. Pingback: acheter cialis
  9. Pingback: cialis 5 mg
  10. Pingback: cialis from canada
  11. Pingback: sildenafil teva
  12. Pingback: vardenafil
  13. Pingback: sildenafil stories
  14. Pingback: sildenafil reviews
  15. Pingback: viagra connect
  16. I’ll immediately seize your rss as I can not find your email subscription hyperlink or e-newsletter
    service. Do you’ve any? Kindly permit me realize in order
    that I may just subscribe. Thanks.

  17. I will immediately clutch your rss feed as I can not in finding your
    e-mail subscription hyperlink or e-newsletter
    service. Do you have any? Kindly allow me recognise so that
    I may subscribe. Thanks.

  18. Sweet blog! I found it while browsing on Yahoo News. Do you have any tips on how to get listed in Yahoo
    News? I’ve been trying for a while but I never seem
    to get there! Many thanks

  19. Howdy, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam remarks?

    If so how do you protect against it, any plugin or anything you can suggest?
    I get so much lately it’s driving me insane so any support is very much appreciated.

  20. I simply couldn’t leave your web site prior to suggesting that I extremely loved
    the standard info a person provide in your guests? Is gonna be again often in order to check up
    on new posts

  21. Wow, wonderful blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your web
    site is magnificent, as well as the content!

  22. Amazing! This blog looks exactly like my old one! It’s
    on a completely different topic but it has pretty much the same layout and design.
    Wonderful choice of colors!

  23. Pingback: viagra problems
  24. Pingback: stendra vs viagra
  25. Pingback: viagra fuck nurse
  26. Pingback: cialis cocaine
  27. Pingback: gnc natural viagra
  28. Pingback: all about viagra
  29. Pingback: pfizer cialis otc
  30. Pingback: cialis otc fda
  31. Pingback: what is cephalexin
  32. Pingback: uses for cymbalta
  33. I’ve been surfing online more than 3 hours these days, yet I never found any interesting article like yours.
    It’s pretty worth sufficient for me. In my view, if all web owners and bloggers made excellent content as you
    did, the web shall be much more helpful than ever before.

  34. I will immediately take hold of your rss as I can not in finding your email subscription link or
    newsletter service. Do you have any? Kindly allow me realize in order that I may subscribe.
    Thanks.

  35. Hi colleagues, how is the whole thing, and what you want to say concerning
    this post, in my view its actually remarkable
    for me.

  36. Hello, i read your blog from time to time and i own a similar one
    and i was just curious if you get a lot of spam comments?

    If so how do you reduce it, any plugin or anything you can suggest?
    I get so much lately it’s driving me crazy so any assistance
    is very much appreciated.

  37. When I initially commented I clicked the “Notify me when new comments are added” checkbox and
    now each time a comment is added I get three e-mails with the same
    comment. Is there any way you can remove people from that service?
    Thanks a lot!

  38. I have been surfing on-line greater than 3 hours these days, but I
    never found any interesting article like yours. It’s pretty value sufficient for me.
    Personally, if all web owners and bloggers made just right
    content material as you did, the internet can be much more useful than ever before.

  39. It is the best time to make a few plans for the long run and it
    is time to be happy. I’ve read this put up and if I may I desire to counsel you few interesting things or tips.
    Maybe you can write next articles referring to this article.
    I want to read even more things approximately it!

  40. It’s perfect time to make a few plans for the longer term and
    it’s time to be happy. I’ve read this put up and if I could I want to
    counsel you few attention-grabbing issues or advice.
    Maybe you could write next articles relating to this article.
    I want to read even more issues approximately it!

Leave a Reply

Your email address will not be published.