Demonstrates the use a 128x64 I2C OLED display to display counter number using pushbutton. The code include debounce function. You can download OLED I2C library at Rinky-Dink Electronic.
Demonstrates the use a 128x64 I2C OLED display for medium numbers and big numbers font function. You can download OLED I2C library at Rinky-Dink Electronic.
Reads repeatedly from an analog input (LM 35), and convert the ADC reading to voltage and temperature in Celcius, print the result to the serial monitor.
Reads repeatedly from an analog input, calculating a running average and printing it to the computer. Keeps ten readings in an array and continually averages them.
Demonstrates one technique for calibrating sensor input. The sensor readings during the first five seconds of the sketch execution define the minimum and maximum of expected values attached to the sensor pin.
The sensor minimum and maximum initial values may seem backwards. Initially, you set the minimum high and listen for anything lower, saving it as the new minimum. Likewise, you set the maximum low and listen for anything higher as the new maximum.
List Item
Arduino Uno
LED
1 Resistor (150 ohm to 330 ohm) and 1 Resistor (10k ohm)
Demonstrates analog input by reading an analog sensor on analog pin 0 and turning on and off a light emitting diode(LED) connected to digital pin 13. The amount of time the LED will be on and off depends on the value obtained by analogRead().
List Item
Arduino Uno
LED
1 Resistor (150 ohm to 330 ohm) and 1 Resistor (10k ohm)
Reads an analog input pin, maps the result to a range from 0 to 255 and uses the result to set the pulsewidth modulation (PWM) of an output pin. Also prints the results to the serial monitor.
List Item
Arduino Uno
LED
1 Resistor (150 ohm to 330 ohm) and 1 Resistor (10k ohm)
Often, you don't need to know the state of a digital input all the time, but you just need to know when the input changes from one state to another. For example, you want to know when a button goes from OFF to ON. This is called state change detection, or edge detection.
List Item
Arduino Uno
LED
Pushbutton
1 Resistor (150 ohm to 330 ohm) and 1 Resistor (10k ohm)