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

39 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.

Leave a Reply

Your email address will not be published.