We will now be looking at how to use analog inputs to our Arduino UNO controller. An analog input converts a voltage level into a digital value. This can then be used in our Arduino program or sketch. The analog input signal can represent many different items. Speed, levels, distance, brightness, density, humidity, etc. are a few items that this external input can represent.
We will be wiring a 10K potentiometer to the first analog input of the controller. The Arduino Uno R3 from our Super Starter Kit will be used. As the analog values changes via our potentiometer, we will use PWM to change the brightness of an LED. We will look at how this conversion from analog voltage to digital is done. Values will be displayed on the built-in serial monitor of our Arduino IDE software. Let’s get started. Continue Reading!
We will now be looking at using digital inputs (pushbuttons) to turn LEDs on and off. This will be programmed using our Arduino Uno R3 from our Super Starter Kit. Pushbuttons will allow actions to be performed that our Arduino program sketch will interpret and take action.
We will be wiring two pushbutton switches. A pull-down resistor will be wired to the first switch and a pull-up resistor will be wired to the second switch. This will change the state of the input (High (1) or Low (0)) based on the wiring. Two LEDs will be wired to the outputs of the Arduino Uno. This will show the state of the switches and allow the switch inputs to modify the state of the LED. We will look at three different programs.
Eliminating switch bouncing will also be discussed and programmed using our Arduino Uno super starter kit. Let’s get started. Continue Reading!
We will now be looking at LEDs that we can wire and program using our Arduino Uno super starter kit. Light-emitting diodes (LEDs) are semiconductor devices that will show light when current passes through them. This light is produced within the solid semiconductor material so it can be called a solid-state lighting device.
We will be looking at the wiring of LEDs with our breadboard. Different resistor values will be used to change the LED light brightness. We will discuss how we can calculate the amount of current passing through our LED.
An RGB LED and Red LED will then be wired to our Arduino UNO. The brightness and color of our LEDs will then be changed through the programming of the Arduino Uno. PWM outputs will be used in our program (sketch). Let’s get started. Continue Reading!