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!!! 🙂

1,431 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!

  41. Pingback: cialis on line
  42. Pingback: home made viagra
  43. Pingback: cialis paypal uk
  44. Pingback: cialis capsule 5mg
  45. Pingback: viagra pill cutter
  46. Pingback: tadalafil dose
  47. Pingback: cost cialis 5mg
  48. Pingback: canada viagra cost
  49. I’ve been surfing online more than 2 hours today, yet I never found any interesting article
    like yours. It’s pretty worth enough for me. Personally, if all webmasters and bloggers made
    good content as you did, the net will be a lot more useful than ever before.

  50. I really love your site.. Very nice colors & theme.
    Did you make this website yourself? Please
    reply back as I’m hoping to create my own personal blog
    and want to learn where you got this from or what
    the theme is named. Thanks!

  51. Ahaa, its fastidious dialogue on the topic of this
    paragraph here at this weblog, I have read all that, so now me also commenting at this place.

  52. It is appropriate time to make some plans for the long
    run and it’s time to be happy. I’ve read this put up and if I may just I want to counsel you some attention-grabbing things
    or advice. Perhaps you could write subsequent articles regarding this article.

    I desire to read even more things about it!

  53. It’s perfect 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 few interesting things or suggestions. Maybe you can write next articles referring
    to this article. I want to read more things about it!

  54. Hello I am so grateful I found your website, I really found you by error,while I was looking on Yahoo for something else, Nonetheless I am here now and would just like to say thanks for a fantastic post and a allround entertaining blog (I also love the theme/design), Idon’t have time to read through it all at the moment but I have bookmarked it andalso added your RSS feeds, so when I have time I will be back to read more, Pleasedo keep up the superb b.

  55. You made some decent points there. I looked on the net for more info
    about the issue and found most individuals will go along with your views on this web
    site.

  56. I’ve been surfing online more than three hours today, yet I never found any interesting article like yours.

    It is pretty worth enough for me. Personally, if all site owners and bloggers made good content as you
    did, the internet will be much more useful than ever before.

  57. Hello, Neat post. There is an issue together with your site in internet explorer, would check this… IE nonetheless is the marketplace leader and a big portion of other folks will omit your magnificent writing because of this problem.

  58. I enjoy what you guys are usually up too. This type of clever work and reporting!

    Keep up the good works guys I’ve incorporated you guys to my blogroll.

  59. Hi there would you mind letting me know which web host you’re utilizing?

    I’ve loaded your blog in 3 different browsers and I
    must say this blog loads a lot quicker then most.
    Can you suggest a good internet hosting provider at a honest price?
    Thanks a lot, I appreciate it!

  60. I will right away snatch your rss feed as I can’t to find your email subscription hyperlink or newsletter service.

    Do you have any? Please allow me recognize in order that I may subscribe.
    Thanks.

  61. I have been browsing online more than 2 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. In my opinion, if all web
    owners and bloggers made good content as you did,
    the web will be a lot more useful than ever before.

  62. I’m impressed, I have to admit. Seldom do I encounter
    a blog that’s both educative and entertaining, and without a doubt, you have hit the nail on the head.

    The issue is something which not enough men and women are speaking intelligently about.
    I am very happy I found this in my hunt for something relating to this.

  63. I absolutely love your website.. Excellent colors & theme.
    Did you create this amazing site yourself? Please reply back as I’m trying to create my own site and
    would love to find out where you got this from or exactly what the theme
    is called. Many thanks!

  64. I was moving a FAT-formatted HDD between my PC and iBook when this happened to me (I forget which direction I was gong at the time – back to my Mac as I recall) – and
    poof” – 400 GB gone in an instant, $200 to recover 90% of it.

  65. Hello! Someone in my Facebook group shared this website with us so I came to check it out.
    I’m definitely enjoying the information. I’m book-marking and will be
    tweeting this to my followers! Wonderful blog and amazing style and
    design.

  66. Hi would you mind letting me know which web host you’re
    using? I’ve loaded your blog in 3 completely different
    web browsers and I must say this blog loads a lot faster then most.

    Can you suggest a good web hosting provider at a honest price?
    Kudos, I appreciate it!

  67. I will right away seize your rss as I can not find your e-mail subscription link or newsletter
    service. Do you have any? Please allow me know in order that I could
    subscribe. Thanks.

  68. Hi, Neat post. There’s an issue along with your web site in web explorer,
    could check this? IE still is the marketplace leader and a
    big part of other folks will omit your excellent writing due to this
    problem.

  69. Hello, i believe that i saw you visited my site so i
    got here to return the desire?.I am attempting to in finding things to improve my web
    site!I suppose its adequate to make use of a few of your concepts!!

  70. It is appropriate time to make some plans for
    the longer term and it is time to be happy. I’ve learn this submit and if I could I desire
    to recommend you some interesting issues or advice.
    Perhaps you could write next articles relating to this article.
    I want to learn even more issues approximately it!

  71. Thanks for sharing your ideas on this blog. As well, a myth regarding the lenders intentions when talking about foreclosed is that the traditional bank will not have my repayments. There is a certain quantity of time which the bank will take payments in some places. If you are way too deep in the hole, they should commonly demand that you pay the payment in full. However, that doesn’t mean that they will have any sort of payments at all. In case you and the traditional bank can have the ability to work a little something out, the actual foreclosure approach may stop. However, in the event you continue to neglect payments underneath the new approach, the foreclosure process can just pick up where it was left off.

  72. Hello just wanted to give you a quick heads up. The text in your article
    seem to be running off the screen in Opera. I’m not sure if
    this is a format issue or something to do with internet browser compatibility but I thought
    I’d post to let you know. The style and design look great though!
    Hope you get the problem solved soon. Cheers

  73. Thanks for the distinct tips shared on this blog site. I have seen that many insurance companies offer prospects generous discount rates if they decide to insure multiple cars with them. A significant volume of households have several vehicles these days, specially those with older teenage youngsters still dwelling at home, as well as the savings for policies can certainly soon increase. So it pays to look for a great deal.

  74. I’ve been browsing online more than three hours today, yet I
    never found any interesting article like yours.
    It’s pretty worth enough for me. Personally, if all website owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

  75. Have you ever thought about publishing an ebook or guest
    authoring on other websites? I have a blog centered on the same topics you discuss and would love to
    have you share some stories/information. I know my visitors would enjoy your work.
    If you’re even remotely interested, feel free to send me an e mail.

  76. Hey just wanted to give you a quick heads up. The text in your content seem to be running off
    the screen in Chrome. I’m not sure if this is a format
    issue or something to do with internet browser compatibility but I figured I’d
    post to let you know. The design look great though! Hope you get the issue fixed soon.
    Thanks

  77. Hi would you mind letting me know which webhost you’re utilizing?
    I’ve loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most.
    Can you recommend a good web hosting provider at a honest price?
    Cheers, I appreciate it!

  78. Hi! I understand this is kind of off-topic but I needed to ask.
    Does managing a well-established blog like yours require a large amount of work?
    I am brand new to blogging however I do write in my diary everyday.
    I’d like to start a blog so I can easily share my personal experience and feelings
    online. Please let me know if you have any recommendations or tips for new aspiring blog owners.

    Thankyou!

  79. Everyone loves what you guys are usually up too.
    This type of clever work and coverage! Keep up the amazing works guys I’ve included you guys to our blogroll.

  80. I absolutely love your website.. Pleasant colors & theme.
    Did you develop this web site yourself? Please reply back as
    I’m wanting to create my own personal blog and want to know
    where you got this from or just what the theme is named.
    Appreciate it!

  81. I have been browsing online more than 3 hours
    today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. Personally, if all webmasters and bloggers made good content as you did,
    the web will be a lot more useful than ever before.

  82. I have been surfing online more than 3 hours today, yet I
    never found any interesting article like yours. It is pretty worth enough for me.
    In my opinion, if all web owners and bloggers made
    good content as you did, the internet will be a lot more useful than ever before.

  83. You have made some decent points there. I checked on the net for more
    information about the issue and found most people will go along with your views on this
    web site.

  84. I simply couldn’t go away your site prior to suggesting that I really
    loved the usual info an individual provide for your guests?

    Is going to be back steadily in order to inspect new posts

  85. Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! However,
    how could we communicate?

  86. You really make it appear so easy together with your presentation but I find this topic to be actually something which I think I would by no means understand. It sort of feels too complex and very broad for me. I’m taking a look ahead to your subsequent publish, I will attempt to get the hold of it!

  87. Greetings from Carolina! I’m bored to tears at work so I decided to check out your
    blog on my iphone during lunch break. I love the knowledge you present
    here and can’t wait to take a look when I get home.
    I’m shocked at how quick your blog loaded on my cell phone ..

    I’m not even using WIFI, just 3G .. Anyways,
    fantastic blog!

  88. Wow! This blog looks just like my old one! It’s on a completely different subject but it has pretty much the same page layout and design. Outstanding choice of colors!

  89. I have been browsing online more than 2 hours today, yet
    I never found any interesting article like yours.

    It is pretty worth enough for me. Personally,
    if all web owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

  90. Ahaa, its good discussion on the topic of this paragraph at this place at this
    website, I have read all that, so now me also commenting here.

  91. I have been browsing on-line greater than three hours lately,
    but I by no means found any interesting article like yours.
    It’s lovely worth enough for me. Personally, if all website owners
    and bloggers made excellent content material as you probably did, the
    internet might be much more useful than ever before.

  92. I have been browsing online more than three hours nowadays, yet I by no means
    found any fascinating article like yours. It is lovely worth enough
    for me. Personally, if all site owners and bloggers made just right content as you did, the internet might be much more useful than ever before.

  93. It’s perfect 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 few interesting things or suggestions.
    Maybe you could write next articles referring to this article.
    I wish to read even more things about it!

  94. Ahaa, its fastidious discussion regarding this paragraph at this place at this website,
    I have read all that, so now me also commenting at this place.

  95. Hi! I’ve been reading your weblog for some time now and finally got the bravery to
    go ahead and give you a shout out from Austin Tx! Just wanted to mention keep up the fantastic job!

  96. Hello! I’ve been reading your weblog for some time now and finally got
    the bravery to go ahead and give you a shout out from Humble Texas!
    Just wanted to say keep up the fantastic work!

  97. 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 wish to suggest you few interesting things or suggestions.
    Maybe you could write next articles referring to this article.
    I want to read more things about it!

  98. Thanks for this wonderful article. Yet another thing to mention is that a lot of digital cameras are available equipped with the zoom lens that allows more or less of that scene to be included simply by ‘zooming’ in and out. Most of these changes in the aim length are usually reflected inside viewfinder and on substantial display screen on the back of the very camera.

  99. I’ve been browsing online more than 3 hours today, yet I never
    found any interesting article like yours. It is pretty
    worth enough for me. In my view, if all webmasters and
    bloggers made good content as you did, the net will be
    much more useful than ever before.

  100. Greetings! Very useful advice in this particular article!
    It’s the little changes that produce the most important changes.

    Thanks for sharing!

  101. Pingback: viagra amazon
  102. Heya i am for the first time here. I came across this board and I find It truly helpful & it helped me out a lot. I hope to give something back and help others like you aided me.

  103. I think that is among the so much vital info for me. And i am happy studying your article. But want to statement on few basic things, The website taste is ideal, the articles is really great :D. Excellent task, cheers.

  104. I’ve been surfing online more than 4 hours today, yet I never
    found any interesting article like yours. It is pretty worth enough for me.

    In my opinion, if all site owners and bloggers made good content as you did, the internet will be a
    lot more useful than ever before.

  105. I have been surfing online more than 2 hours today, yet
    I never found any interesting article like yours.
    It’s pretty worth enough for me. In my opinion, if all web owners
    and bloggers made good content as you did, the web will be a
    lot more useful than ever before.

  106. An outstanding share! I have just forwarded this onto a
    friend who had been doing a little homework on this. And he actually ordered me dinner simply because I found it for him…

    lol. So allow me to reword this…. Thank YOU for the meal!!

    But yeah, thanx for spending the time to discuss this matter here on your web site.

  107. I am sure this paragraph has touched all the internet people,
    its really really fastidious piece of writing on building
    up new weblog.

  108. It is appropriate time to make some plans for the long run and it is
    time to be happy. I’ve learn this post and if
    I may just I wish to counsel you some fascinating issues or advice.
    Maybe you can write next articles regarding this article.
    I want to read more issues approximately it!

  109. Howdy! This post could not be written any better! Going through this post reminds me of my previous roommate!
    He constantly kept preaching about this. I am going to forward this article to him.
    Fairly certain he’s going to have a great read. I appreciate you for sharing!

  110. Its like you learn my mind! You appear to know a lot about this,
    such as you wrote the e-book in it or something. I believe that
    you just can do with some % to pressure the message home
    a little bit, however instead of that, this is fantastic blog.
    A fantastic read. I will certainly be back.

  111. Greetings from Los angeles! I’m bored to tears at work
    so I decided to browse your site on my iphone during lunch break.
    I really like the information you present here and can’t wait to take a look when I get home.
    I’m shocked at how fast your blog loaded on my mobile
    .. I’m not even using WIFI, just 3G .. Anyhow, excellent blog!

  112. Greetings! Very useful advice in this particular post!
    It is the little changes which will make the biggest
    changes. Many thanks for sharing!

  113. I will right away grab your rss as I can not in finding your e-mail subscription link or e-newsletter service.
    Do you’ve any? Kindly permit me realize in order that I could subscribe.
    Thanks.

  114. I am sure this article has touched all the internet viewers, its really really nice article on building up new webpage.

  115. I have been surfing on-line more than 3 hours nowadays, yet I never found
    any fascinating article like yours. It’s beautiful price sufficient for me.

    In my view, if all site owners and bloggers made just right content as
    you did, the internet will be much more helpful than ever before.

  116. I am sure this paragraph has touched all the internet users, its really really pleasant paragraph on building up new web site.

  117. It’s perfect time to make some plans for the future and
    it is time to be happy. I’ve read this post and if I could I desire to suggest you
    few interesting things or tips. Maybe you can write next
    articles referring to this article. I wish to read more things about it!

  118. I have been browsing online more than 4 hours today, yet
    I never found any interesting article like yours. It’s pretty worth enough for me.
    In my opinion, if all website owners and bloggers made good content as you did,
    the net will be much more useful than ever before.