Project 2 & 3 (Group 1)
Project 2 & 3 (Group 1)
Project 2 & 3 (Group 1)
ARDUINO
PROJECT P R O J E C T 2 & 3
PROJECT 2:
LIGHT DIMMER
LIGHT DIMMER
In this project, you'll create a
dimmer switch by adding a
potentiometer to control the
brightness of a LED.
COMPONENTS
ARDUINO BOARD
BREADBOARD
JUMPER WIRES
50K-OHM POTENTIOMETER
470-OHM RESISTOR
RED LED
ARDUINO BOARD
An Arduino board is an open-source
electronics platform that consists of a
physical programmable circuit board
and a piece of software used to write
and upload computer code to the
board. It is designed to be easy to use
and allows users to read inputs from
various sources, such as sensors or
buttons, and turn them into outputs,
such as activating a motor or turning
on an LED.
BREADBOARD
PROJECT 3:
BAR GRAPH
PROJECT 3: BAR GRAPH GROUP 1
BAR GRAPH
In this project, you’ll combine
what you’ve learned in the
previous LED projects to create
an LED bar graph that you can
control with a potentiometer.
COMPONENTS
ARDUINO BOARD
BREADBOARD
JUMPER WIRES
50K-OHM POTENTIOMETER
220-OHM RESISTOR
LEDS
ARDUINO BOARD
Arduino is an open-source platform
used for building electronics projects.
It consists of both a physical
programmable circuit board (often
referred to as a microcontroller) and a
piece of software, or IDE (Integrated
Development Environment) that runs
on a computer. It is used to write and
upload computer code to the physical
board.
BREADBOARD
void setup() {
for (int thisLed = 0; thisLed < ledCount; thisLed++) {
pinMode(ledPins[thisLed], OUTPUT); // Set the LED pins as output
}
}
// Start a loop
void loop() {
int sensorReading = analogRead(analogPin); // Analog input
int ledLevel = map(sensorReading, 0, 1023, 0, ledCount);
for (int thisLed = 0; thisLed < ledCount; thisLed++) {
if (thisLed < ledLevel) { // Turn on LEDs in sequence
digitalWrite(ledPins[thisLed], HIGH);
}
else { // Turn off LEDs in sequence
digitalWrite(ledPins[thisLed], LOW);
}
}
}
Program using Arduino Software
ELECTIVE 4: Robotics Technology Presented to Engr. Josua Pitong GROUP 1
RESOURCES
THANK
YOU!
ARVIOLA - BENDO - BERNAL - CABANELA - GONZALES - LABASTIDA - ORTIZ - ROJAS - VILLALUZ