How to avoid catching things on fire.

Slides:



Advertisements
Similar presentations
Resistor Circuit Symbol
Advertisements

Fair Use Building and Research Labs Presents
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Embedded Programming and Robotics
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 2P. 1Winter Quarter Digital Electronics Lab 2.
Ch4 Electronic Components Circuit/Schematic Symbols.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Microprocessors Tutorial 1: Arduino Basics
describes the relationship between current, voltage, and resistance greater the voltage across a device with resistance, the greater the current through.
Microprocessors Tutorial 1: Arduino Basics
How an NPN Transistor Works
Analog to Digital Converter David Wallace English 314.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Detection Circuit ENGR Pre Lab.
1 Electrical Fundamentals We need some understanding of electrical fundamentals to do the lab exercises. Electric Circuit Consists of: –Power Source: Battery,
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Microcontroller basics Embedded systems for mortals.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Class Parts List Breadboard 1 Wire kit 1 Red LEDs 3 Green LEDs 3 Yellow LEDs 1 Photoresistor 1 xPiezo sensor 1 Button 3 Slide button, switch 1 Reed switch.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Introduction to Electric Circuits
Light Dependent Resistor
Assist. Prof. Rassim Suliyev - SDU 2017
Purpose of This Minilab
Prototyping with Microcontrollers and Sensors
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
Do Now: Why does current not come from a battery? Explain.
Arduino Development for Beginners
Pulse Detector Ramiro Duarte, Clayton Greenbaum Frank Paynter
UCD ElecSoc Robotics Club 2017/2018
Fair Use Building and Research Labs Presents
Unit 3 – Fundamentals of Electronics Examination Specifications
Administrative stuff Turn in your HW #3!
Unit 3 – Fundamentals of Electronics Examination Specifications
Electronic Education Kits
Electronic Education Kits
Electronic Education Kits
Introduction to Arduinos
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.
Dr. Bill Capinski, Laser Scientist General Atomics
IoT Programming the Particle Photon.
Basic Electronics Part Two: Electronic Components.
Fair Use Building and Research Labs Presents
Basic circuits Electrical circuits Electrical properties Ohm’s law
Chapter 1 Introduction of Arduino
Introduction to Wiring Logic Gates
Arduino Practice: Photoresistors, PWM, Potentiometers, Motors
COMPONENTS.
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Light Dependent Resistor
UNIT 9 Relays.
Introduction to Electronics
Basic Circuits.
Arduino Uno circuit basics
Introduction to Arduinos
UNIT 9 Relays.
Voltage, Current and Resistance
Arduino程式範例.
Interrupts.
I/O Experiments Assignment 1.
2019 Investing Now Summer Program
Presentation transcript:

How to avoid catching things on fire. Electronics 101 How to avoid catching things on fire.

Bread Boards

Connect a Blue LED to pin D7 and a Red LED to pin D0

Your Photon's Pins Voltage Input (also USB power) ground serial communication wake up Digital - Analog Conversion Analog Input and Output 3.3 Volts output reset (when grounded) battery input ground built-in LED digital input and output

Voltage, Current, Resistance amount of electrons moving through the circuit Measured in Amps (A) Represented by “I” in equations Voltage Amount of push Measured in Volts (V) Resistance Amount of resistance Measured in Ohms (Ω) V = I * R Ohm’s Law

Voltage, Current, Resistance Particle Photon Input Voltage micro USB – 4.8 Volts or the VIN pin – between 3.3 and 5.8 VDC (VDC = volts direct current) Current Consumption 80mA when WiFi is on ( 80mA = 80 milli Amps = 80/1000 of an Amp) Output Voltage 3.3 Volts (3V3) Output Current 25mA per pin 250mA total

Voltage, Current, Resistance Short Circuits Remember : Current = Voltage / Resistance What happens to Current if Voltage remains 3.3, but Resistance goes very low? Amps = 3.3V / Ohms

LEDs -- Light Emitting Diode LEDs create almost no resistance, so you must use a resistor with an LED Without a resistor, the current would spike and burnout the LED and perhaps damage the controller unit The resistor can be placed before or after the LED Long wire goes to positive Short wire to negative or ground LED Varieties: 5mm, 8mm Diffuse, not diffuse IR RGB

Resistors

Pull Up Resistor Bad Bad Design: Everyone will use this. Bad Bad Design: When the button is pressed, the pin will go low. But when the button is not pressed, the pin floats. We need to "pull" the pin high when the button is open. We need a resistor to prevent a short. The standard is 10kΩ So commonly used that your Photon has Pull Up resistors built in on all input pins. Good pinMode(D5, INPUT_PULLUP); // Enable internal pull-up resistor on pin D5

Pull Up Resistor Example These break sensors and door sensors are "normally open" switches. they work just like buttons To get reliable input, we must use a pull-up resistor. Opening the door opens the switch, which causes the pin to go to HIGH. Closing the door closes the switch, so power goes LOW. Closed = Low Open = High

Pull Up Resistor Example Turn on an LED when the door is open. Breadboard: connect one sensor wire to ground other sensor wire to an input pin, like A4 Code: void setup() { pinMode (D7, OUTPUT); // built-in LED pinMode (A4, INPUT_PULLUP); // input pin } void loop() int value; // value from sensor value = digitalRead(A4); // read input pin digitalWrite (D7, value); // turn LED on or off

DAC and ADC Digital to Analog Analog to Digital Example: Probably not necessary, because your Photon has both Digital and Analog inputs and outputs. Digital to Analog Example: Control the speed of a motor. You send the DAC chip a number from 0 to 255 and it outputs a voltage from 0 to 9 volts to make the motor speed up or slow down. Analog to Digital Input voltage from a light dimmer switch and convert the value into a number.

Not many projects will use this. N Channel MOSFET Problem : Suppose you need to turn 12 Volts on and off for a fan motor or a long string of LEDs Your Photon only outputs 3.3 volts 12V would fry your Photon Solution : Use a MOSFET as a switch one pin on the MOSFET (gate or base pin) connects to an output pin on your Photon turn the Photon pin on and off to turn the 12V on and off two other pins on MOSFET (drain and source) go in your 12V circuit Be Careful : Read a tutorial before wiring. Size determines Voltage and Amps. They get hot! The 12V ground and the Photon ground must be connected.

Capacitors Electric Storage Device Measured in Micro Farads Uses: A few projects will use this. Electric Storage Device Measured in Micro Farads Uses: Smooth out a power supply Smooth signal noise

Digital Display Boards Necessary when using Digital Display Boards I2C

De-Multiplexer Multiplexer is the opposite. Extremely unlikely you will need this. Suppose you want to turn on 1 of 8 different LEDs, but don’t want to use 8 different Output Pins. Sending 000 to the chip turns on its output pin 0. Sending 001 turns on its pin 1. … Sending 111 turns on pin 7. Multiplexer is the opposite. 8 input pins and 3 output pins.

Questions?