Tag Archives: STEM

Arduino Tutorial 29: Using Push Buttons to Create Dimmable LED

In this lesson we show you how to create a Dimmable LED using two pushbuttons. Pressing one button will gradually increase the brightness, while pressing the other button will gradually decrease the brightness. The project also includes an active buzzer to provide the user feedback that either maximum or minimum brightness have been reached. I encourage you to try and build this yourself before watching the video. Then see if you can do it on your own, and then see if you are doing the way I do it, or if you find an alternative suitable solution.

If you want to follow along at home, you can order the Arduino Kit we are using HERE.

Below is the code we used to achieve the toggle operation. The video gives details on how to connect up the circuit.

 

Arduino Tutorial 24: Understanding Passive Buzzers

In this lesson we show you how to incorporate sound into your project using a passive buzzer. Passive Buzzers have the advantage that they are less expensive than active buzzers, and you can more precisely control the tone. This lesson will show you how to hook up the buzzer, and then how to code the arduino to produce different tones.

If you want to follow along at home, you can order the Arduino Kit we are using HERE.

Arduino Tutorial 20: Understanding RGB LED’s

In this lesson you will learn how to work with RGB LED’s. RGB LED’s can be used to create not only the primary colors, but also all mixtures of the primary colors. This video shows you how to connect up a Common Cathode RGB LED. This project is a little more complex than the ones we have done in the past, so I include the code down below. While the code is here for your reference, you should not just copy and paste it. In order to really learn, you need to type it in for yourself, and then find and debug your mistakes. If you just copy and paste from me, you will never learn how to troubleshoot.

In these lessons, we are using the Elegoo Arduino kit, which you can purchase HERE.

Arduino Tutorial 19: Reading Strings from the Serial Monitor

In lesson 18 you learned how to read integers or floating point numbers into the Arduino from the Serial Monitor. It is also very helpful to be able to read Strings, or words from the Serial Monitor. In this video we show you the ins and outs of reading Strings into the Arduino.

If you want to follow along at home, you can order the Arduino Kit we are using HERE.

Arduino Tutorial 18: Reading Numbers from the Serial Monitor

In many projects, it is very useful to get input from users. You need to be able to prompt the user for input, and then input that information into the Arduino. In most cases, users will not know how to program, so you need to have an easy way to interact with them. In earlier lessons, we showed how you can send messages or information from the Arduino using the Serial Monitor. In today’s lesson, we show you how to read input from the user through the Serial Monitor.

If you want to follow along at home, you can order the Arduino Kit we are using HERE.