This document describes an Arduino project that uses dip switches and LEDs. The objective is to have an array of 4 dip switches that can be configured by the user in different on/off combinations. The Arduino will continuously read the dip switch values and display the corresponding pattern on an array of 4 LEDs, so the LEDs always indicate the positions of the dip switches. The Arduino code defines the LED and dip switch pins and reads the dip switch input to control the LED output, illuminating the matching LED for each on dip switch. A schematic shows the wiring and a protoboard demonstrates the working circuit. Potential improvements discussed are using smaller dip switches and larger LEDs.
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriGaurav Pandey
Arduino for beginners- Introduction to Arduino presentation
Learn Arduino basics in easy steps. Arduino for beginners course series.Arduino is an open-source platform used for building electronics projects. All Arduino boards have a microcontroller.
A microcontroller is basically a really small computer.
Maker Education can help kids to enjoy learning Science, Technology, Engineering and Maths (STEM). We at Fun2Do Labs - Open Education Project have published this presentation so that teachers can help their students to learn basics of science using project based activities.
In this presentation we teach how Arduino can be used for creating maker projects.
An introduction to the Arduino microcontroller for the Washington, DC Kids & Technology Meetup. Processing software, Arduino hardware were discussed. Several Arduino projects were demonstrated. Resources are posted here:
https://www.evernote.com/shard/s89/sh/6fd6ce79-c0b2-495e-b6f8-a4c4335cd284/9b1d07121e9f4b89106bcfcba6463bdf
An Embedded system is a programmed controlling and operating system with a dedicated function within a larger mechanical or electrical system , often with real-time computing constrain.
It is a system that has software embedded into computer hardware , which makes a system dedicated for an applications or specific part of an application.
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriGaurav Pandey
Arduino for beginners- Introduction to Arduino presentation
Learn Arduino basics in easy steps. Arduino for beginners course series.Arduino is an open-source platform used for building electronics projects. All Arduino boards have a microcontroller.
A microcontroller is basically a really small computer.
Maker Education can help kids to enjoy learning Science, Technology, Engineering and Maths (STEM). We at Fun2Do Labs - Open Education Project have published this presentation so that teachers can help their students to learn basics of science using project based activities.
In this presentation we teach how Arduino can be used for creating maker projects.
An introduction to the Arduino microcontroller for the Washington, DC Kids & Technology Meetup. Processing software, Arduino hardware were discussed. Several Arduino projects were demonstrated. Resources are posted here:
https://www.evernote.com/shard/s89/sh/6fd6ce79-c0b2-495e-b6f8-a4c4335cd284/9b1d07121e9f4b89106bcfcba6463bdf
An Embedded system is a programmed controlling and operating system with a dedicated function within a larger mechanical or electrical system , often with real-time computing constrain.
It is a system that has software embedded into computer hardware , which makes a system dedicated for an applications or specific part of an application.
Arduino Uno is a microcontroller board based on 8-bit ATmega328P microcontroller. Along with ATmega328P, it consists other components such as crystal oscillator, serial communication, voltage regulator, etc. to support the microcontroller. Arduino Uno has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button.
1.Gives basic idea about what is arduino? and their funtionalites.
2. Applications of arduino
3. Adruino programming
4. what is Nodemcu ?
5. pindiagram of Nodemcu
Arduino Uno is a microcontroller board based on 8-bit ATmega328P microcontroller. Along with ATmega328P, it consists other components such as crystal oscillator, serial communication, voltage regulator, etc. to support the microcontroller. Arduino Uno has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button.
1.Gives basic idea about what is arduino? and their funtionalites.
2. Applications of arduino
3. Adruino programming
4. what is Nodemcu ?
5. pindiagram of Nodemcu
In this session IOT expert Bob Gallup walked us through the basics of electronics and taught us how to do some basic wiring and programming on an Adafruit Trinket micro processor.
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...Jayanthi Kannan MK
Module 4 : Arduino UNO, RaspberryPi with Python
Arduino UNO: Introduction to Arduino,
•Arduino UNO, Installing the Software,
•Fundamentals of Arduino Programming.
•IoT Physical Devices and Endpoints.
RaspberryPi: Introduction to RaspberryPi,
•About the RaspberryPi Board: Hardware Layout,
•Operating Systems on RaspberryPi, Configuring.
Module 5 : RaspberryPi Programming using Python and Smart City
RaspberryPi,
•Programming RaspberryPi with Python,
•Wireless Temperature Monitoring System Using Pi,
•DS18B20 Temperature Sensor,
•Connecting Raspberry Pi via SSH,
•Accessing Temperature from DS18B20 sensors,
• Remote access to RaspberryPi.
Smart cities: Smart and Connected Cities,
•An IoT Strategy for Smarter Cities,
•Smart City IoT Architecture,
•Smart City Security Architecture,
•Smart City Use-Case Examples
1. ET 320 – Microprocessors
Assignment #1 – LEDs with DIPs switches
By Bach Nguyen
Instructor: Dr. Cris Koutsougeras
2. Abstract
LEDs and DIPs switches are common electronic objects that are the foundation of
modern electronics. LED lighting products use light emitting diodes to produce light very
efficiently. An electrical current passes through semiconductor material, which illuminates the
tiny light sources we call LEDs. The heat produced is absorbed into a heat sink. Common LED
colors include amber, red, green, and blue. Colored LEDs are widely used as signal lights and
indicator lights, like the power button on a computer. LEDs are better than fluorescent and
incandescent light bulbs considering the less power and space consumption. A dip switch is a set
of small switches in a dual in-line package (DIP) that is used to change the operating mode of a
device. Dip switches are used to configure computer peripherals such as hard drives, modems,
sound cards, and motherboards.
Objective
A prototyping board will be equipped with dip switches and LEDs. An array of 4
switches which can be placed in random on-off combinations by a user. The Arduino must
continuously read the values of the 4 switches and display the array of values on a corresponding
output array of LEDs. So the LEDs must indicate the positions of the switches at all times.
Warning: there must be no direct signal path from the switches to the LEDs. The LEDs must be
under the control of the Arduino and its programming.
Methodology and Schematics
Arduino Codes:
int led1 = 2;
int led2 = 3;
int led3 = 4;
int led4 = 5;
int s1 = 6;
int s2 = 7;
3. int s3 = 8;
int s4 = 9;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(s1, INPUT);
pinMode(s2, INPUT);
pinMode(s3, INPUT);
pinMode(s4, INPUT);
}
// the loop routine runs over and over again forever:
void loop() {
if (digitalRead(s1) == HIGH){
digitalWrite(led1,HIGH);
}
else digitalWrite(led1,LOW);
if (digitalRead(s2) == HIGH){
digitalWrite(led2,HIGH);
}
else digitalWrite(led2,LOW);
if (digitalRead(s3) == HIGH){
digitalWrite(led3,HIGH);
}
else digitalWrite(led3,LOW);
if (digitalRead(s4) == HIGH){
digitalWrite(led4,HIGH);
}
else digitalWrite(led4,LOW);
delay(100);
}
Schematic:
4.
5. The switches are wired to the Arduino as inputs and the outputs are perceiving as LEDs
according to the switches. When the switches are turn on the LEDs will be turn on according to
which ever switch is in on position.
Protoboard Application
6.
7. Troubleshooting and Improvement
There are not really any inherit issues with the design since it’s quite simple and straight
forward. Improvement that could be made to the design is that the switches could be changed to
smaller DIPs switches, bigger LEDs for better viewing.
Conclusion
This project has helped myself demonstrate the use of a simple circuit that can be
controlled by an Arduino.