Cascade switching of an LED

Slides:



Advertisements
Similar presentations
Electrical team Arduino tutorial I BY: JOSHUA arduini
Advertisements

Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Basic DC Motor Circuits
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Cascaded switching of a solenoid valve living with the lab transistor relay solenoid valve © 2012 David Hall.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
Cascade switching of an LED EAS 199B Winter 2013.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Good LED Circuit 5V0 GND. What Voltage Does Meter See? Answer: 5 V.
How an NPN Transistor Works
Arduino libraries Datatekniker Udvidet hardware/software.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Motor TYWu.
Microcontroller basics Embedded systems for mortals.
Fish Tank Project Introduction ME 121Portland State University Mechanical and Materials Engineering.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
:Blink Blink: Er. Sahil Khanna
 A transistor is the basic building block of electronic components.  The average computer may have millions of them within its circuits.  Essentially,
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Pulse-Width Modulation: Simulating variable DC output
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
Arduino Application: Speed control of small DC Motors
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Microcontroller basics
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
Val Manes Department of Math & Computer Science
Microcontroller basics
UTA010 : Engineering Design – II
Get Your Project Started with Arduino
European Robotic LABoratory
INC 161 , CPE 100 Computer Programming
Lecture 2-2: Arduino Programming
Arduino.
Arduino Basics Connect Arduino to USB port
Controlling a Motor with Cascading Switches
Introduction to Transistors
Transistors and Integrated Circuits
Transistor & Voltage Divider
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Lesson 9: Digital Input-Output Signal Interfacing
Arduino Application: Speed control of small DC Motors
IoT Programming the Particle Photon.
Introduction to Transistors
Arduino 101 Credit(s):
using the Arduino to make LEDs flash
CS-4540 Robotics - Lab 05 Switch inputs to the Arduino Uno
Welcome to Digital Electronics using the Arduino Board
analog and digital measurements
Bipolar Transistors AIM:
Michael McGrath Simple DC Motor Michael McGrath
Arduino Practice: Photoresistors, PWM, Potentiometers, Motors
How an NPN Transistor Works
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Multiplexing seven-segment displays
Arduino Uno circuit basics
Setting up a basic program with Arduino
SAURABH GINGADE.
Arduino程式範例.
Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges
Presentation transcript:

Cascade switching of an LED ME 121

Objectives Be able to describe the circuit that uses an NPN transistor to switch an LED on and off Be able to describe the circuit that uses an NPN transistor and a relay to switch an LED on and off Be able to describe the role of a fly-back diode on a relay coil or solenoid valve Be able to describe the cascade switching circuit used to control the solenoid valves for the fish tank.

Use Digital I/O pin to switch LED on/off Digital I/O pin → LED

Code to blink the LED int LED_pin = 11; // array of pins for digital output void setup() { pinMode( LED_pin, OUTPUT ); } void loop() { digitalWrite( LED_pin, HIGH); delay(1000); digitalWrite( LED_pin, LOW); In the following examples, the Arduino code does not need to change when the electrical circuit is changed. The Arduino code only needs to used a single digital output pin, which in this code is LED_pin.

Use a Transistor to switch LED on/off Digital I/O pin → Transistor → LED

NPN Transistors as Switches Transistors can be used as switches: By applying relatively small voltage to the Base, electrical current will flow from the collector to the base. C is the collector. B is the base E is the emitter

NPN Transistors as Switches When used as a switch, ICE, the current from the collector to the emitter is large compare to IBE, the current from the base to the emitter. C is the collector. B is the base E is the emitter

Use a Relay switch the LED on/off Digital I/O pin → Transistor → Relay → LED

Compare switching circuits

Application to solenoid switching